diff options
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/spif.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/dev/spifreg.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/spif.c b/sys/arch/sparc/dev/spif.c index c402fa7f5e4..9502c7a717e 100644 --- a/sys/arch/sparc/dev/spif.c +++ b/sys/arch/sparc/dev/spif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spif.c,v 1.5 1999/04/18 03:04:24 jason Exp $ */ +/* $OpenBSD: spif.c,v 1.6 1999/04/22 12:33:18 jason Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -111,7 +111,7 @@ struct cfattach spif_ca = { }; struct cfdriver spif_cd = { - NULL, "spif", DV_IFNET + NULL, "spif", DV_DULL }; struct cfattach stty_ca = { @@ -220,6 +220,8 @@ spifattach(parent, self, aux) sc->sc_softih.ih_fun = spifsoftintr; sc->sc_softih.ih_arg = sc; intr_establish(PIL_TTY, &sc->sc_softih); + + sbus_establish(&sc->sc_sd, &sc->sc_dev); } int diff --git a/sys/arch/sparc/dev/spifreg.h b/sys/arch/sparc/dev/spifreg.h index 67e0c4436a9..bdc04dc7512 100644 --- a/sys/arch/sparc/dev/spifreg.h +++ b/sys/arch/sparc/dev/spifreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: spifreg.h,v 1.4 1999/02/23 23:47:48 jason Exp $ */ +/* $OpenBSD: spifreg.h,v 1.5 1999/04/22 12:33:19 jason Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -369,7 +369,7 @@ struct spifregs { * device selectors */ #define SPIF_CARD(x) ((minor(x) >> 6) & 0x03) -#define SPIF_PORT(x) (minor(x) & 0x0f) +#define SPIF_PORT(x) (minor(x) & 0x07) #define STTY_DIALOUT(x) (minor(x) & 0x10) #define STTY_RX_FIFO_THRESHOLD 6 |