Creating an Interrupt Identifier
Other versions of this page are also available for the following:
8/27/2008
In addition to using the predefined interrupt identifiers, you can define identifiers in your OAL for your custom target devices.
To create an interrupt identifier
Create a file named Oalintr.h
Define your non-kernel interrupt identifiers in Oalintr.h relative to the value SYSINTR_FIRMWARE.
For example, you could define the value of an interrupt identifier as SYSINTR_FIRMWARE+1.
The maximum value of an interrupt identifier should be less than SYSINTR_MAXUMUM or SYSINTR_FIRMWARE+23.
The interrupt identifiers reside in the Oalintr.h file.
For device drivers that need an interrupt identifier, call IOCTL_HAL_REQUEST_SYSINTR or IOCTL_HAL_RELEASE_SYSINTR without using a hard coded or static value so that the device drivers can be more portable.
See Also
Tasks
How to Develop an OEM Adaptation Layer