diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-05 16:01:20 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-05 16:01:20 +0000 |
commit | 6e877d02cebd8fc3b58cc51308a45867941fac94 (patch) | |
tree | ffe498fbe20812f0af2aa0521caee8bd0155f6b4 /sys/arch/hp300/dev/grf_gb.c | |
parent | ab338cb720d20f1fa9d5d5fe14b912f71cabaa1b (diff) |
Non-console ITE devices need to be initialized properly, too, ya know.
Add enough glue to the aux attach structure to do so, and teach all the
device drivers how to set it.
This fixes the last ITE panic I know of...
Diffstat (limited to 'sys/arch/hp300/dev/grf_gb.c')
-rw-r--r-- | sys/arch/hp300/dev/grf_gb.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/grf_gb.c b/sys/arch/hp300/dev/grf_gb.c index ad53e886b58..7d11b1bc48d 100644 --- a/sys/arch/hp300/dev/grf_gb.c +++ b/sys/arch/hp300/dev/grf_gb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf_gb.c,v 1.4 1997/02/03 04:47:27 downsj Exp $ */ +/* $OpenBSD: grf_gb.c,v 1.5 1997/02/05 16:01:11 downsj Exp $ */ /* $NetBSD: grf_gb.c,v 1.10 1997/01/30 09:18:45 thorpej Exp $ */ /* @@ -161,7 +161,11 @@ gbox_intio_attach(parent, self, aux) grf = (caddr_t)IIOV(GRFIADDR); sc->sc_scode = -1; /* XXX internal i/o */ - grfdev_attach(sc, gb_init, grf, &gbox_grfsw); +#if NITE > 0 + grfdev_attach(sc, gb_init, grf, &gbox_grfsw, &gbox_itesw); +#else + grfdev_attach(sc, gb_init, grf, &gbox_grfsw, NULL); +#endif /* NITE > 0 */ } int @@ -199,7 +203,11 @@ gbox_dio_attach(parent, self, aux) } } - grfdev_attach(sc, gb_init, grf, &gbox_grfsw); +#if NITE > 0 + grfdev_attach(sc, gb_init, grf, &gbox_grfsw, &gbox_itesw); +#else + grfdev_attach(sc, gb_init, grf, &gbox_grfsw, NULL); +#endif /* NITE > 0 */ } /* |