From owner-freebsd-mobile Sat Oct 28 5:37:12 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from lavender.sanpei.org (ppp161.dialup.st.keio.ac.jp [131.113.27.161]) by hub.freebsd.org (Postfix) with ESMTP id DC25237B4C5 for ; Sat, 28 Oct 2000 05:37:01 -0700 (PDT) Received: (from sanpei@localhost) by lavender.sanpei.org (8.11.0/3.7W) id e9SCE3x02915; Sat, 28 Oct 2000 21:14:03 +0900 (JST) Message-Id: <200010281214.e9SCE3x02915@lavender.sanpei.org> To: mobile@FreeBSD.org Subject: [CardBus] 3COM 3C575-TX CardBus Ethernet Card. From: sanpei@FreeBSD.org X-Mailer: Mew version 1.70 on Emacs 19.34.1 / Mule 2.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 28 Oct 2000 21:14:03 +0900 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi. I tested 3COM 3C575-TX CardBus Ethernet Card with MITSUBISHI AmityCN. I can use this card with below patch. Device information for 3C575-TX is from NetBSD, sys/dev/cardbus/if_ex_cardbus.c file. May I commit this patch into FreeBSD main tree? --- MIHIRA, Sanpei Yoshiro Yokohama, Japan. pccbb0: at device 6.0 on pci0 pccbb0: PCI Memory allocated: 18020000 pci_cfgintr: 0:6:A routed to irq 10 cardbus0: on pccbb0 pccbb0: Cannot attach pccard bus! pccbb1: at device 6.1 on pci0 pccbb1: PCI Memory allocated: 18021000 pci_cfgintr: 0:6:B routed to irq 10 cardbus1: on pccbb1 pccbb1: Cannot attach pccard bus! pccbb1: card inserted: event=0x00000006, state=30000920 pccbb1: pccbb_power: CARD_VCC_3V and CARD_VPP_UC [1] cardbus1: reading CIS data from configuration space Manufacturer ID: 01015750 TUPLE: CONFIG_CB [6]: 03 01 00 00 00 00 TUPLE: CFTABLE_ENTRY_CB [12]: 41 9a 01 b5 1e 01 55 02 30 ff ff 01 cardbus1: Opening BAR: type=MEM, bar=10, len=0040 Product version: 5.0 Product name: 3Com Corporation | 3C575A | Fast EtherLink XL PC Card | 001 | Functions: Network Adaptor, Memory xl0: <3Com 3c575A Fast Etherlink XL> port 0x2000-0x203f mem 0x18022000-0x1802203f,0x18030000-0x1803ffff irq 10 at device 0.0 on cardbus1 xl0: Ethernet address: 00:xx:yy:zz:dd:ee miibus0: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cstsevent occures, 0x30000969 Index: src/release/texts/HARDWARE.TXT =================================================================== RCS file: /home/ncvs/src/release/texts/HARDWARE.TXT,v retrieving revision 1.78 diff -u -r1.78 HARDWARE.TXT --- src/release/texts/HARDWARE.TXT 2000/10/28 01:35:21 1.78 +++ src/release/texts/HARDWARE.TXT 2000/10/28 09:06:34 @@ -688,7 +688,7 @@ 3C589/589B/589C/589D/589E/XE589ET/574TX/574B (PC-card/PCMCIA), 3C590/592/595/900/905/905B/905C PCI, 3C556-556B MiniPCI, -3C575B/575C/656/656B/656C Cardbus, +3C575TX/575B/575C/656/656B/656C Cardbus, and EISA (Fast) Etherlink III / (Fast) Etherlink XL 3Com 3c980/3c980B/3c980C Fast Etherlink XL server adapter Index: src/release/texts/i386/RELNOTES.TXT =================================================================== RCS file: /home/ncvs/src/release/texts/i386/RELNOTES.TXT,v retrieving revision 1.145 diff -u -r1.145 RELNOTES.TXT --- src/release/texts/i386/RELNOTES.TXT 2000/10/25 15:20:10 1.145 +++ src/release/texts/i386/RELNOTES.TXT 2000/10/28 09:06:34 @@ -742,7 +742,7 @@ 3C589/589B/589C/589D/589E/XE589ET/574TX/574B (PC-card/PCMCIA), 3C590/592/595/900/905/905B/905C PCI, 3C556/556B MiniPCI, -3C575B/575C/656/656B/656C Cardbus, +3C575TX/575B/575C/656/656B/656C Cardbus, and EISA (Fast) Etherlink III / (Fast) Etherlink XL 3Com 3c980/3c980B Fast Etherlink XL server adapter Index: src/sys/pci/if_xl.c =================================================================== RCS file: /home/ncvs/src/sys/pci/if_xl.c,v retrieving revision 1.84 diff -u -r1.84 if_xl.c --- src/sys/pci/if_xl.c 2000/10/16 23:16:02 1.84 +++ src/sys/pci/if_xl.c 2000/10/28 09:06:35 @@ -57,6 +57,7 @@ * 3Com 3c450-TX 10/100Mbps/RJ-45 (Tornado ASIC) * 3Com 3c556 10/100Mbps/RJ-45 (MiniPCI, Hurricane ASIC) * 3Com 3c556B 10/100Mbps/RJ-45 (MiniPCI, Hurricane ASIC) + * 3Com 3c575TX 10/100Mbps/RJ-45 (Cardbus, Hurricane ASIC) * 3Com 3c575B 10/100Mbps/RJ-45 (Cardbus, Hurricane ASIC) * 3Com 3c575C 10/100Mbps/RJ-45 (Cardbus, Hurricane ASIC) * Dell Optiplex GX1 on-board 3c918 10/100Mbps/RJ-45 @@ -193,6 +194,8 @@ "3Com 3c556 Fast Etherlink XL" }, { TC_VENDORID, TC_DEVICEID_HURRICANE_556B, "3Com 3c556B Fast Etherlink XL" }, + { TC_VENDORID, TC_DEVICEID_HURRICANE_575A, + "3Com 3c575TX Fast Etherlink XL" }, { TC_VENDORID, TC_DEVICEID_HURRICANE_575B, "3Com 3c575B Fast Etherlink XL" }, { TC_VENDORID, TC_DEVICEID_HURRICANE_575C, @@ -1172,6 +1175,7 @@ case TC_DEVICEID_BOOMERANG_10_100BT: /* 3c905-TX */ case TC_DEVICEID_HURRICANE_556: /* 3c556 */ case TC_DEVICEID_HURRICANE_556B: /* 3c556B */ + case TC_DEVICEID_HURRICANE_575A: /* 3c575TX */ case TC_DEVICEID_HURRICANE_575B: /* 3c575B */ case TC_DEVICEID_HURRICANE_575C: /* 3c575C */ sc->xl_media = XL_MEDIAOPT_MII; @@ -1240,7 +1244,8 @@ if (pci_get_device(dev) == TC_DEVICEID_HURRICANE_556) sc->xl_flags |= XL_FLAG_8BITROM; - if (pci_get_device(dev) == TC_DEVICEID_HURRICANE_575B || + if (pci_get_device(dev) == TC_DEVICEID_HURRICANE_575A || + pci_get_device(dev) == TC_DEVICEID_HURRICANE_575B || pci_get_device(dev) == TC_DEVICEID_HURRICANE_575C) sc->xl_flags |= XL_FLAG_FUNCREG | XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 | XL_FLAG_8BITROM; Index: src/sys/pci/if_xlreg.h =================================================================== RCS file: /home/ncvs/src/sys/pci/if_xlreg.h,v retrieving revision 1.28 diff -u -r1.28 if_xlreg.h --- src/sys/pci/if_xlreg.h 2000/10/16 23:16:02 1.28 +++ src/sys/pci/if_xlreg.h 2000/10/28 09:06:35 @@ -663,6 +663,7 @@ #define TC_DEVICEID_TORNADO_HOMECONNECT 0x4500 #define TC_DEVICEID_HURRICANE_556 0x6055 #define TC_DEVICEID_HURRICANE_556B 0x6056 +#define TC_DEVICEID_HURRICANE_575A 0x5057 #define TC_DEVICEID_HURRICANE_575B 0x5157 #define TC_DEVICEID_HURRICANE_575C 0x5257 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message