Sun Sep 23 01:10:59 2012 UTC ()
match some more devices.


(chs)
diff -r1.33 -r1.34 src/sys/dev/pci/aac_pci.c
diff -r1.33 -r1.34 src/sys/dev/pci/if_an_pci.c
diff -r1.154 -r1.155 src/sys/dev/pci/if_sip.c
diff -r1.121 -r1.122 src/sys/dev/pci/if_tlp_pci.c

cvs diff -r1.33 -r1.34 src/sys/dev/pci/aac_pci.c (expand / switch to unified diff)

--- src/sys/dev/pci/aac_pci.c 2011/09/29 12:51:28 1.33
+++ src/sys/dev/pci/aac_pci.c 2012/09/23 01:10:59 1.34
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: aac_pci.c,v 1.33 2011/09/29 12:51:28 is Exp $ */ 1/* $NetBSD: aac_pci.c,v 1.34 2012/09/23 01:10:59 chs Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2002 The NetBSD Foundation, Inc. 4 * Copyright (c) 2002 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Andrew Doran. 8 * by Andrew Doran.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -55,27 +55,27 @@ @@ -55,27 +55,27 @@
55 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 55 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
56 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 56 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
57 * SUCH DAMAGE. 57 * SUCH DAMAGE.
58 * 58 *
59 * from FreeBSD: aac_pci.c,v 1.1 2000/09/13 03:20:34 msmith Exp 59 * from FreeBSD: aac_pci.c,v 1.1 2000/09/13 03:20:34 msmith Exp
60 * via OpenBSD: aac_pci.c,v 1.7 2002/03/14 01:26:58 millert Exp 60 * via OpenBSD: aac_pci.c,v 1.7 2002/03/14 01:26:58 millert Exp
61 */ 61 */
62 62
63/* 63/*
64 * PCI front-end for the `aac' driver. 64 * PCI front-end for the `aac' driver.
65 */ 65 */
66 66
67#include <sys/cdefs.h> 67#include <sys/cdefs.h>
68__KERNEL_RCSID(0, "$NetBSD: aac_pci.c,v 1.33 2011/09/29 12:51:28 is Exp $"); 68__KERNEL_RCSID(0, "$NetBSD: aac_pci.c,v 1.34 2012/09/23 01:10:59 chs Exp $");
69 69
70#include <sys/param.h> 70#include <sys/param.h>
71#include <sys/systm.h> 71#include <sys/systm.h>
72#include <sys/device.h> 72#include <sys/device.h>
73#include <sys/kernel.h> 73#include <sys/kernel.h>
74#include <sys/malloc.h> 74#include <sys/malloc.h>
75#include <sys/queue.h> 75#include <sys/queue.h>
76 76
77#include <sys/bus.h> 77#include <sys/bus.h>
78#include <machine/endian.h> 78#include <machine/endian.h>
79#include <sys/intr.h> 79#include <sys/intr.h>
80 80
81#include <dev/pci/pcidevs.h> 81#include <dev/pci/pcidevs.h>
@@ -346,31 +346,47 @@ static struct aac_ident { @@ -346,31 +346,47 @@ static struct aac_ident {
346 }, 346 },
347 { 347 {
348 PCI_VENDOR_ADP2, 348 PCI_VENDOR_ADP2,
349 PCI_PRODUCT_ADP2_ASR2120S, 349 PCI_PRODUCT_ADP2_ASR2120S,
350 PCI_VENDOR_IBM, 350 PCI_VENDOR_IBM,
351 PCI_PRODUCT_IBM_SERVERAID8K, 351 PCI_PRODUCT_IBM_SERVERAID8K,
352 AAC_HWIF_RKT, 352 AAC_HWIF_RKT,
353 0, 353 0,
354 "IBM ServeRAID 8k" 354 "IBM ServeRAID 8k"
355 }, 355 },
356 { PCI_VENDOR_ADP2, 356 { PCI_VENDOR_ADP2,
357 PCI_PRODUCT_ADP2_ASR2200S, 357 PCI_PRODUCT_ADP2_ASR2200S,
358 PCI_VENDOR_ADP2, 358 PCI_VENDOR_ADP2,
 359 PCI_PRODUCT_ADP2_2405,
 360 AAC_HWIF_I960RX,
 361 0,
 362 "Adaptec RAID 2405"
 363 },
 364 { PCI_VENDOR_ADP2,
 365 PCI_PRODUCT_ADP2_ASR2200S,
 366 PCI_VENDOR_ADP2,
359 PCI_PRODUCT_ADP2_3405, 367 PCI_PRODUCT_ADP2_3405,
360 AAC_HWIF_I960RX, 368 AAC_HWIF_I960RX,
361 0, 369 0,
362 "Adaptec RAID 3405" 370 "Adaptec RAID 3405"
363 }, 371 },
 372 { PCI_VENDOR_ADP2,
 373 PCI_PRODUCT_ADP2_ASR2200S,
 374 PCI_VENDOR_ADP2,
 375 PCI_PRODUCT_ADP2_3805,
 376 AAC_HWIF_I960RX,
 377 0,
 378 "Adaptec RAID 3805"
 379 },
