Add some 21142/21143 goo.
This commit is contained in:
parent
8ff7881953
commit
9d820e6fab
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_tlp_pci.c,v 1.20 1999/09/30 17:48:25 thorpej Exp $ */
|
||||
/* $NetBSD: if_tlp_pci.c,v 1.21 1999/10/28 23:32:37 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
@ -232,6 +232,12 @@ const struct tlp_pci_quirks tlp_pci_21140_quirks[] = {
|
||||
{ NULL, { 0, 0, 0 } }
|
||||
};
|
||||
|
||||
const struct tlp_pci_quirks tlp_pci_21142_quirks[] = {
|
||||
{ tlp_pci_dec_quirks, { 0x08, 0x00, 0x2b } },
|
||||
{ tlp_pci_dec_quirks, { 0x00, 0x00, 0xf8 } },
|
||||
{ NULL, { 0, 0, 0 } }
|
||||
};
|
||||
|
||||
const char *tlp_pci_chip_names[] = TULIP_CHIP_NAMES;
|
||||
|
||||
int tlp_pci_shared_intr __P((void *));
|
||||
@ -682,6 +688,35 @@ tlp_pci_attach(parent, self, aux)
|
||||
goto cant_cope;
|
||||
break;
|
||||
|
||||
case TULIP_CHIP_21142:
|
||||
case TULIP_CHIP_21143:
|
||||
/* Check for new format SROM. */
|
||||
if (tlp_isv_srom_enaddr(sc, enaddr) == 0) {
|
||||
/*
|
||||
* Not an ISV SROM; can't cope, for now.
|
||||
*/
|
||||
goto cant_cope;
|
||||
} else {
|
||||
/*
|
||||
* We start out with the 2114x ISV media switch.
|
||||
* When we search for quirks, we may change to
|
||||
* a different switch.
|
||||
*/
|
||||
sc->sc_mediasw = &tlp_2114x_isv_mediasw;
|
||||
}
|
||||
|
||||
/*
|
||||
* Deal with any quirks this board might have.
|
||||
*/
|
||||
tlp_pci_get_quirks(psc, enaddr, tlp_pci_21142_quirks);
|
||||
|
||||
/*
|
||||
* Bail out now if we can't deal with this board.
|
||||
*/
|
||||
if (sc->sc_mediasw == NULL)
|
||||
goto cant_cope;
|
||||
break;
|
||||
|
||||
case TULIP_CHIP_82C168:
|
||||
case TULIP_CHIP_82C169:
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user