Subject: Re: PCMCIA Ethernet Combo Card, atapibus, apm
To: Andrew Wheadon <awheadon@umassd.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-i386
Date: 10/26/1997 15:26:59
On Sun, 26 Oct 1997 17:21:32 -0500 (EST) 
 Andrew Wheadon <awheadon@umassd.edu> wrote:

 >   I'm having a little trouble with my Gateway 2000 XJEM3336 Ethernet Modem
 > Combo Card aka: Megahertz XJACK Combo card with SMC Ethernet Chip.

Ok...

 > The Ethernet part is not recognised. The Manufacturer Code is listed as
 > 0x102 instead of Megahertz's 0x128 and the product code is 0x6.  Also if I
 > change the code in 'if_sm_pcmcia.c' to recognise those codes as correct it
 > will recognise the ioports that are set for the modem (com2,0x3e8-0x3ef,
 > irq 10) instead of the second io port at 0x300-0x30f.  If I force the
 > position to 0x300,irq 11 it will only probe the first 8 bits. I have
 > compiled the kernel without the com_pcmcia.c driver but it hasn't helped. 

Ok...

Cards like ethernet/modem combos typically have 2 functions (in the PCMCIA
sense, much like multi-function PCI cards).  Each function will have its
own i/o port range, etc.

 >   Does anybody have a quick hack I can apply to get the ethernet part of
 > the card working.

Unforunately, not a quick one... see below... More research is needed,
here, I think...

 > pcmcia0 at pcic0 controller 0 socket 0
 > pcmcia1 at pcic0 controller 0 socket 1
 > pcmcia1: CIS version 2.0 or 2.01
 > pcmcia1: CIS info: Gateway 2000, XJEM3336, Telepath Combo Card
 > pcmcia1: Manufacturer code 0x102, product 0x6
 > pcmcia1: function 0: serial port, ccr addr 100 mask 3
 > pcmcia1: function 0, config table entry 53: I/O card; irq mask ffff;
 >  iomask a, iospace 3f8-3ff; audio
 > pcmcia1: function 0, config table entry 33: I/O card; irq mask ffff;  
 >  iomask a, iospace 2f8-2ff; io8 audio
 > pcmcia1: function 0, config table entry 45: I/O card; irq mask ffff;  
 >  iomask a, iospace 3e8-3ef; io8 audio
 > pcmcia1: function 0, config table entry 35: I/O card; irq mask ffff;  
 >  iomask a, iospace 2e8-2ef; io8 audio
 > com2 at pcmcia1 function 0 port 0x3e8-0x3ef: ns16550a, working fifo
 > pcmcia1: card irq 10

Note that your combo card seems to only present one PCMCIA function,
that being the modem.

It would be interesting to know about the experiences of people with
this card under FreeBSD's PAO stuff and/or Linux.  Perhaps they can
provide a crucial hint as to how to get this card to work... I have
the FreeBSD PAO stuff handy which I can peek at today, but the last
time I checked it (i.e. to grab the SMC91cxx driver in the first place),
it only grok'd the Megahertz card.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-6                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939