Support an earlier version of IO-DATA PCLA/T.

This commit is contained in:
enami 1999-11-06 00:58:32 +00:00
parent db5d01fc72
commit 9c7bc44f91
2 changed files with 29 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ne_pcmcia.c,v 1.43 1999/10/28 09:21:46 jun Exp $ */
/* $NetBSD: if_ne_pcmcia.c,v 1.44 1999/11/06 00:58:32 enami Exp $ */
/*
* Copyright (c) 1997 Marc Horowitz. All rights reserved.
@ -198,12 +198,33 @@ struct ne2000dev {
PCMCIA_CIS_DLINK_DE650,
0, 0x0040, { 0x00, 0x80, 0xc8 } },
{ PCMCIA_STR_IODATA_PCLAT,
PCMCIA_VENDOR_IODATA, PCMCIA_PRODUCT_IODATA_PCLAT,
PCMCIA_CIS_IODATA_PCLAT,
/* two possible location, 0x01c0 or 0x0ff0 */
/*
* IO-DATA PCLA/TE and later version of PCLA/T has valid
* vendor/product ID and it is possible to read MAC address
* using standard I/O ports. It also read from CIS offset 0x01c0.
* On the other hand, earlier version of PCLA/T doesn't have valid
* vendor/product ID and MAC address must be read from CIS offset
* 0x0ff0 (i.e., usual ne2000 way to read it doesn't work).
* And CIS information of earlier and later version of PCLA/T are
* same except fourth element. So, for now, we place the entry for
* PCLA/TE (and later version of PCLA/T) followed by entry
* for the earlier version of PCLA/T (or, modify to match all CIS
* information and have three or more individual entries).
*/
{ PCMCIA_STR_IODATA_PCLATE,
PCMCIA_VENDOR_IODATA, PCMCIA_PRODUCT_IODATA_PCLATE,
PCMCIA_CIS_IODATA_PCLATE,
0, -1, { 0x00, 0xa0, 0xb0 } },
/*
* This entry should be placed after above PCLA-TE entry.
* See above comments for detail.
*/
{ PCMCIA_STR_IODATA_PCLAT,
PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
PCMCIA_CIS_IODATA_PCLAT,
0, 0x0ff0, { 0x00, 0xa0, 0xb0 } },
{ PCMCIA_STR_DAYNA_COMMUNICARD_E_1,
PCMCIA_VENDOR_DAYNA, PCMCIA_PRODUCT_DAYNA_COMMUNICARD_E_1,
PCMCIA_CIS_DAYNA_COMMUNICARD_E_1,

View File

@ -1,4 +1,4 @@
$NetBSD: pcmciadevs,v 1.55 1999/10/28 19:59:31 sommerfeld Exp $
$NetBSD: pcmciadevs,v 1.56 1999/11/06 00:58:32 enami Exp $
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -113,7 +113,7 @@ product IBM PORTABLE_CDROM_DRIVE 0x002d PCMCIA Portable CD-ROM Drive
product IBM ETHERJET_PCCARD 0x003f IBM EtherJet Ethernet PC Card
/* I-O DATA */
product IODATA PCLAT 0x2216 I-O DATA PCLA/T
product IODATA PCLATE 0x2216 I-O DATA PCLA/TE
/* Linksys corporation */
product LINKSYS ECARD_1 0x0265 Linksys EthernetCard or D-Link DE-650
@ -207,3 +207,4 @@ product COREGA FAST_ETHER_PCC_TX { "corega&spK.K.", "corega&spFastEther&spPCC-TX
product SVEC COMBOCARD { "Ethernet", "Adapter", NULL, NULL } SVEC/Hawking Tech. Combo Card
product SVEC LANCARD { "SVEC", "FD605&spPCMCIA&spEtherNet&spCard", "V1-1", NULL } SVEC PCMCIA Lan Card
product AMBICOM AMB8002T { "AmbiCom&spInc", "AMB8002T", NULL, NULL } AmbiCom AMB8002T
product IODATA PCLAT { "I-O&spDATA", "PCLA", "ETHERNET", NULL } IO-DATA PCLA/T