Hi all,
Thanks mostly to Doron I have a KMDF bus driver which, among other
things, creates multiple child PDOs (for UARTs) to which then attaches a
customised version of serial.sys from the WDK.
My one last step is to dispatch the interrupts to serial.sys. The bus
driver controls a PCI card with a single hardware interrupt. This single
hardware interrupt comprises multiple interrupt sources including each
of the UARTs. I therefore need the bus driver to examine the interrupt
status register and dispatch the interrupt to the appropriate child
device driver.
I was wondering the best way to go about this. My initial research
suggests to me that a DPC, or rather multiple DPC queues, would be the
way to go?!?
Only thing is, the ISR for serial.sys is rather complex and there’s a
lot happening that I’m assuming expects to be running within the context
of an ISR. I’m wondering if I’ll have synchronisation issues if that
code is running within a DPC rather than an ISR…
In any case, am I on the right track? And how best to call a DPC in my
serial driver from the ISR of the bus driver?
TIA
Regards,
–
Mark McDougall, Engineer
Virtual Logic Pty Ltd, http:
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266</http:>