[vortex] Patch for 3Com 3c556 adapter

Fred Maciel fred-m@crl.hitachi.co.jp
Thu, 6 Jul 2000 19:55:38 +0900


This is a multi-part message in MIME format.

------=_NextPart_000_0154_01BFE784.2837AD20
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

Hello everybody,

     I was able to make the Vortex driver work with the 3Com 3c556 adapter.
Many thanks to Donald Becker and, especially, to David Hinds, for the help
(and sorry for the delay -- I found a problem after it first worked).
     The 3c556 is a "Mini PCI" form factor adapter (i.e., and internal
adapter for laptops), found in the HP OmniBook 6000, Panasonic CF-L1 and
many others. The only information available about it in the 3Com site seems
to be at:
http://www.3com.com/news/releases/pr99/nov0899b.html
http://www.3com.com/news/releases/pr00/may0800b.html
http://www.3com.com/news/releases/pr99/mar2499b.html
     I attached a patch, which should be applied to "3c59x.c:v0.99Qg
6/28/2000" (downloaded from ftp://ftp.scyld.com/pub/network/test/3c59x.c).
I could also make it work partially with 3c59x.c as in 2.2.16 and
2.2.16pre9, but the ethernet port gets blocked (see "HAS_CB_FNS" below).
     The parameters that I specified are the minimum set that will make the
adapter work. EEPROM_8BIT is necessary for the driver to read correctly the
EEPROM (say, ethernet address). INVERT_MII_PWR is necessary for the MII to
work correctly. If HAS_CB_FNS is not specified the port is blocked (as if
the cable is not connected), and no packets come in or out (initializing the
adapter in Windows and rebooting Linux "unblocks" the port). I think that
these parameters should have worked only for CardBus, which makes me suspect
that this is a modified CardBus adapter (David?).
     BTW, I'm not sure if my choice of IS_CYCLONE is the best one, or if I
should have added INVERT_LED_PWR and/or HAS_NWAY. Please tell me how I
should test these ones.
     I tested the driver on my CF-L1S; Douglas Arnold reported success with
his HP Omnibook 6000 (thanks Doug!).
http://www.math.psu.edu/dna/omnibook6000-linux.html
     That's all for now. Comments, suggestions and criticisms are all
welcome.

Regards,

                         Fred Maciel
                         E-mail  fred-m@crl.hitachi.co.jp

Disclaimer:
I don't speak for Hitachi,
I don't know who speaks for Hitachi,
I don't want to know who speaks for Hitachi.




------=_NextPart_000_0154_01BFE784.2837AD20
Content-Type: application/octet-stream;
	name="patch-3c556.dat"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-3c556.dat"

--- 3c59x-test.orig.c	Sat Jul  1 13:58:19 2000=0A=
+++ 3c59x-556.c	Sat Jul  1 13:57:46 2000=0A=
@@ -275,8 +275,8 @@=0A=
 	 PCI_IOTYPE, CYCLONE_SIZE, IS_CYCLONE, },=0A=
 	{"3c555 Laptop Hurricane",{ 0x505510B7, 0xffffffff },=0A=
 	 PCI_IOTYPE, CYCLONE_SIZE, IS_CYCLONE, },=0A=
-	{"3c556 Laptop Hurricane",{ 0x605510B7, 0xffffffff },=0A=
-	 PCI_IOTYPE, CYCLONE_SIZE, IS_TORNADO|HAS_NWAY, },=0A=
+	{"3c556 10/100 Mini PCI Adapter",{ 0x605510B7, 0xffffffff },=0A=
+	 PCI_IOTYPE, CYCLONE_SIZE, IS_CYCLONE | EEPROM_8BIT | HAS_CB_FNS | =
INVERT_MII_PWR, },=0A=
 	{"3c575 Boomerang CardBus",	{ 0x505710B7, 0xffffffff },=0A=
 	 PCI_IOTYPE,BOOMERANG_SIZE, IS_BOOMERANG|HAS_MII|EEPROM_8BIT, },=0A=
 	{"3CCFE575BT Cyclone CardBus",{ 0x515710B7, 0xffffffff },=0A=

------=_NextPart_000_0154_01BFE784.2837AD20--