From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] PCMCIA 3CCFE574BT 10/100Mb ethernet driver From: Peter Bosch MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-lveiysebwrlrzzsckoraestiwz" Message-Id: <20010928135547.AA22019A3D@mail.cse.psu.edu> Date: Fri, 28 Sep 2001 09:55:41 -0400 Topicbox-Message-UUID: f6217a32-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-lveiysebwrlrzzsckoraestiwz Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit For the 575 (CardBus), the PCI BAR2 register contains the address for the cardbus specific registers. Treat this address as an array of 3 ulongs and acknowledge each interrupt as follows: /* On the 575B and C, interrupts need to be acknowledged in CardBus memory space */ static void intrack3c575(ulong *cbfns) { cbfns[1] = 0x8000; } peter. --upas-lveiysebwrlrzzsckoraestiwz Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Fri Sep 28 08:19:29 EDT 2001 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Fri Sep 28 08:19:28 EDT 2001 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id ECC8619A3D; Fri, 28 Sep 2001 08:19:12 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from plan9.cs.bell-labs.com (ampl.com [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 68177199E7 for <9fans@cse.psu.edu>; Fri, 28 Sep 2001 08:18:49 -0400 (EDT) From: jmk@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] PCMCIA 3CCFE574BT 10/100Mb ethernet driver MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010928121849.68177199E7@mail.cse.psu.edu> Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 28 Sep 2001 08:18:46 -0400 I believe, never having seen one, that the 3CCFE574BT is a PCMCIA card based on the chip used in the 3C905, but without the busmastering capability; the older 3C589 PCMCIA cards were based on the chip used in the original 3C509 series adapters. The 3CCFE575BT is a Cardbus card using the full capabilities of the 3c905[BC] chips. I think. Given the way the 3C589 driver you have initialises and then just uses the base elnk3 driver, it's possible you could add in the 3CCFE574BT with little change. Of course, when 3Com wedges these PCI chips into PCMCIA/Cardbus cards there sometimes are changes in the way they operate, e.g. the way interrupts are acknowledged on the 3CCFE575BT. A start would be to run aux/pcmcia and see if it looks plausible; on a 3C589 you get % aux/pcmcia device 268435456 bytes of 0ns unknown attr device 8192 bytes of 150ns EEPROM version 4.1 3Com Corporation 3C589D TP/BNC LAN Card Ver. 2a 000002 configuration registers at (0)0x10000 (1)0x10002 configuration 1 (default) I/O device, Vcc: Vnominal 5000000uV Iavg 30mA Ipeak 50mA Ipowerdown 5000uA max wait 700ns max ready/busy wait 500000ns IO space 4 address lines selectable 8bit or 8&16bit access interrupts:level, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 configuration 3 Vcc: Vnominal 5000000uV Iavg 200mA Ipeak 200mA Ipowerdown 5000uA % Someone here has been working very hard on integrating PCMCIA and Cardbus support and we can handle the 3CCFE575BT now; there are a lot of changes to make that happen and it won't be available until the next major release. --jim On Fri Sep 28 07:40:32 EDT 2001, boyd@fr.inter.net wrote: > has anyone got one? or any pointers? > > i'd like, at some point, to have ethernet. > --upas-lveiysebwrlrzzsckoraestiwz--