Mon Jan 21 14:17:39 2013 UTC ()
support WSDISPLAYIO_GET_BUSID
let WSDISPLAYIO_GTYPE return WSDISPLAY_TYPE_OMAP3
no more pretending we're some sort of PCI framebuffer


(macallan)
diff -r1.13 -r1.14 src/sys/arch/arm/omap/omapfb.c

cvs diff -r1.13 -r1.14 src/sys/arch/arm/omap/Attic/omapfb.c (expand / switch to context diff)
--- src/sys/arch/arm/omap/Attic/omapfb.c 2013/01/17 01:10:52 1.13
+++ src/sys/arch/arm/omap/Attic/omapfb.c 2013/01/21 14:17:39 1.14
@@ -1,4 +1,4 @@
-/*	$NetBSD: omapfb.c,v 1.13 2013/01/17 01:10:52 macallan Exp $	*/
+/*	$NetBSD: omapfb.c,v 1.14 2013/01/21 14:17:39 macallan Exp $	*/
 
 /*
  * Copyright (c) 2010 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.13 2013/01/17 01:10:52 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.14 2013/01/21 14:17:39 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -435,8 +435,17 @@
 	switch (cmd) {
 
 		case WSDISPLAYIO_GTYPE:
-			*(u_int *)data = WSDISPLAY_TYPE_PCIMISC;
+			*(u_int *)data = WSDISPLAY_TYPE_OMAP3;
 			return 0;
+
+		case WSDISPLAYIO_GET_BUSID:
+			{
+				struct wsdisplayio_bus_id *busid;
+
+				busid = data;
+				busid->bus_type = WSDISPLAYIO_BUS_SOC;
+				return 0;
+			}
 
 		case WSDISPLAYIO_GINFO:
 			if (ms == NULL)