How to export functions from Ndis miniport driver for a smart carddriver to use ?

E

Eshanye_kp

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
 
F

fat_boy

Unless you are developing for NT4 just share the interrupt in the
normal fashion. Each driver has its own ISR and registers for the same
interrupt. If the interrupt is not for its device, it informs the OS
of this and the OS calls any other ISRs registered for that interrupt.
 
D

Don Burn

Create a control device, then have the smart card driver open that device
and issue an IOCTL to get a set of function pointers for the services
needed. Be careful that the calls from the smart card have all the context
they need to work in NDIS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top