ReactOS  0.4.13-dev-257-gfabbd7c
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 */
40  Wcb->DeviceContext = Context;
41  Wcb->CurrentIrp = DeviceObject->CurrentIrp;
42 
43  /* Call HAL */
44  return HalAllocateAdapterChannel(AdapterObject,
45  Wcb,
48 }
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
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: fatprocs.h:1560
_In_ PDEVICE_OBJECT _In_ ULONG _In_ PDRIVER_CONTROL ExecutionRoutine
Definition: iofuncs.h:1393
struct tagContext Context
Definition: acpixf.h:1012

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