Module Name: src Committed By: macallan Date: Wed Mar 27 06:52:03 UTC 2024
Modified Files: src/sys/arch/hppa/dev: gftfb.c Log Message: in gftfb_ioctl(): - identify ourselves as WSDISPLAY_TYPE_STI - return full fb geometry in WSDISPLAYIO_GET_FBINFO To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hppa/dev/gftfb.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/hppa/dev/gftfb.c diff -u src/sys/arch/hppa/dev/gftfb.c:1.9 src/sys/arch/hppa/dev/gftfb.c:1.10 --- src/sys/arch/hppa/dev/gftfb.c:1.9 Wed Mar 6 08:19:44 2024 +++ src/sys/arch/hppa/dev/gftfb.c Wed Mar 27 06:52:03 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: gftfb.c,v 1.9 2024/03/06 08:19:44 macallan Exp $ */ +/* $NetBSD: gftfb.c,v 1.10 2024/03/27 06:52:03 macallan Exp $ */ /* $OpenBSD: sti_pci.c,v 1.7 2009/02/06 22:51:04 miod Exp $ */ @@ -780,7 +780,7 @@ gftfb_ioctl(void *v, void *vs, u_long cm switch (cmd) { case WSDISPLAYIO_GTYPE: - *(u_int *)data = WSDISPLAY_TYPE_PCIMISC; + *(u_int *)data = WSDISPLAY_TYPE_STI; return 0; /* PCI config read/write passthrough. */ @@ -834,11 +834,15 @@ gftfb_ioctl(void *v, void *vs, u_long cm return 0; case WSDISPLAYIO_GET_FBINFO: - { + { struct wsdisplayio_fbinfo *fbi = data; + int ret; - return wsdisplayio_get_fbinfo(&ms->scr_ri, fbi); - } + ret = wsdisplayio_get_fbinfo(&ms->scr_ri, fbi); + fbi->fbi_height = sc->sc_scr.fbheight; + fbi->fbi_fbsize = sc->sc_scr.fbheight * 2048; + return ret; + } case WSDISPLAYIO_GCURPOS: {