summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-04-22 12:33:20 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-04-22 12:33:20 +0000
commit1bdf74cb7a4f599244b5b93b16f632884f10ff29 (patch)
tree4518b1ce4d247ce9d7407f5006ab39f33e5a1ac3 /sys/arch/sparc
parent2ef62ddf16ef89ace0e3612f98a1ec9ebd87bf4f (diff)
fix device selector, spif isn't an DV_NET, missing sbus_establish
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/spif.c6
-rw-r--r--sys/arch/sparc/dev/spifreg.h4
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