From b2a16285aaa0f19608efc51053465184a0e628e9 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Mon, 8 Feb 1999 13:39:31 +0000 Subject: match be & qe as part of the bootpath --- sys/arch/sparc/dev/be.c | 8 +++++++- sys/arch/sparc/dev/qe.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc') 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; } /* -- cgit v1.2.3