Subject: GRF_COMPAT stuff, patch
To: None <port-mac68k@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 05/21/2000 20:33:12
Hi,
would the following do?
[hauke@q700] ~ > diff -u /.source/sys/arch/mac68k/dev/grf_compat.c /var/obj/sys/arch/mac68k/dev/grf_compat.c
--- /.source/sys/arch/mac68k/dev/grf_compat.c Mon Feb 14 08:01:46 2000
+++ /var/obj/sys/arch/mac68k/dev/grf_compat.c Sun May 21 20:27:24 2000
@@ -238,7 +238,6 @@
{
struct grf_softc *sc;
struct macfb_devconfig *dc;
- struct grfinfo *gd;
struct grfmode *gm;
int unit = GRFUNIT(dev);
int rv;
@@ -253,6 +252,9 @@
dc = sc->mfb_sc->sc_dc;
switch (cmd) {
+#if defined( GRF_COMPAT)
+ struct grfinfo *gd;
+
case GRFIOCGINFO:
gd = (struct grfinfo *)data;
memset(gd, 0, sizeof(struct grfinfo));
@@ -268,18 +270,18 @@
rv = 0;
break;
- case GRFIOCON:
- case GRFIOCOFF:
- /* Nothing to do */
- rv = 0;
- break;
-
case GRFIOCMAP:
rv = grfmap(dev, sc->mfb_sc, (caddr_t *)data, p);
break;
case GRFIOCUNMAP:
rv = grfunmap(dev, sc->mfb_sc, *(caddr_t *)data, p);
+ break;
+#endif
+ case GRFIOCON:
+ case GRFIOCOFF:
+ /* Nothing to do */
+ rv = 0;
break;
case GRFIOCGMODE:
--
NetBSD. Not Guano.