// wdm.h
IOMMU_SET_DEVICE_FAULT_REPORTING IommuSetDeviceFaultReporting;
NTSTATUS IommuSetDeviceFaultReporting(
[In] PDEVICE_OBJECT PhysicalDeviceObject,
[In] ULONG InputMappingIdBase,
[In] BOOLEAN Enable,
[in] PDEVICE_FAULT_CONFIGURATION FaultConfig
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
This routine sets the device fault reporting state to a device already attached to a domain.
It is driver's responsibility to ensure that this function is not called concurrently with any IommuDomainAttachDevice or IommuDomainDetachDevice calls on the same device.
PhysicalDeviceObject [In]A pointer the physical device object (PDO) in the device stack of the device.
InputMappingIdBase [In]The input mapping base for the device's desired stream.
Enable [In]a BOOLEAN value that indicates whether to enable fault reporting for the device.
FaultConfig [in]Optional. A pointer to DEVICE_FAULT_CONFIGURATION. This is only used for enabling fault reporting.
Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS values error code. For more information, see NTSTATUS Values.
Register your implementation of this callback function by setting SetDeviceFaultReporting of _DMA_IOMMU_INTERFACE.