20 &GUID_PCI_DEVICE_PRESENT_INTERFACE,
39 ASSERTMSG(
"PCI devpresent_Initializer, unexpected call.\n",
FALSE);
137 if (Slot && (
Child->Slot.u.bits.DeviceNumber != Slot->u.bits.DeviceNumber))
226 ((
Flags & Needed) == Needed);
286 HasEx = (
Size >=
sizeof(*PresentInterface));
294 PresentInterface->
Context = DeviceExtension;
296 PresentInterface->
Size = (
USHORT)(HasEx ?
sizeof(*PresentInterface) :
#define InterlockedIncrement
#define InterlockedDecrement
SINGLE_LIST_ENTRY PciFdoExtensionListHead
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
_In_ HANDLE _In_ CONST PDXGKMDT_OPM_GET_INFO_PARAMETERS Parameters
_In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ ULONG _In_ ULONG Flags
#define PCI_INTERFACE_PDO
struct _PCI_FDO_EXTENSION * PPCI_FDO_EXTENSION
@ PciInterface_DevicePresent
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
#define KeSetEvent(pEvt, foo, foo2)
PCI_INTERFACE PciDevicePresentInterface
NTSTATUS NTAPI devpresent_Constructor(IN PVOID DeviceExtension, IN PVOID Instance, IN PVOID InterfaceData, IN USHORT Version, IN USHORT Size, IN PINTERFACE Interface)
static BOOLEAN NTAPI devpresent_IsDevicePresent(_In_ USHORT VendorID, _In_ USHORT DeviceID, _In_ UCHAR RevisionID, _In_ USHORT SubVendorID, _In_ USHORT SubSystemID, _In_ ULONG Flags)
static VOID NTAPI devpresent_Dereference(_In_ PVOID Context)
static BOOLEAN NTAPI devpresent_IsDevicePresentEx(_In_ PVOID Context, _In_ PPCI_DEVICE_PRESENCE_PARAMETERS Parameters)
static BOOLEAN NTAPI devpresent_SearchBus(_In_ PPCI_FDO_EXTENSION FdoExtension, _In_opt_ PPCI_SLOT_NUMBER Slot, _In_ PPCI_DEVICE_PRESENCE_PARAMETERS Parameters)
Searches the children of one bus.
static BOOLEAN NTAPI devpresent_FlagsValid(_In_ ULONG Flags)
Checks that the search flags name the device by IDs, class, or both. Subsystem and revision refine an...
static VOID NTAPI devpresent_Reference(_In_ PVOID Context)
static BOOLEAN NTAPI devpresent_IsMatch(_In_ PPCI_PDO_EXTENSION PdoExtension, _In_ PPCI_DEVICE_PRESENCE_PARAMETERS Parameters)
Compares one child against the fields selected by the search flags.
static BOOLEAN NTAPI devpresent_SearchAllBuses(_In_ PPCI_DEVICE_PRESENCE_PARAMETERS Parameters)
Searches every PCI bus in the machine.
NTSTATUS NTAPI devpresent_Initializer(IN PVOID Instance)
#define KeLeaveCriticalRegion()
#define KeEnterCriticalRegion()
_In_ PIRP _In_ PIO_COMPLETION_ROUTINE _In_ PVOID Context
#define ASSERTMSG(msg, exp)
#define UNREFERENCED_PARAMETER(P)
PINTERFACE_REFERENCE InterfaceReference
PINTERFACE_DEREFERENCE InterfaceDereference
PPCI_IS_DEVICE_PRESENT_EX IsDevicePresentEx
PPCI_IS_DEVICE_PRESENT IsDevicePresent
struct _SINGLE_LIST_ENTRY * Next
#define FIELD_OFFSET(t, f)
#define RtlZeroMemory(Destination, Length)
_In_ UCXUSBDEVICE _In_ ULONG Interface
#define STATUS_UNSUCCESSFUL
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING DeviceID
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_INSTANCE_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_opt_ WDFWMIINSTANCE * Instance
#define PCI_USE_VENDEV_IDS
#define PCI_DEVICE_PRESENT_INTERFACE_VERSION
#define PCI_USE_CLASS_SUBCLASS
struct _PCI_DEVICE_PRESENT_INTERFACE * PPCI_DEVICE_PRESENT_INTERFACE
_In_ USHORT _In_ UCHAR _In_ USHORT _In_ USHORT SubSystemID
#define PCI_USE_LOCAL_DEVICE
_In_ USHORT _In_ UCHAR RevisionID
#define PCI_USE_LOCAL_BUS
#define PCI_USE_SUBSYSTEM_IDS
_In_ USHORT _In_ UCHAR _In_ USHORT SubVendorID