364 { 380 {
365 PCI_VENDOR_DEC, 381 PCI_VENDOR_DEC,
366 PCI_PRODUCT_DEC_21554, 382 PCI_PRODUCT_DEC_21554,
367 PCI_VENDOR_ADP2, 383 PCI_VENDOR_ADP2,
368 PCI_PRODUCT_ADP2_AAC364, 384 PCI_PRODUCT_ADP2_AAC364,
369 AAC_HWIF_STRONGARM, 385 AAC_HWIF_STRONGARM,
370 0, 386 0,
371 "Adaptec AAC-364" 387 "Adaptec AAC-364"
372 }, 388 },
373 { 389 {
374 PCI_VENDOR_DEC, 390 PCI_VENDOR_DEC,
375 PCI_PRODUCT_DEC_21554, 391 PCI_PRODUCT_DEC_21554,
376 PCI_VENDOR_ADP2, 392 PCI_VENDOR_ADP2,

cvs diff -r1.33 -r1.34 src/sys/dev/pci/if_an_pci.c (expand / switch to unified diff)

--- src/sys/dev/pci/if_an_pci.c 2012/01/30 19:41:19 1.33
+++ src/sys/dev/pci/if_an_pci.c 2012/09/23 01:10:59 1.34
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: if_an_pci.c,v 1.33 2012/01/30 19:41:19 drochner Exp $ */ 1/* $NetBSD: if_an_pci.c,v 1.34 2012/09/23 01:10:59 chs Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 The NetBSD Foundation, Inc. 4 * Copyright (c) 2000 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Atsushi Onoe. 8 * by Atsushi Onoe.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -26,27 +26,27 @@ @@ -26,27 +26,27 @@
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32/* 32/*
33 * PCI bus front-end for the Aironet PC4500/PC4800 Wireless LAN Adapter. 33 * PCI bus front-end for the Aironet PC4500/PC4800 Wireless LAN Adapter.
34 * Unlike WaveLAN, this adapter attached as PCI device using a PLX 9050 34 * Unlike WaveLAN, this adapter attached as PCI device using a PLX 9050
35 * PCI to "dumb bus" bridge chip. 35 * PCI to "dumb bus" bridge chip.
36 */ 36 */
37 37
38#include <sys/cdefs.h> 38#include <sys/cdefs.h>
39__KERNEL_RCSID(0, "$NetBSD: if_an_pci.c,v 1.33 2012/01/30 19:41:19 drochner Exp $"); 39__KERNEL_RCSID(0, "$NetBSD: if_an_pci.c,v 1.34 2012/09/23 01:10:59 chs Exp $");
40 40
41#include <sys/param.h> 41#include <sys/param.h>
42#include <sys/systm.h> 42#include <sys/systm.h>
43#include <sys/mbuf.h> 43#include <sys/mbuf.h>
44#include <sys/malloc.h> 44#include <sys/malloc.h>
45#include <sys/kernel.h> 45#include <sys/kernel.h>
46#include <sys/socket.h> 46#include <sys/socket.h>
47#include <sys/ioctl.h> 47#include <sys/ioctl.h>
48#include <sys/errno.h> 48#include <sys/errno.h>
49#include <sys/device.h> 49#include <sys/device.h>
50#include <sys/callout.h> 50#include <sys/callout.h>
51 51
52#include <machine/endian.h> 52#include <machine/endian.h>
@@ -85,26 +85,27 @@ static int an_pci_match(device_t, cfdata @@ -85,26 +85,27 @@ static int an_pci_match(device_t, cfdata
85static void an_pci_attach(device_t, device_t, void *); 85static void an_pci_attach(device_t, device_t, void *);
86 86
87CFATTACH_DECL_NEW(an_pci, sizeof(struct an_pci_softc), 87CFATTACH_DECL_NEW(an_pci, sizeof(struct an_pci_softc),
88 an_pci_match, an_pci_attach, NULL, NULL); 88 an_pci_match, an_pci_attach, NULL, NULL);
89 89
90static const struct an_pci_product { 90static const struct an_pci_product {
91 u_int32_t app_vendor; /* PCI vendor ID */ 91 u_int32_t app_vendor; /* PCI vendor ID */
92 u_int32_t app_product; /* PCI product ID */ 92 u_int32_t app_product; /* PCI product ID */
93} an_pci_products[] = { 93} an_pci_products[] = {
94 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PC4xxx }, 94 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PC4xxx },
95 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PC4500 }, 95 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PC4500 },
96 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PC4800 }, 96 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PC4800 },
97 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PCI350 }, 97 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_PCI350 },
 98 { PCI_VENDOR_AIRONET, PCI_PRODUCT_AIRONET_MPI350 },
