Move the call to the xi_pcmcia_identify to before the first use of sc->sc_flags.

Doesn't fix my problem with auto negotiate, but it might help others.
This commit is contained in:
chris 2001-09-26 09:01:30 +00:00
parent 6374da40e1
commit b08ac48955
1 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_xi.c,v 1.14 2001/07/07 16:51:47 thorpej Exp $ */
/* $NetBSD: if_xi.c,v 1.15 2001/09/26 09:01:30 chris Exp $ */
/* OpenBSD: if_xe.c,v 1.9 1999/09/16 11:28:42 niklas Exp */
/*
@ -412,6 +412,15 @@ xi_pcmcia_attach(parent, self, aux)
}
psc->sc_resource |= XI_RES_IO_MAP;
xpp = xi_pcmcia_identify(parent,pa);
if (xpp == NULL) {
printf(": unrecognised model\n");
return;
}
sc->sc_flags = xpp->xpp_flags;
printf(": %s\n", xpp->xpp_name);
/*
* Configuration as advised by DINGO documentation.
* Dingo has some extra configuration registers in the CCR space.
@ -453,15 +462,6 @@ xi_pcmcia_attach(parent, self, aux)
pcmcia_mem_free(psc->sc_pf, &pcmh);
}
xpp = xi_pcmcia_identify(parent,pa);
if (xpp == NULL) {
printf(": unrecognised model\n");
return;
}
sc->sc_flags = xpp->xpp_flags;
printf(": %s\n", xpp->xpp_name);
/*
* Get the ethernet address from FUNCE/LAN_NID tuple.
*/