Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 1998 21:00:04 -0400 (EDT)
From:      Robert Watson <robert@cyrus.watson.org>
To:        questions@FreeBSD.ORG
Subject:   WaveLAN driver with pccardd under 3.0-CURRENT
Message-ID:  <Pine.BSF.3.96.980923205210.24597D-100000@fledge.watson.org>

next in thread | raw e-mail | index | archive | help

I am attempting to use the wl driver with a PCMCIA WaveLAN card and
pccardd support under 3.0-CURRENT (soon to be release).  However, I am
having some trouble getting pccardd to configure the device.  Here are the
lines I added to pccard.conf:

card "AT&T" "WaveLAN/PCMCIA"
        config 0x1 "wl0" 3
        insert  echo WaveLAN pccard inserted
        insert  /sbin/ifconfig wl0 inet 128.2.86.191 netmask 255.255.0.0
up
        remove  echo WaveLAN pccard removed
        remove  /sbin/ifconfig wl0 delete

And here is the line from my kernel:

device wl0 at isa? port ? net irq ? vector wlintr

Each time I insert the card, pccardd generates the following message:

Sep 23 16:15:31 sleipnir /kernel: Card inserted, slot 0
Sep 23 16:15:38 sleipnir pccardd[46]: driver allocation failed for AT&T

I loaded up pccardd in the debugger, and tracked down the error to
cardd.c:555:

        /*
         * If the driver fails to be connected to the device,
         * then it may mean that the driver did not recognise it.
         */
        memcpy(drv.misc, sp->eaddr, 6); 
        if (ioctl(sp->fd, PIOCSDRV, &drv)) {
                logmsg("driver allocation failed for %s", sp->card->manuf);
                return (0);
        }
        return (1);

Apparently the kernel wl driver is rejecting the suggestion that its card
is present.  The wl(4) man page refers to the 'wlp' driver for pcmcia
support -- from the reference, I assume this is similar to the
relationship between the standard 'ep' driver, and the 'zp' pcmcia
extension from pre-pccardd-working days.  Needless to say, I cannot find
wlp in LINT, etc, and am not really interested in using non-pccardd
support, as I have other cards I am popping in and out on a regular basis.

Is there anything about my config that is clearly wrong?  The card (when
probed with pccardc dumpcis, listed below) reports that it wants to use
IRQ 3 -- wlconfig apparently allows that to be reconfigured, but only if
wl can first be probed :).  IRQ 3 is available on this machine, so that
should not be a problem (dmesg reports no devices associated with it).

Any advice would be welcome.

Here is the pccardc dumpcis output:

Code 128 not found
Code 128 not found
code Unknown ignored
Configuration data for card in slot 1
Tuple #1, code = 0x1 (Common memory descriptor), length = 3
    000:  00 00 ff
        Common memory device information:
                Device number 1, type No device, WPS = OFF
                Speed = No speed, Memory block size = 512b, 1 units
Tuple #2, code = 0x15 (Version 1 info), length = 80
    000:  05 00 41 54 26 54 00 57 61 76 65 4c 41 4e 2f 50
    010:  43 4d 43 49 41 00 56 65 72 73 69 6f 6e 20 32 2e
    020:  30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    030:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    040:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff
        Version = 5.0, Manuf = [AT&T],card vers = [WaveLAN/PCMCIA]
        Addit. info = [Version 2.00],[]
Tuple #3, code = 0x10 (Checksum), length = 5
    000:  07 00 63 00 e7
        Checksum from offset 7, length 99, value is 0xe7
Tuple #4, code = 0x17 (Attribute memory descriptor), length = 3
    000:  49 02 ff
        Attribute memory device information:
                Device number 1, type EEPROM, WPS = ON
                Speed = 250nS, Memory block size = 8Kb, 1 units
Tuple #5, code = 0x20 (Manufacturer ID), length = 4
    000:  56 01 01 01
        PCMCIA ID = 0x156, OEM ID = 0x101
Tuple #6, code = 0x21 (Functional ID), length = 2
    000:  06 00
        Network/LAN adapter
Tuple #7, code = 0x22 (Functional EXT), length = 2
    000:  01 07
        Modem interface capabilities:
Tuple #8, code = 0x22 (Functional EXT), length = 5
    000:  02 80 84 1e 00
        Data modem services available:
Tuple #9, code = 0x22 (Functional EXT), length = 2
    000:  03 06
Tuple #10, code = 0x22 (Functional EXT), length = 2
    000:  03 07
Tuple #11, code = 0x22 (Functional EXT), length = 8
    000:  04 06 08 00 0e 21 ef 4b
        Voice services available:
Tuple #12, code = 0x22 (Functional EXT), length = 2
    000:  05 01
        Modem interface capabilities:
Tuple #13, code = 0x1a (Configuration map), length = 7
    000:  03 03 00 40 00 00 01
        Reg len = 4, config register addr = 0x4000, last config = 0x3
        Registers: X------- 
Tuple #14, code = 0x1b (Configuration entry), length = 15
    000:  c1 01 99 77 55 4d 5d 3e 66 4d 23 30 ff ff 00
        Config index = 0x1(default)
        Interface byte = 0x1 (I/O)
        Vcc pwr:
                Nominal operating supply voltage: 5 x 1V
                Minimum operating supply voltage: 4.5 x 1V
                Maximum operating supply voltage: 5.5 x 1V
                Max current average over 1 second: 3.5 x 100mA
                Max current average over 10 ms: 6 x 100mA
                Power down supply current: 4.5 x 10mA
        Card decodes 3 address lines, 8 Bit I/O only
                IRQ modes: Level
                IRQ level = 3
        Max twin cards = 0
        Misc attr: (Read-only) (Power down supported)
Tuple #15, code = 0x1b (Configuration entry), length = 17
    000:  83 01 99 77 55 4d 5d b6 45 b6 7d 45 23 30 ff ff
    010:  00
        Config index = 0x3
        Interface byte = 0x1 (I/O)
        Vcc pwr:
                Nominal operating supply voltage: 5 x 1V
                Minimum operating supply voltage: 4.5 x 1V
                Maximum operating supply voltage: 5.5 x 1V
                Max current average over 1 second: 3 x 100mA, ext = 0x45
                Max current average over 10 ms: 3 x 100mA, ext = 0x7d
                Power down supply current: 4 x 10mA
        Card decodes 3 address lines, 8 Bit I/O only
                IRQ modes: Level
                IRQ level = 3
        Max twin cards = 0
        Misc attr: (Read-only) (Power down supported)
Tuple #16, code = 0x11 (Long link to attribute memory), length = 4
    000:  f2 0d 00 00
        Long link to attribute memory, address 0xdf2
Tuple #17, code = 0xff (Terminator), length = 0
Tuple #18, code = 0x13 (Link target), length = 3
    000:  43 49 53
Tuple #19, code = 0x0 (Null tuple), length = 64
    000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    010:  08 00 0e 21 ef 4b 00 00 00 00 00 00 00 04 03 00
    020:  00 03 00 79 92 01 00 00 00 00 00 00 00 00 00 00
    030:  00 00 00 00 00 00 00 00 00 00 00 00 01 71 28 aa
Tuple #20, code = 0x14 (No link), length = 0
Tuple #21, code = 0xff (Terminator), length = 0





  Robert N Watson 

Carnegie Mellon University            http://www.cmu.edu/
TIS Labs at Network Associates, Inc.  http://www.tis.com/
SafePort Network Services             http://www.safeport.com/
robert@fledge.watson.org              http://www.watson.org/~robert/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980923205210.24597D-100000>