Hi everyone,
1. I am writing an NDIS6 virtual miniport driver and I am confused
by the miniport and NDIS behaviour when I am disabling the device
(through device manager).
What happens is that
Ndis calls MiniportPause, than it calls MiniportRestart and after
that it calls MiniportPause again
and finally it calls MiniportHalt.
This confuses me since from what I understood from the state machine
documented at
WDK the sequence should be:
a call to MiniportPause followed by a call to MiniportHalt - no call
to MiniportRestart in the middle
Is the sequence I see in my miniport indicates a problem on it or is
it the normal sequence when
disabling a device?
2. In the future I would like to turn the mninipot into NDIS + KMDF
driver using USB.
I would like to use the ContiniousReader mechanism.
In NdisEdge sample it is written shortly about how to convert the
sample to a USB but it is very
general. So I looked at the WDK and at the osrusbfx2 sample and I
saw that when using it on a
KMDF driver one should do some actions on the following KMDF
callbacks:
EvtDeviceD0Entry (MiniportRestart ?)
EvtDeviceD0Exit (MiniportPause ?)
EvtDevicePrepareHardware (MiniportInitializeEx ?)
EvtDeviceReleaseHardware (MiniportHaltEx ?)
Writing an NDIS+KMDF miniport I don't have these callbacks what are
the NDIS callbacks that
complies to the these KMDF callbacks (I wrote my assumptions in
parenthesis) ?
Thanks
Miki