Subject: Re: pcmcia cd drive prob
To: Christos Zoulas <christos@astron.com>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 08/14/2006 12:15:02
On Fri, Mar 10, 2006 at 12:26:38AM +0000, Christos Zoulas wrote:
> In article <20060309192006.GA371@quartz.itdept.newn.cam.ac.uk>,
...
> >when plugging a pcmcia card with a CD drive attached to it into a laptop.
> >It's power light doesn't come on.
> >
> >Any idea what "error=22" means?
>
> EINVAL; now you have to find out what function returns this.
Could it be because the iospace is 8 + 2 bytes, not just a single 8 byte range?
Cheers,
Patrick
cis mem map cbb39000
pcmcia0: CIS tuple chain:
01 03 dc 00 ff
CISTPL_DEVICE type=funcspec speed=100ns
15 1a 04 01 20 00 4e 69 6e 6a 61 41 54 41 2d 00
56 31 2e 30 00 41 50 30 30 20 00 ff
CISTPL_VERS_1
1a 05 01 23 00 02 03
CISTPL_CONFIG
1b 15 e1 01 3d 11 55 1e fc 23 f0 61 80 01 07 86
03 01 30 68 d0 10 00
CISTPL_CFTABLE_ENTRY
1b 0f 22 38 f0 61 90 01 07 96 03 01 30 68 d0 10
00
CISTPL_CFTABLE_ENTRY
1b 0f 23 38 f0 61 a0 01 07 a6 03 01 30 68 d0 10
00
CISTPL_CFTABLE_ENTRY
14 00
CISTPL_NO_LINK
ff
CISTPL_END
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: , NinjaATA-, V1.0, AP00
pcmcia0: Manufacturer code 0xffffffff, product 0xffffffff
pcmcia0: function 0: unspecified, ccr addr 200 mask 3
pcmcia0: function 0, config table entry 33: I/O card; irq mask d068; iomask 10, iospace 180-187 386-387; memspace 0-fff; io8 io16 irqlevel
pcmcia0: function 0, config table entry 34: I/O card; irq mask d068; iomask 10, iospace 190-197 396-397; memspace 0-fff; io8 io16 irqlevel
pcmcia0: function 0, config table entry 35: I/O card; irq mask d068; iomask 10, iospace 1a0-1a7 3a6-3a7; memspace 0-fff; io8 io16 irqlevel
wdc0 at pcmcia0 function 0: < , NinjaATA-, V1.0, AP00 >
pcmcia_config_alloc: io 0 start=180 length=8 align=10000 skew=180
pcmcia_config_alloc: io 0 start=190 length=8 align=10000 skew=190
pcmcia_config_alloc: io 0 start=1a0 length=8 align=10000 skew=1a0
pcmcia_function_configure: no config entry found, error=1
pcmcia_function_configure: no config entry found, error=22
wdc0: configure failed, error=22