Subject: Re: pcmcia cd drive prob
To: None <current-users@NetBSD.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 08/15/2006 18:16:45
On Mon, Aug 14, 2006 at 12:32:59PM +0100, Patrick Welche wrote:
> On Sat, Mar 11, 2006 at 10:12:12PM +0100, Manuel Bouyer wrote:
> > I guess pcmcia_config_alloc() couldn't allocate ressources for this
> > device. Maybe playing with pcmcia kernel options can help this.
> > 
> > > pcmcia_function_configure: no config entry found, error=22
> > 
> > wdc_pcmcia_validate_config_memory() thinks this is not a valid entry
> 
> I missed your note(!) I popped a printf in both wdc_pcmcia_validate_config_io
> and wdc_pcmcia_validate_config_memory and neither printed anything - it
> seems they aren't called - a clue!

Incorrect of course...

What I actually seem to see is chain of iospace being validated by
wdc_pcmcia_validate_config_io

wdc_pcmcia_validate_config_io:
  number = 33
  flags = 0x130
  iftype = PCMCIA_IFTYPE_IO
  num_iospace = 2
  iomask = 16
  num_memspace = 1
  memspace[0].length = 4096
pcmcia_config_alloc: io 0 start=180 length=8 align=10000 skew=180

etc

but then being passed to wdc_pcmcia_validate_config_memory as well(!) which
then fails with error 22 as iftype = io not memory.

Cheers,

Patrick