ReactOS  0.4.13-dev-656-g74bcf30
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
#define TRUE
Definition: types.h:120
DRIVER_NOTIFICATION_CALLBACK_ROUTINE PciVerifierProfileChangeCallback
Definition: pcivrify.c:77
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
smooth NULL
Definition: ftsmooth.c:416
static PDRIVER_OBJECT DriverObject
Definition: template.c:42
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSTATUS NTAPI IoRegisterPlugPlayNotification(IN IO_NOTIFICATION_EVENT_CATEGORY EventCategory, IN ULONG EventCategoryFlags, IN PVOID EventCategoryData OPTIONAL, IN PDRIVER_OBJECT DriverObject, IN PDRIVER_NOTIFICATION_CALLBACK_ROUTINE CallbackRoutine, IN PVOID Context, OUT PVOID *NotificationEntry)
Definition: pnpnotify.c:250
Status
Definition: gdiplustypes.h:24

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:1203
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
return STATUS_SUCCESS
Definition: btrfs.c:2777

◆ 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:413
PCI_VERIFIER_DATA PciVerifierFailureTable[PCI_VERIFIER_CODES]
Definition: pcivrify.c:21
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
#define PCI_VERIFIER_CODES
Definition: pci.h:80

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().