diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-19 13:15:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-19 13:15:48 +0000 |
commit | ae90c34ba485b899e33f0fb8121bccfecf106876 (patch) | |
tree | 6c7aac860e4c14d06840938fcc54d9b76215fd5c /sys | |
parent | 43fd1ce6b8fc903c16f794e899be7501951d91f4 (diff) |
no obio or vme16 cg3
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc/dev/cgthree.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/sparc/dev/cgthree.c b/sys/arch/sparc/dev/cgthree.c index b3d4667c68b..c9b3fd8dcd7 100644 --- a/sys/arch/sparc/dev/cgthree.c +++ b/sys/arch/sparc/dev/cgthree.c @@ -144,7 +144,6 @@ cgthreeattach(parent, self, args) register volatile struct bt_regs *bt; register struct cgthree_all *p; int isconsole; - int sbus = 1; char *nam; sc->sc_fb.fb_driver = &cgthreefbdriver; @@ -155,13 +154,10 @@ cgthreeattach(parent, self, args) */ sc->sc_fb.fb_type.fb_type = FBTYPE_SUN3COLOR; switch (ca->ca_bustype) { - case BUS_OBIO: case BUS_VME32: - case BUS_VME16: - sbus = node = 0; + node = 0; nam = "cgthree"; break; - case BUS_SBUS: node = ca->ca_ra.ra_node; nam = getpropstring(node, "model"); @@ -173,7 +169,7 @@ cgthreeattach(parent, self, args) 1152, 900, node, ca->ca_bustype); ramsize = roundup(sc->sc_fb.fb_type.fb_height * sc->sc_fb.fb_linebytes, - NBPG); + NBPG); sc->sc_fb.fb_type.fb_cmsize = 256; sc->sc_fb.fb_type.fb_size = ramsize; printf(": %s, %d x %d", nam, @@ -212,8 +208,10 @@ cgthreeattach(parent, self, args) #endif } else printf("\n"); - if (sbus) +#if defined(SUN4C) || defined(SUN4M) + if (ca->ca_bustype == BUS_SBUS) sbus_establish(&sc->sc_sd, &sc->sc_dev); +#endif /* SUN4C || SUN4M */ if (node == fbnode) fb_attach(&sc->sc_fb); } |