|
@@ -338,7 +338,6 @@ static int tc574_config(struct pcmcia_device *link)
|
|
struct net_device *dev = link->priv;
|
|
struct net_device *dev = link->priv;
|
|
struct el3_private *lp = netdev_priv(dev);
|
|
struct el3_private *lp = netdev_priv(dev);
|
|
tuple_t tuple;
|
|
tuple_t tuple;
|
|
- cisparse_t parse;
|
|
|
|
unsigned short buf[32];
|
|
unsigned short buf[32];
|
|
int last_fn, last_ret, i, j;
|
|
int last_fn, last_ret, i, j;
|
|
kio_addr_t ioaddr;
|
|
kio_addr_t ioaddr;
|
|
@@ -350,17 +349,6 @@ static int tc574_config(struct pcmcia_device *link)
|
|
|
|
|
|
DEBUG(0, "3c574_config(0x%p)\n", link);
|
|
DEBUG(0, "3c574_config(0x%p)\n", link);
|
|
|
|
|
|
- tuple.Attributes = 0;
|
|
|
|
- tuple.DesiredTuple = CISTPL_CONFIG;
|
|
|
|
- CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(link, &tuple));
|
|
|
|
- tuple.TupleData = (cisdata_t *)buf;
|
|
|
|
- tuple.TupleDataMax = 64;
|
|
|
|
- tuple.TupleOffset = 0;
|
|
|
|
- CS_CHECK(GetTupleData, pcmcia_get_tuple_data(link, &tuple));
|
|
|
|
- CS_CHECK(ParseTuple, pcmcia_parse_tuple(link, &tuple, &parse));
|
|
|
|
- link->conf.ConfigBase = parse.config.base;
|
|
|
|
- link->conf.Present = parse.config.rmask[0];
|
|
|
|
-
|
|
|
|
link->io.IOAddrLines = 16;
|
|
link->io.IOAddrLines = 16;
|
|
for (i = j = 0; j < 0x400; j += 0x20) {
|
|
for (i = j = 0; j < 0x400; j += 0x20) {
|
|
link->io.BasePort1 = j ^ 0x300;
|
|
link->io.BasePort1 = j ^ 0x300;
|
|
@@ -382,6 +370,10 @@ static int tc574_config(struct pcmcia_device *link)
|
|
/* The 3c574 normally uses an EEPROM for configuration info, including
|
|
/* The 3c574 normally uses an EEPROM for configuration info, including
|
|
the hardware address. The future products may include a modem chip
|
|
the hardware address. The future products may include a modem chip
|
|
and put the address in the CIS. */
|
|
and put the address in the CIS. */
|
|
|
|
+ tuple.Attributes = 0;
|
|
|
|
+ tuple.TupleData = (cisdata_t *)buf;
|
|
|
|
+ tuple.TupleDataMax = 64;
|
|
|
|
+ tuple.TupleOffset = 0;
|
|
tuple.DesiredTuple = 0x88;
|
|
tuple.DesiredTuple = 0x88;
|
|
if (pcmcia_get_first_tuple(link, &tuple) == CS_SUCCESS) {
|
|
if (pcmcia_get_first_tuple(link, &tuple) == CS_SUCCESS) {
|
|
pcmcia_get_tuple_data(link, &tuple);
|
|
pcmcia_get_tuple_data(link, &tuple);
|