summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-02-08 13:39:31 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-02-08 13:39:31 +0000
commitb2a16285aaa0f19608efc51053465184a0e628e9 (patch)
tree6ee3bf935de116919df149df1540f406a9f746e1 /sys/arch/sparc
parent3d2cd0ecc63449a326b0c153a1002b3b51700ba8 (diff)
match be & qe as part of the bootpath
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/be.c8
-rw-r--r--sys/arch/sparc/dev/qe.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c
index b465a12fc19..27531b9cb75 100644
--- a/sys/arch/sparc/dev/be.c
+++ b/sys/arch/sparc/dev/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.19 1999/01/07 03:14:42 jason Exp $ */
+/* $OpenBSD: be.c,v 1.20 1999/02/08 13:39:29 jason Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
@@ -131,6 +131,7 @@ beattach(parent, self, aux)
struct besoftc *sc = (struct besoftc *)self;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct confargs *ca = aux;
+ struct bootpath *bp;
extern void myetheraddr __P((u_char *));
int pri, bmsr;
@@ -231,6 +232,11 @@ beattach(parent, self, aux)
bpfattach(&sc->sc_arpcom.ac_if.if_bpf, ifp, DLT_EN10MB,
sizeof(struct ether_header));
#endif
+
+ bp = ca->ca_ra.ra_bp;
+ if (bp != NULL && strcmp(bp->name, "be") == 0 &&
+ sc->sc_dev.dv_unit == bp->val[1])
+ bp->dev = &sc->sc_dev;
}
/*
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c
index 1c436556e35..f35e8e0b6dd 100644
--- a/sys/arch/sparc/dev/qe.c
+++ b/sys/arch/sparc/dev/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.5 1998/11/02 05:50:59 jason Exp $ */
+/* $OpenBSD: qe.c,v 1.6 1999/02/08 13:39:30 jason Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright.
@@ -128,6 +128,7 @@ qeattach(parent, self, aux)
struct qesoftc *sc = (struct qesoftc *)self;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct confargs *ca = aux;
+ struct bootpath *bp;
extern void myetheraddr __P((u_char *));
int pri;
@@ -173,6 +174,11 @@ qeattach(parent, self, aux)
bpfattach(&sc->sc_arpcom.ac_if.if_bpf, ifp, DLT_EN10MB,
sizeof(struct ether_header));
#endif
+
+ bp = ca->ca_ra.ra_bp;
+ if (bp != NULL && strcmp(bp->name, "qe") == 0 &&
+ sc->sc_dev.dv_unit == bp->val[1])
+ bp->dev = &sc->sc_dev;
}
/*