On Fri, 27 Dec 2002 14:53:58 +0100 (CET), Jimi wrote:

>I'm just trying to find out how the PCMCIA "API" works. I mean the API that calls 
>out, if a device 
>attaches/detaches from PCMCIA.

>I found out currently that detection is just done by "AttachDD" to "PCMCIA$".

In fact, there is a little bit more involved in attaching a client
driver to the PCCard/Cardbus subsystem. For details see PCMCIASetup()
in the attached source.

>Also the own IDC gets called to show what device attached/detached.

Never. It's the event callback function provided at client registration
that gets called by the card services driver (PCMCIA.SYS). Client
drivers service the events that they registered for asynchonously (in
the context of timer interrupts as I found out).

>But there is no real documentation and I couldnt find out how the 
>actual interaction works. I want to get called on any device attach/detachment. I 
>think that I will do that 
>connecting on INITCOMPLETE, because that's the point where USB comes accessible as 
>well.

DaniS506 attaches to PCMCIA.SYS *and configures already inserted
supported cards* at BASEDEV Init time!

>Also are there Cardbus-drivers available using the same API?

I don't know (may be the Xircom driver) but Cardbus is basically the
same as PCCard from the card services point of view.

Ciao,
  Dani

Attachment: cs.c
Description: Binary data

Reply via email to