ReactOS  0.4.15-dev-2700-g4b4ffa9
pcivrify.c File Reference
#include <pci.h>
#include <debug.h>
Include dependency graph for pcivrify.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

PPCI_VERIFIER_DATA NTAPI PciVerifierRetrieveFailureData (IN ULONG FailureCode)
 
NTSTATUS NTAPI PciVerifierProfileChangeCallback (IN PVOID NotificationStructure, IN PVOID Context)
 
VOID NTAPI PciVerifierInit (IN PDRIVER_OBJECT DriverObject)
 

Variables

BOOLEAN PciVerifierRegistered
 
PVOID PciVerifierNotificationHandle
 
PCI_VERIFIER_DATA PciVerifierFailureTable [PCI_VERIFIER_CODES]
 
DRIVER_NOTIFICATION_CALLBACK_ROUTINE PciVerifierProfileChangeCallback
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file pcivrify.c.

Function Documentation

◆ PciVerifierInit()

VOID NTAPI PciVerifierInit ( IN PDRIVER_OBJECT  DriverObject)

Definition at line 94 of file pcivrify.c.

95 {
97 
98  /* Check if the kernel driver verifier is enabled */
100  {
101  /* Register a notification for changes, to keep track of the PCI tree */
103  0,
104  NULL,
105  DriverObject,
107  NULL,
110  }
111 }
BOOLEAN PciVerifierRegistered
Definition: pcivrify.c:18
DRIVER_NOTIFICATION_CALLBACK_ROUTINE PciVerifierProfileChangeCallback
Definition: pcivrify.c:77
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
BOOLEAN NTAPI VfIsVerificationEnabled(IN VF_OBJECT_TYPE VfObjectType, IN PVOID Object OPTIONAL)
Definition: driver.c:22
PVOID PciVerifierNotificationHandle
Definition: pcivrify.c:19
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define NULL
Definition: types.h:112
NTSTATUS NTAPI IoRegisterPlugPlayNotification(_In_ IO_NOTIFICATION_EVENT_CATEGORY EventCategory, _In_ ULONG EventCategoryFlags, _In_opt_ PVOID EventCategoryData, _In_ PDRIVER_OBJECT DriverObject, _In_ PDRIVER_NOTIFICATION_CALLBACK_ROUTINE CallbackRoutine, _Inout_opt_ PVOID Context, _Out_ PVOID *NotificationEntry)
Definition: pnpnotify.c:345

Referenced by DriverEntry().

◆ PciVerifierProfileChangeCallback()

NTSTATUS NTAPI PciVerifierProfileChangeCallback ( IN PVOID  NotificationStructure,
IN PVOID  Context 
)

Definition at line 81 of file pcivrify.c.

83 {
86 
87  /* This function is not yet implemented */
89  return STATUS_SUCCESS;
90 }
_In_ PVOID NotificationStructure
Definition: iofuncs.h:1206
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
#define STATUS_SUCCESS
Definition: shellext.h:65

◆ PciVerifierRetrieveFailureData()

PPCI_VERIFIER_DATA NTAPI PciVerifierRetrieveFailureData ( IN ULONG  FailureCode)

Definition at line 60 of file pcivrify.c.

61 {
62  PPCI_VERIFIER_DATA VerifierData;
63 
64  /* Scan the verifier failure table for this code */
65  VerifierData = PciVerifierFailureTable;
66  while (VerifierData->FailureCode != FailureCode)
67  {
68  /* Keep searching */
69  ++VerifierData;
71  }
72 
73  /* Return the entry for this code */
74  return VerifierData;
75 }
ULONG FailureCode
Definition: pci.h:415
PCI_VERIFIER_DATA PciVerifierFailureTable[PCI_VERIFIER_CODES]
Definition: pcivrify.c:21
#define ASSERT(a)
Definition: mode.c:44
#define PCI_VERIFIER_CODES
Definition: pci.h:82

Referenced by PciStallForPowerChange().

Variable Documentation

◆ PciVerifierFailureTable

PCI_VERIFIER_DATA PciVerifierFailureTable[PCI_VERIFIER_CODES]

Definition at line 21 of file pcivrify.c.

Referenced by PciVerifierRetrieveFailureData().

◆ PciVerifierNotificationHandle

PVOID PciVerifierNotificationHandle

Definition at line 19 of file pcivrify.c.

Referenced by PciVerifierInit().

◆ PciVerifierProfileChangeCallback

DRIVER_NOTIFICATION_CALLBACK_ROUTINE PciVerifierProfileChangeCallback

Definition at line 77 of file pcivrify.c.

Referenced by PciVerifierInit().

◆ PciVerifierRegistered

BOOLEAN PciVerifierRegistered

Definition at line 18 of file pcivrify.c.

Referenced by PciVerifierInit().