
Publication 2711P-UM005A-EN-P - March 2007
84 Device Drivers
The following flow chart illustrates the preferred method for driver
initialization.
Init
Initialize global data
with default info.
Is the
PCI Bus
Enumerator data
available in the
registry?
No No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Is there
registry data
somewhere
else?
Set IRQ and SYSINTR
to invalid defaults
Get PCI Bus Enumerator
registry data
Get registry data from
another location
Use DDK Hal calls to get the IRQ
from the PCI device directly.
Is the
IRQ
valid?
Is the
SYSINTR
valid?
Query the Hal for a SYSINTR
associated with the IRQ.
Is the
ISR Chain Handler
Required?
Load the chain handler
Initialize IRQ and additional
driver resources.
Return
Comentarios a estos manuales