I have an Ndis Miniport driver for an adapter on PCMCIA, PCI , USB and
SDIO bus interfaces. I have a SMART Card reader Driver which has to read
and write to the smart card on the same NIC. Since there are several
interfaces and the same interrupt line will be used by both the
drivers, I need to export some read/write function from Ndis miniport
driver for the smart card driver to use. Also i need to export another
function (a DPC kind of ) from the smart card which will be called by
the Ndis miniport when it finds that source of the interrupt is belonged
to Smart Card reader driver. How do i achieve this ?
From NDIS miniport driver i can not call (WHQL restricts this)
IoRegisterDeviceInterface
IoSetDeviceInterfaceState
but i can call
IoGetDeviceObjectPointer
IoCallDriver
IoRegisterPlugPlayNofitification
but without IoRegisterDeviceInterface and IoSetDeviceInterfaceState i
can hardly do anything. What are the other methods to follow ?
Regards
Esha
You could use Ex callbacks. The latest version of the NDISwdm sample
shows this.
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eshanye.K.P
Sent: Wednesday, August 23, 2006 2:24 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to export functions from Ndis miniport driver for a
smart card driver to use ?
I have an Ndis Miniport driver for an adapter on PCMCIA, PCI , USB and
SDIO bus interfaces. I have a SMART Card reader Driver which has to read
and write to the smart card on the same NIC. Since there are several
interfaces and the same interrupt line will be used by both the drivers,
I need to export some read/write function from Ndis miniport driver for
the smart card driver to use. Also i need to export another function (a
DPC kind of ) from the smart card which will be called by the Ndis
miniport when it finds that source of the interrupt is belonged to Smart
Card reader driver. How do i achieve this ?
From NDIS miniport driver i can not call (WHQL restricts this)
IoRegisterDeviceInterface IoSetDeviceInterfaceState
but i can call
IoGetDeviceObjectPointer
IoCallDriver
IoRegisterPlugPlayNofitification
but without IoRegisterDeviceInterface and IoSetDeviceInterfaceState i
can hardly do anything. What are the other methods to follow ?
Regards
Esha
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer