ReactOS 0.4.16-dev-340-g0540c21
adapter.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
Include dependency graph for adapter.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI IoAllocateAdapterChannel (IN PADAPTER_OBJECT AdapterObject, IN PDEVICE_OBJECT DeviceObject, IN ULONG NumberOfMapRegisters, IN PDRIVER_CONTROL ExecutionRoutine, IN PVOID Context)
 

Variables

POBJECT_TYPE IoAdapterObjectType
 
POBJECT_TYPE IoDeviceHandlerObjectType
 
ULONG IoDeviceHandlerObjectSize
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file adapter.c.

Function Documentation

◆ IoAllocateAdapterChannel()

NTSTATUS NTAPI IoAllocateAdapterChannel ( IN PADAPTER_OBJECT  AdapterObject,
IN PDEVICE_OBJECT  DeviceObject,
IN ULONG  NumberOfMapRegisters,
IN PDRIVER_CONTROL  ExecutionRoutine,
IN PVOID  Context 
)

Definition at line 30 of file adapter.c.

35{
36 PWAIT_CONTEXT_BLOCK Wcb = &DeviceObject->Queue.Wcb;
37
38 /* Initialize the WCB */
41 Wcb->CurrentIrp = DeviceObject->CurrentIrp;
42
43 /* Call HAL */
44 return HalAllocateAdapterChannel(AdapterObject,
45 Wcb,
48}
NTSTATUS NTAPI HalAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, IN PWAIT_CONTEXT_BLOCK WaitContextBlock, IN ULONG NumberOfMapRegisters, IN PDRIVER_CONTROL ExecutionRoutine)
Definition: dma.c:88
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
_In_ PDEVICE_OBJECT _In_ ULONG _In_ PDRIVER_CONTROL ExecutionRoutine
Definition: iofuncs.h:1399

Referenced by CreateDMA(), HalpInitDma(), IKsDevice_fnArbitrateAdapterChannel(), ReadWritePassive(), and ScsiPortStartIo().

Variable Documentation

◆ IoAdapterObjectType

POBJECT_TYPE IoAdapterObjectType

Definition at line 18 of file adapter.c.

Referenced by HalpDmaAllocateChildAdapter(), IopCreateObjectTypes(), and TestObjectTypes().

◆ IoDeviceHandlerObjectSize

ULONG IoDeviceHandlerObjectSize

Definition at line 20 of file adapter.c.

◆ IoDeviceHandlerObjectType

POBJECT_TYPE IoDeviceHandlerObjectType

Definition at line 19 of file adapter.c.

Referenced by TestObjectTypes().