RE: PCMCIA switch

You can try using IoInvalidateDeviceState on your device or
IoInvalidateDeviceRelations on the parent bus device (if you can get to it.)
If successful this will result in a surprise removal, which is probably not
what you want. If devcon can force a re-enumeration of the bus (which I
believe it can) then you can do this all through user mode using the CM_*
api documented in the ddk. A simple bus re-enumeration will once again bring
up the surprise removal nonsense, however you can probably work out some
arrangement of application/driver communication plus CM_* api to more or
less do what the ‘safely remove hardware’ thing is doing plus coordinate
that with switching modes on your physical device.

=====================
Mark Roddy


From: Gil Mizrahi [mailto:xxxxx@Gntsteps.com]
Sent: Wednesday, May 19, 2004 11:01 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PCMCIA switch

Hi,

We have a PCMCIA device that can expose two different devices, one
in a time. By default the device exposed as a modem but if we change one of
the devices registers the device exposed as a WiFi card. How can we cause
the plug and play manager / the PCMCIA bus driver to notice that the modem
is removed and that there is a new device (the WiFi card) in the PCMCIA
slot?

Thanks,

Gil


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I asked the owner of the pcmcia driver and he had this to say:


They can disconnect the card detect lines…that will cause the host
controller to generate a card detect event. They should have some delay
(along the lines of how long it may take a person to eject and reinsert
a card, maybe a half a second), and then reconnect the lines.

Actually, this probably means they have to electrically disconnect all
the pins on the bus. If that is too expensive they would need a software
solution. We don’t have one.

D


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gil Mizrahi
Sent: Wednesday, May 19, 2004 8:01 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PCMCIA switch

Hi,

We have a PCMCIA device that can expose two different devices, one in a
time. By default the device exposed as a modem but if we change one of
the devices registers the device exposed as a WiFi card. How can we
cause the plug and play manager / the PCMCIA bus driver to notice that
the modem is removed and that there is a new device (the WiFi card) in
the PCMCIA slot?

Thanks,
Gil


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com