ReactOS  0.4.14-dev-845-g8381e29
adapter.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Kernel
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: ntoskrnl/io/iomgr/adapter.c
5  * PURPOSE: I/O Wrappers for HAL Adapter APIs
6  * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7  * Filip Navara (navaraf@reactos.org)
8  */
9 
10 /* INCLUDES *****************************************************************/
11 
12 #include <ntoskrnl.h>
13 #define NDEBUG
14 #include <debug.h>
15 
16 /* DATA **********************************************************************/
17 
21 
22 /* FUNCTIONS *****************************************************************/
23 
24 #undef IoAllocateAdapterChannel
25 /*
26  * @implemented
27  */
29 NTAPI
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 }
49 
50 /* EOF */
#define IN
Definition: typedefs.h:38
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTSTATUS NTAPI HalAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, IN PWAIT_CONTEXT_BLOCK WaitContextBlock, IN ULONG NumberOfMapRegisters, IN PDRIVER_CONTROL ExecutionRoutine)
Definition: dma.c:88
ULONG IoDeviceHandlerObjectSize
Definition: adapter.c:20
NTSTATUS NTAPI IoAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, IN PDEVICE_OBJECT DeviceObject, IN ULONG NumberOfMapRegisters, IN PDRIVER_CONTROL ExecutionRoutine, IN PVOID Context)
Definition: adapter.c:30
POBJECT_TYPE IoDeviceHandlerObjectType
Definition: adapter.c:19
POBJECT_TYPE IoAdapterObjectType
Definition: adapter.c:18
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:1030
unsigned int ULONG
Definition: retypes.h:1
DRIVER_CONTROL * PDRIVER_CONTROL
Definition: iotypes.h:192