Module Name:    src
Committed By:   jakllsch
Date:           Fri Aug 22 19:59:18 UTC 2014

Modified Files:
        src/sys/arch/arm/omap: tifb.c

Log Message:
Support WSDISPLAYIO_GET_FBINFO ioctl in tifb(4).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/omap/tifb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/omap/tifb.c
diff -u src/sys/arch/arm/omap/tifb.c:1.1 src/sys/arch/arm/omap/tifb.c:1.2
--- src/sys/arch/arm/omap/tifb.c:1.1	Wed Jul 16 18:30:43 2014
+++ src/sys/arch/arm/omap/tifb.c	Fri Aug 22 19:59:18 2014
@@ -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 @@ tifb_ioctl(void *v, void *vs, u_long cmd
 			}
 			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;

Reply via email to