summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-08-24 05:14:06 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-08-24 05:14:06 +0000
commit2209e99e684f990940b1fbd66e81dbf8f45a6ca7 (patch)
treed4d37ecafe4c0807b214f3ed1a590e470d7b10ff
parent06dab0803e76907d31faa46ae1d4618d046f3e19 (diff)
propagate bootpath
-rw-r--r--sys/arch/sparc/dev/hme.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index e4972dc5107..f8e9d1e615b 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.33 2001/07/30 21:50:06 jason Exp $ */
+/* $OpenBSD: hme.c,v 1.34 2001/08/24 05:14:05 jason Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -160,6 +160,7 @@ hmeattach(parent, self, aux)
struct hme_softc *sc = (struct hme_softc *)self;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
int pri;
+ struct bootpath *bp;
/* XXX the following declaration should be elsewhere */
extern void myetheraddr __P((u_char *));
@@ -252,6 +253,13 @@ hmeattach(parent, self, aux)
/* Attach the interface. */
if_attach(ifp);
ether_ifattach(ifp);
+
+ bp = ca->ca_ra.ra_bp;
+ if (bp != NULL && sc->sc_dev.dv_unit == bp->val[1] &&
+ ((strcmp(bp->name, hme_cd.cd_name) == 0) ||
+ (strcmp(bp->name, "qfe") == 0) ||
+ (strcmp(bp->name, "SUNW,hme") == 0)))
+ bp->dev = &sc->sc_dev;
}
/*