#include "private.hpp"
#include <debug.h>
Go to the source code of this file.
|
| NTSTATUS NTAPI | PcGetDeviceProperty (IN PVOID DeviceObject, IN DEVICE_REGISTRY_PROPERTY DeviceProperty, IN ULONG BufferLength, OUT PVOID PropertyBuffer, OUT PULONG ResultLength) |
| |
| ULONGLONG NTAPI | PcGetTimeInterval (IN ULONGLONG Since) |
| |
| VOID NTAPI | PcIoTimerRoutine (IN PDEVICE_OBJECT DeviceObject, IN PVOID Context) |
| |
| NTSTATUS NTAPI | PcRegisterIoTimeout (IN PDEVICE_OBJECT pDeviceObject, IN PIO_TIMER_ROUTINE pTimerRoutine, IN PVOID pContext) |
| |
| NTSTATUS NTAPI | PcUnregisterIoTimeout (IN PDEVICE_OBJECT pDeviceObject, IN PIO_TIMER_ROUTINE pTimerRoutine, IN PVOID pContext) |
| |
| NTSTATUS NTAPI | PcCompletePendingPropertyRequest (IN PPCPROPERTY_REQUEST PropertyRequest, IN NTSTATUS NtStatus) |
| |
| NTSTATUS NTAPI | PcDmaMasterDescription (IN PRESOURCELIST ResourceList OPTIONAL, IN BOOLEAN ScatterGather, IN BOOLEAN Dma32BitAddresses, IN BOOLEAN IgnoreCount, IN BOOLEAN Dma64BitAddresses, IN DMA_WIDTH DmaWidth, IN DMA_SPEED DmaSpeed, IN ULONG MaximumLength, IN ULONG DmaPort, OUT PDEVICE_DESCRIPTION DeviceDescription) |
| |
| NTSTATUS NTAPI | PcDmaSlaveDescription (IN PRESOURCELIST ResourceList OPTIONAL, IN ULONG DmaIndex, IN BOOLEAN DemandMode, IN BOOLEAN AutoInitialize, IN DMA_SPEED DmaSpeed, IN ULONG MaximumLength, IN ULONG DmaPort, OUT PDEVICE_DESCRIPTION DeviceDescription) |
| |
◆ NDEBUG
◆ PcCompletePendingPropertyRequest()
Definition at line 181 of file api.cpp.
184{
185
187
188 if (!PropertyRequest || !PropertyRequest->Irp || NtStatus ==
STATUS_PENDING)
190
191
192 PropertyRequest->Irp->IoStatus.Status = NtStatus;
193
194
196
197
199
200
202}
VOID FreeItem(IN PVOID Item)
#define IoCompleteRequest
#define PC_ASSERT_IRQL(x)
#define STATUS_INVALID_PARAMETER
#define IO_SOUND_INCREMENT
◆ PcDmaMasterDescription()
Definition at line 206 of file api.cpp.
217{
218
220
231
233}
_In_ BOOLEAN Dma64BitAddresses
#define RtlZeroMemory(Destination, Length)
_In_ WDFDMATRANSACTION _In_ size_t MaximumLength
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING DeviceDescription
#define DEVICE_DESCRIPTION_VERSION1
_In_ struct _IRP _In_ struct _SCATTER_GATHER_LIST * ScatterGather
◆ PcDmaSlaveDescription()
◆ PcGetDeviceProperty()
Definition at line 16 of file api.cpp.
22{
24
26
28
30}
NTSTATUS NTAPI IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject, IN DEVICE_REGISTRY_PROPERTY DeviceProperty, IN ULONG BufferLength, OUT PVOID PropertyBuffer, OUT PULONG ResultLength)
#define PC_ASSERT_IRQL_EQUAL(x)
struct PCLASS_DEVICE_EXTENSION * PPCLASS_DEVICE_EXTENSION
PDEVICE_OBJECT PhysicalDeviceObject
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
◆ PcGetTimeInterval()
◆ PcIoTimerRoutine()
Definition at line 46 of file api.cpp.
49{
54
56 return;
57
59
61
63 while(ListEntry != &DeviceExtension->
TimerList)
64 {
66
68 ListEntry = ListEntry->
Flink;
69 }
70
72}
#define KeReleaseSpinLock(sl, irql)
#define KeAcquireSpinLock(sl, irql)
struct TIMER_CONTEXT * PTIMER_CONTEXT
PIO_TIMER_ROUTINE pTimerRoutine
struct _LIST_ENTRY * Flink
#define CONTAINING_RECORD(address, type, field)
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Referenced by PcAddAdapterDevice().
◆ PcRegisterIoTimeout()
Definition at line 76 of file api.cpp.
80{
87
89
92
94
97 {
98 DPRINT(
"Failed to allocate memory\n");
100 }
101
103
106 while(ListEntry != &DeviceExtension->
TimerList)
107 {
109
111 {
115 break;
116 }
117 ListEntry = ListEntry->
Flink;
118 }
119
120 if (!bFound)
121 {
125 }
126
128
130}
#define InsertTailList(ListHead, Entry)
PVOID AllocateItem(IN POOL_TYPE PoolType, IN SIZE_T NumberOfBytes)
_In_ PNDIS_STRING _In_ PNDIS_STRING _Out_ PDEVICE_OBJECT * pDeviceObject
#define STATUS_UNSUCCESSFUL
#define STATUS_INSUFFICIENT_RESOURCES
_In_ PLARGE_INTEGER _In_opt_ PTIMER_APC_ROUTINE _In_opt_ PVOID TimerContext
◆ PcUnregisterIoTimeout()
Definition at line 134 of file api.cpp.
138{
144
146
149
151
153
156
157 while(ListEntry != &DeviceExtension->
TimerList)
158 {
160
162 {
166 break;
167 }
168 ListEntry = ListEntry->
Flink;
169 }
170
172
173 if (bFound)
175 else
177}
#define RemoveEntryList(Entry)