Add quirk for Connectix VirtualPC emulated 21140, just to print the name
from the SROM.
This commit is contained in:
parent
0ca32eba66
commit
5139f048fb
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_tlp_pci.c,v 1.68 2002/10/02 16:51:35 thorpej Exp $ */
|
||||
/* $NetBSD: if_tlp_pci.c,v 1.69 2002/10/08 15:09:54 minoura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -43,7 +43,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.68 2002/10/02 16:51:35 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.69 2002/10/08 15:09:54 minoura Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -218,6 +218,8 @@ void tlp_pci_asante_21140_quirks __P((struct tulip_pci_softc *,
|
|||
const u_int8_t *));
|
||||
void tlp_pci_smc_21140_quirks __P((struct tulip_pci_softc *,
|
||||
const u_int8_t *));
|
||||
void tlp_pci_vpc_21140_quirks __P((struct tulip_pci_softc *,
|
||||
const u_int8_t *));
|
||||
|
||||
const struct tlp_pci_quirks tlp_pci_21140_quirks[] = {
|
||||
{ tlp_pci_dec_quirks, { 0x08, 0x00, 0x2b } },
|
||||
|
@ -226,6 +228,7 @@ const struct tlp_pci_quirks tlp_pci_21140_quirks[] = {
|
|||
{ tlp_pci_adaptec_quirks, { 0x00, 0x00, 0x92 } },
|
||||
{ tlp_pci_adaptec_quirks, { 0x00, 0x00, 0xd1 } },
|
||||
{ tlp_pci_smc_21140_quirks, { 0x00, 0x00, 0xc0 } },
|
||||
{ tlp_pci_vpc_21140_quirks, { 0x00, 0x03, 0xff } },
|
||||
{ NULL, { 0, 0, 0 } }
|
||||
};
|
||||
|
||||
|
@ -1292,6 +1295,23 @@ tlp_smc9332dst_tmsw_init(sc)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
tlp_pci_vpc_21140_quirks(psc, enaddr)
|
||||
struct tulip_pci_softc *psc;
|
||||
const u_int8_t *enaddr;
|
||||
{
|
||||
struct tulip_softc *sc = &psc->sc_tulip;
|
||||
char *p1 = (char *) &sc->sc_srom[32];
|
||||
char *p2 = &sc->sc_name[0];
|
||||
|
||||
do {
|
||||
if (*p1 < 0)
|
||||
*p2++ = ' ';
|
||||
else
|
||||
*p2++ = *p1;
|
||||
} while (*p1++);
|
||||
}
|
||||
|
||||
void tlp_pci_cobalt_21142_reset __P((struct tulip_softc *));
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue