Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap Support WSDISPLAYIO_GET_FBINFO ioctl in ti...
details: https://anonhg.NetBSD.org/src/rev/8f5b688470f3
branches: trunk
changeset: 331747:8f5b688470f3
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri Aug 22 19:59:18 2014 +0000
description:
Support WSDISPLAYIO_GET_FBINFO ioctl in tifb(4).
diffstat:
sys/arch/arm/omap/tifb.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 69110aeac52e -r 8f5b688470f3 sys/arch/arm/omap/tifb.c
--- a/sys/arch/arm/omap/tifb.c Fri Aug 22 19:44:04 2014 +0000
+++ b/sys/arch/arm/omap/tifb.c Fri Aug 22 19:59:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tifb.c,v 1.1 2014/07/16 18:30:43 bouyer Exp $ */
+/* $NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $ */
/*
* Copyright (c) 2010 Michael Lorenz
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.1 2014/07/16 18:30:43 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $");
#include "opt_omap.h"
@@ -779,6 +779,17 @@
}
return 0;
+ case WSDISPLAYIO_GET_FBINFO:
+ {
+ struct wsdisplayio_fbinfo *fbi = data;
+ int ret;
+
+ ret = wsdisplayio_get_fbinfo(&ms->scr_ri, fbi);
+ fbi->fbi_flags |= WSFB_VRAM_IS_RAM;
+ fbi->fbi_fboffset = sc->sc_palettesize;
+ return ret;
+ }
+
case WSDISPLAYIO_GVIDEO:
{
int *on = data;
Home |
Main Index |
Thread Index |
Old Index