Module Name: src Committed By: macallan Date: Mon Jan 21 14:17:39 UTC 2013
Modified Files: src/sys/arch/arm/omap: omapfb.c Log Message: support WSDISPLAYIO_GET_BUSID let WSDISPLAYIO_GTYPE return WSDISPLAY_TYPE_OMAP3 no more pretending we're some sort of PCI framebuffer To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arm/omap/omapfb.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/omapfb.c diff -u src/sys/arch/arm/omap/omapfb.c:1.13 src/sys/arch/arm/omap/omapfb.c:1.14 --- src/sys/arch/arm/omap/omapfb.c:1.13 Thu Jan 17 01:10:52 2013 +++ src/sys/arch/arm/omap/omapfb.c Mon Jan 21 14:17:39 2013 @@ -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 @@ omapfb_ioctl(void *v, void *vs, u_long c 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;