71{
77
78
81
83
84
93
100
102
103 DPRINT(
"Calling HalGetAdapter(), asking for %d mapped regs\n", MappedRegs);
104
106
108
110 {
111 DPRINT(
"HalGetAdapter() FAILED\n");
113 }
114
116
118 {
119 DPRINT(
"Could only allocate %u mapping registers\n", MappedRegs);
120
121 if (MappedRegs == 0)
123
126 }
127
128 DPRINT(
"Allocated %u mapping registers\n", MappedRegs);
129
130
131
132
133
134 DPRINT(
"Allocating buffer\n");
135
137
140
141
142
145
146 if (!
Device->VirtualBuffer)
147 {
148 DPRINT(
"Could not allocate buffer :(\n");
149
151 }
152
153
156
157 DPRINT(
"Calling IoAllocateMdl()\n");
160
161
163 {
164 DPRINT(
"IoAllocateMdl() FAILED\n");
165
167 }
168
170
171 DPRINT(
"Calling MmBuildMdlForNonPagedPool\n");
173
175
176
178
183
187
188
189
190
191
192
193
194
195
196
197
198
199
200
202}
#define KeRaiseIrql(irql, oldIrql)
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
#define KeInitializeEvent(pEvt, foo, foo2)
#define KeLowerIrql(oldIrql)
PVOID NTAPI HalAllocateCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PPHYSICAL_ADDRESS LogicalAddress, IN BOOLEAN CacheEnabled)
PADAPTER_OBJECT NTAPI HalGetAdapter(IN PDEVICE_DESCRIPTION DeviceDescription, OUT PULONG NumberOfMapRegisters)
VOID NTAPI MmBuildMdlForNonPagedPool(IN PMDL Mdl)
NTSTATUS NTAPI IoAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, IN PDEVICE_OBJECT DeviceObject, IN ULONG NumberOfMapRegisters, IN PDRIVER_CONTROL ExecutionRoutine, IN PVOID Context)
INTERFACE_TYPE InterfaceType
BOOLEAN Dma32BitAddresses
#define RtlZeroMemory(Destination, Length)
_Must_inspect_result_ _In_ WDFDEVICE Device
_In_ PDEVICE_OBJECT DeviceObject
#define DEVICE_DESCRIPTION_VERSION
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
#define BYTES_TO_PAGES(Size)