I made some experiments today, but so far it doesn't look good. I remember that a Windows 2000 laptop I tried a DTL-H10010 card on recognized it and also assigned resources (it was one memory range if I remember correctly). Unfortunately, my XP SP3 does not assign any resources, although it seemingly recognizes the card just fine.
What I wanted to do was to write a bus driver on top of the PCMCIA device, with a static list of two children. One for the ATA interface, one for the ethernet. I was hoping we could write an IDE controller minidriver via pciidex.sys. The advantage would be that atapi.sys attached automatically, and if the HDD was attached, it would automatically getting recognized and exported to applications as an ordinary device via the regular API. The same for the ethernet controller via an NDIS miniport driver.
Now for the bad news: it just plain doesn't work. I started with a KMDF driver, but it gets thrown out of memory after EvtDriverDeviceAdd completes successfully :stupid:. EvtDevicePrepareHardware is never called, which usually means IRP_MN_START_DEVICE fails. Debugging this is tough, as I cannot get the KMDF debugger extensions to work (symbols for my version of wdfldr.sys are missing on the public symbol server, rendering !wdfkd useless). I used DebugView for some quick same-machine debugging (I currently do not have a second machine for real kernel debugging available), and it reports exactly this: EvtDriverDeviceAdd succeeds, but afterwards the system sends IRP_MN_REMOVE_DEVICE and the driver is unloaded again.
Suspecting KMDF, I also tried a WDM driver instead. I used the Toaster function driver, that now gets loaded for the DTL-H10010 via a patched INF. Unfortunately it shows the same behaviour, but at least allows better debugging. Seems the real culprit is the PCMCIA bus driver, because it fails the IRP_MN_START_DEVICE with STATUS_INSUFFICIENT_RESOURCES. Which brings me to the next observation mentioned above: XP does not assign any resources to the device, the AllocatedResources(Translated) lists passed as part of IRP_MN_START_DEVICE are empty (really, both pointers are NULL, and I'm not sure whether this is even a valid way to invoke IRP_MN_START_DEVICE).
But there are also some good news, or at least I think they are not that bad: XP can read configuration information from the card. Here's a rundown (sorry for the odd formatting, the forum software removes leading whitespace and does not provide a CODE tag or similar):
The device node tree is cut down to just the path from the root node to the one for the PCMCIA function. As you can see, it reads configuration tuples from the card. This is the region that is parsed and checked by card_find_manfid in ps2dev9.
By the way: I wasn't able to read the config space myself in a modified Toaster driver. I got the BUS_INTERFACE_STANDARD, which should allow access via GetBusData, but it always returns a length of zero bytes read. The dump above shows the cache of the configuration space as seen by the pcmcia bus driver.
As an addition, here is a simple decoding of the configuration tuples. The device exports a single function that requests a single 1024-byte memory range. Unfortunately, it does not give a base address in attribute space, so I'm not sure whether Windows could configure the card: I would think it needed to tell the address decoder where the memory range resides in bus/"logical" address space, which in my opinion is impossible without a configuration tuple. But I may be wrong on this, I don't know PCI or PCMCIA well enough.