Subject: PCMCIA Ethernet Combo Card, atapibus, apm
To: None <port-i386@NetBSD.ORG>
From: Andrew Wheadon <awheadon@umassd.edu>
List: port-i386
Date: 10/26/1997 17:21:32
Hi,
(I'm running current as of yesterday, part-solutions are also welcome)

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

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. 

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

Concerning the Modem part I've noticed that it tends to hang up frequently
when accessed to first time and fails to at all if the ethernet cable is
attached. Any hints for this problem ?

Secondly I'm having trouble getting the atapi cd recognised. It is not
even accessed in the boot processed and enabling the ATAPI_DEBUG_PROBE has
not yielded very much. Is this working for anybody using a notebook ?

Finally the Machine (Gateway 2000 Solo 9100) is supposed to be APM V1.2
but the apm v1.1 we have seems to put in in suspend mode quite frequently.
I've reverted to v1.0 (I already have APM_NO_IDLE and APM_NO_SUSPEND set)
but was wondering whether that's the only solution ?

--- dmesg.out appended ---
Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3_ALPHA (ANDREW) #2: Sun Oct 26 16:23:44 EST 1997
    toor@uw04-428b-1.res.umassd.edu:/usr/src/sys/arch/i386/compile/ANDREW
cpu0: family 5 model 8 step 1
cpu0: Intel Pentium (586-class)
real mem  = 33157120
avail mem = 29560832
using 430 buffers containing 1761280 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
pcib0 at pci0 dev 1 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
Intel 82371AB IDE controller (PIIX4) (IDE mass storage, interface 0x80, 
 revision 0x01) at pci0 dev 1 function 1 not configured
Intel 82371AB USB Host Controller (PIIX4) (USB serial bus, revision 0x01)  
 at pci0 dev 1 function 2 not configured
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge,  
 revision 0x01) at pci0 dev 1 function 3 not configured
Chips and Technologies 65554 (VGA display, revision 0xc2) at pci0 dev 2  
 function 0 not configured
Cirrus Logic product 0x1110 (CardBus bridge, revision 0xc1) at pci0 dev 10  
 function 0 not configured
Cirrus Logic product 0x1110 (CardBus bridge, revision 0xc1) at pci0 dev 10  
 function 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wdc_atapi_get_params: probing drive 0
wdc_atapi_get_params: probing drive 1
ATAPI_IDENTIFY_DEVICE failed for drive 1
wd0 at wdc0 drive 0: <TOSHIBA MK3003MAN>
wd0: 2937MB, 5968 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
sb0 at isa0 port 0x220-0x237 irq 5 drq 0: dsp v3.01
audio0 at sb0
npx0 at isa0 port 0xf0-0xff: using exception 16
vt0 at isa0 port 0x60-0x6f irq 1
vt0: generic, 80 col, color, 8 scr, mf2-kbd, [R3.32]
pms0 at vt0 irq 12
vt0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: using irq 9
pcic0: controller 0 (Cirrus PD672X) has sockets A and B
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
biomask 4040 netmask 4040 ttymask 52c2
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs