patch-2.4.0-test8 linux/drivers/net/pcmcia/xirc2ps_cs.c
Next file: linux/drivers/net/sunhme.c
Previous file: linux/drivers/net/pcmcia/smc91c92_cs.c
Back to the patch index
Back to the overall index
- Lines: 139
- Date:
Sat Sep 2 00:15:37 2000
- Orig file:
v2.4.0-test7/linux/drivers/net/pcmcia/xirc2ps_cs.c
- Orig date:
Fri Jul 14 12:12:11 2000
diff -u --recursive --new-file v2.4.0-test7/linux/drivers/net/pcmcia/xirc2ps_cs.c linux/drivers/net/pcmcia/xirc2ps_cs.c
@@ -2,43 +2,14 @@
* Xircom CreditCard Ethernet Adapter IIps driver
* Xircom Realport 10/100 (RE-100) driver
*
- * This driver originally was made by Werner Koch. Since the driver was left
- * unmaintained for some time, there have been some improvements and changes
- * since. These include supporting some of the "Realport" cards and develop-
- * ing enhancements to support the new ones.
- * It is made for CE2, CEM28, CEM33, CE33 and
- * CEM56 cards. The CEM56 cards work both with their modem and ethernet
- * interface. The RealPort 10/100 Modem and similar cards are supported but
- * with some bugs which are being corrected as they are detected.
+ * This driver supports various Xircom CreditCard Ethernet adapters
+ * including the CE2, CE IIps, RE-10, CEM28, CEM33, CE33, CEM56,
+ * CE3-100, CE3B, RE-100, REM10BT, and REM56G-100.
*
- * Code revised and maintained by Allan Baker Ortegon
- * al527261@prodigy.net.mx
* Written originally by Werner Koch based on David Hinds' skeleton of the
- * PCMCIA driver. The code has been modified as to make the newer cards
- * available.
+ * PCMCIA driver.
*
- * The latest code for the driver, information on the development project
- * for the Xircom RealPort and CE cards for the PCMCIA driver, and other
- * related material, can be found at the following URL, which is underway:
- *
- * "http://xirc2ps.linuxbox.com/index.html"
- *
- * Any bugs regarding this driver, please send them to:
- * alanyuu@linuxbox.com
- *
- * The driver is still evolving and there are many cards which will benefit
- * from having alpha testers. If you have a particular card and would like
- * to be involved in this ongoing effort, please send mail to the maintainer.
- *
- * Special thanks to David Hinds, to Xircom for the specifications and their
- * software development kit, and all others who may have colaborated in the
- * development of the driver: Koen Van Herck (Koen.Van.Herck@xircom.com),
- * 4PC GmbH Duesseldorf, David Luger, et al.
- *
- *
- ************************************************************************
* Copyright (c) 1997,1998 Werner Koch (dd9jn)
- * Copyright (c) 1999 Allan Baker Ortegon
*
* This driver is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -87,9 +58,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* Enable the bug fix for CEM56 to use modem and ethernet simultaneously */
-#define CEM56_FIX
-
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
@@ -118,16 +86,10 @@
#include <pcmcia/cisreg.h>
#include <pcmcia/ciscode.h>
-#ifndef MANFID_XIRCOM
- #define MANFID_XIRCOM 0x0105
-#endif
#ifndef MANFID_COMPAQ
#define MANFID_COMPAQ 0x0138
#define MANFID_COMPAQ2 0x0183 /* is this correct? */
#endif
-#ifndef MANFID_INTEL
- #define MANFID_INTEL 0x0089
-#endif
#include <pcmcia/ds.h>
@@ -936,26 +898,26 @@
switch(parse.manfid.manf) {
case MANFID_XIRCOM:
local->manf_str = "Xircom";
- DEBUG(0, "found xircom card\n");
break;
case MANFID_ACCTON:
local->manf_str = "Accton";
- DEBUG(0, "found Accton card\n");
break;
case MANFID_COMPAQ:
case MANFID_COMPAQ2:
local->manf_str = "Compaq";
- DEBUG(0, "found Compaq card\n");
break;
case MANFID_INTEL:
local->manf_str = "Intel";
- DEBUG(0, "found Intel card\n");
+ break;
+ case MANFID_TOSHIBA:
+ local->manf_str = "Toshiba";
break;
default:
printk(KNOT_XIRC "Unknown Card Manufacturer ID: 0x%04x\n",
(unsigned)parse.manfid.manf);
goto failure;
}
+ DEBUG(0, "found %s card\n", local->manf_str);
if (!set_card_type(link, buf)) {
printk(KNOT_XIRC "this card is not supported\n");
@@ -1120,13 +1082,10 @@
}
if (local->dingo) {
- #ifdef CEM56_FIX
conf_reg_t reg;
- #endif
win_req_t req;
memreq_t mem;
- #ifdef CEM56_FIX
/* Reset the modem's BAR to the correct value
* This is necessary because in the RequestConfiguration call,
* the base address of the ethernet port (BasePort1) is written
@@ -1148,7 +1107,6 @@
cs_error(link->handle, AccessConfigurationRegister, err);
goto config_error;
}
- #endif
/* There is no config entry for the Ethernet part which
* is at 0x0800. So we allocate a window into the attribute
@@ -1227,9 +1185,9 @@
goto config_error;
}
- link->state &= ~DEV_CONFIG_PENDING;
strcpy(local->node.dev_name, dev->name);
link->dev = &local->node;
+ link->state &= ~DEV_CONFIG_PENDING;
if (local->dingo)
do_reset(dev, 1); /* a kludge to make the cem56 work */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)