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_BUSID



details:   https://anonhg.NetBSD.org/src/rev/c671726857c3
branches:  trunk
changeset: 784187:c671726857c3
user:      macallan <macallan%NetBSD.org@localhost>
date:      Mon Jan 21 14:17:39 2013 +0000

description:
support WSDISPLAYIO_GET_BUSID
let WSDISPLAYIO_GTYPE return WSDISPLAY_TYPE_OMAP3
no more pretending we're some sort of PCI framebuffer

diffstat:

 sys/arch/arm/omap/omapfb.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 047b79e6bee6 -r c671726857c3 sys/arch/arm/omap/omapfb.c
--- a/sys/arch/arm/omap/omapfb.c        Mon Jan 21 14:15:03 2013 +0000
+++ b/sys/arch/arm/omap/omapfb.c        Mon Jan 21 14:17:39 2013 +0000
@@ -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,9 +435,18 @@
        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)
                                return ENODEV;



Home | Main Index | Thread Index | Old Index