Module Name: src
Committed By: macallan
Date: Mon Aug 19 10:58:43 UTC 2024
Modified Files:
src/sys/arch/hppa/dev: gftfb.c hyperfb.c
Log Message:
implement ioctl(GCID)
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/hppa/dev/gftfb.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/hppa/dev/hyperfb.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.17 src/sys/arch/hppa/dev/gftfb.c:1.18
--- src/sys/arch/hppa/dev/gftfb.c:1.17 Thu Aug 1 00:20:22 2024
+++ src/sys/arch/hppa/dev/gftfb.c Mon Aug 19 10:58:43 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: gftfb.c,v 1.17 2024/08/01 00:20:22 macallan Exp $ */
+/* $NetBSD: gftfb.c,v 1.18 2024/08/19 10:58:43 macallan Exp $ */
/* $OpenBSD: sti_pci.c,v 1.7 2009/02/06 22:51:04 miod Exp $ */
@@ -753,6 +753,10 @@ gftfb_ioctl(void *v, void *vs, u_long cm
*(u_int *)data = WSDISPLAY_TYPE_STI;
return 0;
+ case GCID:
+ *(u_int *)data = STI_DD_EG;
+ return 0;
+
/* PCI config read/write passthrough. */
case PCI_IOC_CFGREAD:
case PCI_IOC_CFGWRITE:
Index: src/sys/arch/hppa/dev/hyperfb.c
diff -u src/sys/arch/hppa/dev/hyperfb.c:1.11 src/sys/arch/hppa/dev/hyperfb.c:1.12
--- src/sys/arch/hppa/dev/hyperfb.c:1.11 Wed Aug 7 00:47:34 2024
+++ src/sys/arch/hppa/dev/hyperfb.c Mon Aug 19 10:58:43 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: hyperfb.c,v 1.11 2024/08/07 00:47:34 riastradh Exp $ */
+/* $NetBSD: hyperfb.c,v 1.12 2024/08/19 10:58:43 macallan Exp $ */
/*
* Copyright (c) 2024 Michael Lorenz
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hyperfb.c,v 1.11 2024/08/07 00:47:34 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hyperfb.c,v 1.12 2024/08/19 10:58:43 macallan Exp $");
#include "opt_cputype.h"
#include "opt_hyperfb.h"
@@ -543,6 +543,10 @@ hyperfb_ioctl(void *v, void *vs, u_long
*(u_int *)data = WSDISPLAY_TYPE_STI;
return 0;
+ case GCID:
+ *(u_int *)data = STI_DD_HCRX;
+ return 0;
+
case WSDISPLAYIO_GINFO:
if (ms == NULL)
return ENODEV;