OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Option Globetrotter GPRS pcmcia card

From: Mitja Muženič (mitjamuzenic.net)
Date: Tue Aug 03 2004 - 16:59:25 CDT


I got a Globetrotter GPRS/Wifi combo card [1] and I'm trying to get it
running on my test laptop (-current as of a week ago). The wifi part is
based on an Atmel chipset so obviously no joy. But the GPRS side has UARTs
and should appear as a plain serial card. I found some brief references that
it should work under linux [2](but couldn't find anthing BSD specific).
There is a unofficial linux howto at [3] and according to it, the card just
works under linux.

This is what I'm getting using GENERIC (full dmesg at the end)

"GPRS/WLAN Combo Card, ." (manufacturer 0x314, product 0x3) at pcmcia1
function 0 not configured

This is slightly more verbose (using PCMCIAVERBOSE)

pcmcia1: CIS version PC Card Standard 5.0
pcmcia1: CIS info: GPRS/WLAN Combo Card, .
pcmcia1: Manufacturer code 0x314, product 0x3
pcmcia1: function 0: network adapter, ccr addr 800 mask 1
pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask
6, iospace 0-2f; mwait_required io16 irqlevel powerdown

If I hack sys/dev/pcmcia/com_pcmcia.c to force it to attach to this card I
even get

pccom3 at pcmcia1 function 0 "GPRS/WLAN Combo Card, ." port 0xa000/48:
ns8250, no fifo

but this is obviously wrong and does not work.

I'm not even pretending I know anything about pcmcia code but it seems to me
that only the first function (Wifi) of this multifunction card gets
detected. I presume there should be a line saying that function 1 is a
serial port and pccom would then automagically attach to it.

Is there a resident pcmcia guru who can give a hint or two?

Regards, Mitja

[1] http://www.option.be/products/2_3_1_specifications.shtml

[2]
http://web.archive.org/web/20030605161713/http://www.option.com/support/linu
x_general_setup.shtml

[3] http://www.peck.org.uk/p/Projects/GlobeTrotter/globetrotter.html

-----------------------------

full dmesg: GENERIC with PCMCIAVERBOSE and PCMCIACISDEBUG

OpenBSD 3.5 (GENERIC) #5: Wed Aug 4 01:42:17 CEST 2004
    roottest.muzenic.net:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 128KB L2 cache) 499 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,
SSE
real mem = 200847360 (196140K)
avail mem = 179847168 (175632K)
using 2477 buffers containing 10145792 bytes (9908K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(66) BIOS, date 12/21/99, BIOS32 rev. 0 0xfd820
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 0xfd7b0/0x850
pcibios0: PCI IRQ Routing Table rev. 1.0 0xfdee0/208 (11 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0x10000 0xe0000/0x10000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mobility 1" rev 0x64
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0 "Texas Instruments PCI1450 CardBus" rev 0x03:
irq 11
cbb1 at pci0 dev 2 function 1 "Texas Instruments PCI1450 CardBus" rev 0x03:
irq 11
"AT&T/Lucent LTMODEM" rev 0x01 at pci0 dev 3 function 0 not configured
clcs0 at pci0 dev 5 function 0 "Cirrus Logic CS4280/46xx CrystalClear Audio"
rev 0x01: irq 11
ac97: codec id 0x43525914 (Cirrus Logic CS4297A rev 4)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
audio0 at clcs0
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK3211MAT>
wd0: 16-sector PIO, LBA, 3102MB, 6354432 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TEAC, CD-224E, 2.7B> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Mgmt" rev 0x03 at pci0 dev 7 function 3 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask c840 netmask c840 ttymask d842
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
cis mem map df273000
pcmcia1: CIS tuple chain:
CISTPL_DEVICE_A type=funcspec speed=250ns
 17 03 d9 01 ff
unhandled CISTPL 1d
 1d 04 03 d9 01 ff
CISTPL_MANFID
 20 04 14 03 03 00
CISTPL_FUNCID
 21 02 06 00
CISTPL_VERS_1
 15 1a 05 00 47 50 52 53 2f 57 4c 41 4e 20 43 6f
 6d 62 6f 20 43 61 72 64 00 2e 00 ff
CISTPL_CONFIG
 1a 06 01 02 00 08 01 ff
CISTPL_CFTABLE_ENTRY
 1b 12 c1 81 9d 71 b5 1e 2e 2e 2d fc 14 c6 40 2f
 30 ff ff 20
CISTPL_NO_LINK
 14 00
CISTPL_END
 ff
pcmcia1: CIS version PC Card Standard 5.0
pcmcia1: CIS info: GPRS/WLAN Combo Card, .
pcmcia1: Manufacturer code 0x314, product 0x3
pcmcia1: function 0: network adapter, ccr addr 800 mask 1
pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask
6, iospace 0-2f; mwait_required io16 irqlevel powerdown
pccom3 at pcmcia1 function 0 "GPRS/WLAN Combo Card, ." port 0xa000/48:
ns8250, no fifo