// wdm.h
FPGA_CONTROL_ERROR_REPORTING FpgaControlErrorReporting;
NTSTATUS FpgaControlErrorReporting(
[_In_reads_opt_(_Inexpressible_("varies"))] PVOID Context,
[_In_] ULONG UncorrectableMask,
[_In_] ULONG CorrectableMask,
[_In_] BOOLEAN DisableErrorReporting
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Reserved for future use.
Toggles the error reporting for the FPGA device and its parent bridge.
Context [_In_reads_opt_(_Inexpressible_("varies"))]The handle to the bus extension.
UncorrectableMask [_In_]A bitwise mask of flags defined in PCI_EXPRESS_UNCORRECTABLE_ERROR_MASK that indicates the uncorrectable masks to be toggled.
CorrectableMask [_In_]A bitwise mask of flags defined in PCI_EXPRESS_CORRECTABLE_ERROR_MASK that indicates the correctable masks to be toggled.
DisableErrorReporting [_In_]A flag indicates whether the error reporting is being disabled or enabled.
Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS Values error code. For more information, see NTSTATUS Values.
A device driver that successfully queries for the GUID_PCI_FPGA_CONTROL_INTERFACE interface receives a pointer to a FPGA_CONTROL_INTERFACE structure in which the driver sets the ControlErrorReporting member to a pointer to its implementation of the _FPGA_CONTROL_CONFIG_SPACE_ callback function.
This callback function expects that the FPGA device is in D0 state and its configuration space has not been locked.
When _DisableErrorReporting_ is set to TRUE, each set bit in the given masks is set in the AER capability of the FPGA device. When _DisableErrorReporting_ is set to FALSE, the original AER masks will be restored.