IOCTL_HAL_REQUEST_SYSINTR (Windows CE 5.0)
This IOCTL requests an IRQ-to-SYSINTR mapping. It should be called by bus drivers that populate the registry with SYSINTRs for the device driver that the bus drivers load.
The OEMIoControl function calls this IOCTL.
[in] Set to IOCTL_HAL_REQUEST_SYSINTR.
[in] IRQ to translate into a SYSINTR.
[in] Size of lpInBuf.
[out] SYSINTR translated from an IRQ.
[out] Size of lpOutBuf.
[in] If not NULL, set to size of DWORD.
[in] Set to NULL.
TRUE indicates success. FALSE indicates failure.
A bus driver reads its SYSINTR value from the registry. It also reads the IRQ value, if necessary. If this is a built-in device, set up the mapping in the OEMInit function and place the SYSINTR in the associated registry entry for the device. Bus drivers, such as the PCI bus driver, use IOCTL_HAL_REQUEST_SYSINTR to allocate SYSINTRs and subsequently populate the registry for the device it is loading a driver for.
There are two ways to map multiple system interrupts to a single shared IRQ:
Use IOCTL_HAL_REQUEST_SYSINTR to pass the OAL your IRQ. The OAL returns a Sysintr value that you can use.
If your driver unloads, use IOCTL_HAL_RELEASE_SYSINTR.
Hard-code the Sysintr values into your OAL.
Multiple Sysintr values can correspond to one IRQ. IRQ values and Sysintr values have a one-to-one relationship, which defines the default Sysintr value for the IRQ. For example, see SETUP_INTERRUPT_MAP and OEMRequestSysIntr.
You can add the hard-coded Sysintr values, beginning at SYSINTR_FIRMWARE + 16, to OEMInit, immediately after the last SETUP_INTERRUPT_MAP. You cannot use SETUP_INTERRUPT_MAP directly because it includes instances of DEBUGCHK that ensure the same IRQ is not mapped twice. Although this method is not as flexible as the one above, after you configure the OAL, you can update the registry to inform the serial drivers which Sysintr to use.
For information about mapping multiple IRQs to a SYSINTR, see OALIoCtlHalRequestSysIntr.
OS Versions: Windows CE .NET 4.0 and later.
Send Feedback on this topic to the authors