Subject: Re: CardBus, anyone?
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 08/15/1998 18:39:55
Jason Thorpe <thorpej@nas.nasa.gov> writes:
> I have no CardBus code, working or otherwise.  Someone loaned me a
> 3Com 3c575-TX CardBus Ethernet, but that's the extent of it.

oh, hmm.  bummer.  8-)

Sorry to drag your name into this, then...


> FWIW, the intent of CardBus seems to be "Glue DMA-using PCI devices into
> PCMCIA slots".  AFAIK, CardBus cards implement the full PCI configuration
> space, in addition to the CIS that PCMCIA uses (a pointer to which is
> actually located in PCI configuration space).

You K wrong.  Go buy the book i keep pointing you at.  8-)

CardBus cards implement many of the chunks of PCI configuration space,
but not all of the ones that you'd want if you were trying to do
configuration based on them.  8-)

CIS has some 'interesting' differences.  As noted, there's a 'pointer'
to it located to it in PCI config space, but that pointer can have
several meanings including "in a region that you have to map via a
BAR," and "in PCI configuration space."  There are some additional
tuples which detail exactly what you're supposed to do with
configuration space, once you've looked at the CIS.

Basically, configuration is driven by the CIS, and then you program
various registers in the PCI-like configuration space header with
memory and i/o addresses, etc.  You also need to set up the bridge,
which is in many ways very much like a PPB.


cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.
Plug: Get your official NetBSD-1.3.2 CDROM set today! http://www.netbsd.com/