98 { 0, 0 } 99 { 0, 0 }
99}; 100};
100 101
101static int 102static int
102an_pci_match(device_t parent, cfdata_t match, void *aux) 103an_pci_match(device_t parent, cfdata_t match, void *aux)
103{ 104{
104 struct pci_attach_args *pa = aux; 105 struct pci_attach_args *pa = aux;
105 const struct an_pci_product *app; 106 const struct an_pci_product *app;
106 107
107 for (app = an_pci_products; app->app_vendor != 0; app++) { 108 for (app = an_pci_products; app->app_vendor != 0; app++) {
108 if (PCI_VENDOR(pa->pa_id) == app->app_vendor && 109 if (PCI_VENDOR(pa->pa_id) == app->app_vendor &&
109 PCI_PRODUCT(pa->pa_id) == app->app_product) 110 PCI_PRODUCT(pa->pa_id) == app->app_product)
110 return 1; 111 return 1;

cvs diff -r1.154 -r1.155 src/sys/dev/pci/if_sip.c (expand / switch to unified diff)

--- src/sys/dev/pci/if_sip.c 2012/07/22 14:33:03 1.154
+++ src/sys/dev/pci/if_sip.c 2012/09/23 01:10:59 1.155
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: if_sip.c,v 1.154 2012/07/22 14:33:03 matt Exp $ */ 1/* $NetBSD: if_sip.c,v 1.155 2012/09/23 01:10:59 chs Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. 4 * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Jason R. Thorpe. 8 * by Jason R. Thorpe.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -63,27 +63,27 @@ @@ -63,27 +63,27 @@
63 * SiS 7016 10/100, National Semiconductor DP83815 10/100, and 63 * SiS 7016 10/100, National Semiconductor DP83815 10/100, and
64 * National Semiconductor DP83820 10/100/1000 PCI Ethernet 64 * National Semiconductor DP83820 10/100/1000 PCI Ethernet
65 * controllers. 65 * controllers.
66 * 66 *
67 * Originally written to support the SiS 900 by Jason R. Thorpe for 67 * Originally written to support the SiS 900 by Jason R. Thorpe for
68 * Network Computer, Inc. 68 * Network Computer, Inc.
69 * 69 *
70 * TODO: 70 * TODO:
71 * 71 *
72 * - Reduce the Rx interrupt load. 72 * - Reduce the Rx interrupt load.
73 */ 73 */
74 74
75#include <sys/cdefs.h> 75#include <sys/cdefs.h>
76__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.154 2012/07/22 14:33:03 matt Exp $"); 76__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.155 2012/09/23 01:10:59 chs Exp $");
77 77
78 78
79 79
80#include <sys/param.h> 80#include <sys/param.h>
81#include <sys/systm.h> 81#include <sys/systm.h>
82#include <sys/callout.h> 82#include <sys/callout.h>
83#include <sys/mbuf.h> 83#include <sys/mbuf.h>
84#include <sys/malloc.h> 84#include <sys/malloc.h>
85#include <sys/kernel.h> 85#include <sys/kernel.h>
86#include <sys/socket.h> 86#include <sys/socket.h>
87#include <sys/ioctl.h> 87#include <sys/ioctl.h>
88#include <sys/errno.h> 88#include <sys/errno.h>
89#include <sys/device.h> 89#include <sys/device.h>
@@ -727,30 +727,33 @@ sipcom_lookup(const struct pci_attach_ar @@ -727,30 +727,33 @@ sipcom_lookup(const struct pci_attach_ar
727static int 727static int
728sipcom_check_64bit(const struct pci_attach_args *pa) 728sipcom_check_64bit(const struct pci_attach_args *pa)
729{ 729{
730 static const struct { 730 static const struct {
731 pci_vendor_id_t c64_vendor; 731 pci_vendor_id_t c64_vendor;
732 pci_product_id_t c64_product; 732 pci_product_id_t c64_product;
733 } card64[] = { 733 } card64[] = {
734 /* Asante GigaNIX */ 734 /* Asante GigaNIX */
735 { 0x128a, 0x0002 }, 735 { 0x128a, 0x0002 },
736 736
737 /* Accton EN1407-T, Planex GN-1000TE */ 737 /* Accton EN1407-T, Planex GN-1000TE */
738 { 0x1113, 0x1407 }, 738 { 0x1113, 0x1407 },
739 739
740 /* Netgear GA-621 */ 740 /* Netgear GA621 */
741 { 0x1385, 0x621a }, 741 { 0x1385, 0x621a },
742 742
743 /* SMC EZ Card */ 743 /* Netgear GA622 */
 744 { 0x1385, 0x622a },
 745
 746 /* SMC EZ Card 1000 (9462TX) */
744 { 0x10b8, 0x9462 }, 747 { 0x10b8, 0x9462 },
745 748
746 { 0, 0} 749 { 0, 0}
747 }; 750 };
748 pcireg_t subsys; 751 pcireg_t subsys;
749 int i; 752 int i;
750 753
751 subsys = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_SUBSYS_ID_REG); 754 subsys = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_SUBSYS_ID_REG);
752 755
753 for (i = 0; card64[i].c64_vendor != 0; i++) { 756 for (i = 0; card64[i].c64_vendor != 0; i++) {
754 if (PCI_VENDOR(subsys) == card64[i].c64_vendor && 757 if (PCI_VENDOR(subsys) == card64[i].c64_vendor &&
755 PCI_PRODUCT(subsys) == card64[i].c64_product) 758 PCI_PRODUCT(subsys) == card64[i].c64_product)
756 return (1); 759 return (1);

cvs diff -r1.121 -r1.122 src/sys/dev/pci/if_tlp_pci.c (expand / switch to unified diff)

--- src/sys/dev/pci/if_tlp_pci.c 2011/11/11 23:01:59 1.121
+++ src/sys/dev/pci/if_tlp_pci.c 2012/09/23 01:10:59 1.122
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: if_tlp_pci.c,v 1.121 2011/11/11 23:01:59 jakllsch Exp $ */ 1/* $NetBSD: if_tlp_pci.c,v 1.122 2012/09/23 01:10:59 chs Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc. 4 * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
9 * NASA Ames Research Center; and Charles M. Hannum. 9 * NASA Ames Research Center; and Charles M. Hannum.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions 12 * modification, are permitted provided that the following conditions
13 * are met: 13 * are met:
14 * 1. Redistributions of source code must retain the above copyright 14 * 1. Redistributions of source code must retain the above copyright
@@ -26,27 +26,27 @@ @@ -26,27 +26,27 @@
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE. 30 * POSSIBILITY OF SUCH DAMAGE.
31 */ 31 */
32 32
33/* 33/*
34 * PCI bus front-end for the Digital Semiconductor ``Tulip'' (21x4x) 34 * PCI bus front-end for the Digital Semiconductor ``Tulip'' (21x4x)
35 * Ethernet controller family driver. 35 * Ethernet controller family driver.
36 */ 36 */
37 37
38#include <sys/cdefs.h> 38#include <sys/cdefs.h>
39__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.121 2011/11/11 23:01:59 jakllsch Exp $"); 39__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.122 2012/09/23 01:10:59 chs Exp $");
40 40
41#include <sys/param.h> 41#include <sys/param.h>
42#include <sys/systm.h> 42#include <sys/systm.h>
43#include <sys/mbuf.h> 43#include <sys/mbuf.h>
44#include <sys/malloc.h> 44#include <sys/malloc.h>
45#include <sys/kernel.h> 45#include <sys/kernel.h>
46#include <sys/socket.h> 46#include <sys/socket.h>
47#include <sys/ioctl.h> 47#include <sys/ioctl.h>
48#include <sys/errno.h> 48#include <sys/errno.h>
49#include <sys/device.h> 49#include <sys/device.h>
50 50
51#include <machine/endian.h> 51#include <machine/endian.h>
52 52
@@ -1534,26 +1534,33 @@ tlp_pci_adaptec_quirks(struct tulip_pci_ @@ -1534,26 +1534,33 @@ tlp_pci_adaptec_quirks(struct tulip_pci_
1534{ 1534{
1535 struct tulip_softc *sc = &psc->sc_tulip; 1535 struct tulip_softc *sc = &psc->sc_tulip;
1536 uint8_t *srom = sc->sc_srom, id0; 1536 uint8_t *srom = sc->sc_srom, id0;
1537 uint16_t id1, id2; 1537 uint16_t id1, id2;
1538 1538
1539 if (sc->sc_mediasw == NULL) { 1539 if (sc->sc_mediasw == NULL) {
1540 id0 = srom[32]; 1540 id0 = srom[32];
1541 switch (id0) { 1541 switch (id0) {
1542 case 0x12: 1542 case 0x12:
1543 strcpy(psc->sc_tulip.sc_name, "Cogent EM100TX"); 1543 strcpy(psc->sc_tulip.sc_name, "Cogent EM100TX");
1544 sc->sc_mediasw = &tlp_cogent_em1x0_mediasw; 1544 sc->sc_mediasw = &tlp_cogent_em1x0_mediasw;
1545 break; 1545 break;
1546 1546
 1547 case 0x13:
 1548 strcpy(psc->sc_tulip.sc_name, "Cogent ???");
 1549 sc->sc_mediasw = &tlp_cogent_em1x0_mediasw;
 1550 psc->sc_flags |= TULIP_PCI_SHAREDINTR |
 1551 TULIP_PCI_SHAREDROM;
 1552 break;
 1553
1547 case 0x15: 1554 case 0x15:
1548 strcpy(psc->sc_tulip.sc_name, "Cogent EM100FX"); 1555 strcpy(psc->sc_tulip.sc_name, "Cogent EM100FX");
1549 sc->sc_mediasw = &tlp_cogent_em1x0_mediasw; 1556 sc->sc_mediasw = &tlp_cogent_em1x0_mediasw;
1550 break; 1557 break;
1551 1558
1552#if 0 1559#if 0
1553 case XXX: 1560 case XXX:
1554 strcpy(psc->sc_tulip.sc_name, "Cogent EM110TX"); 1561 strcpy(psc->sc_tulip.sc_name, "Cogent EM110TX");
1555 sc->sc_mediasw = &tlp_cogent_em1x0_mediasw; 1562 sc->sc_mediasw = &tlp_cogent_em1x0_mediasw;
1556 break; 1563 break;
1557#endif 1564#endif
1558 1565
1559 default: 1566 default: