2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/io/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)
10 /* INCLUDES *****************************************************************/
16 /* DATA **********************************************************************/
18 POBJECT_TYPE IoAdapterObjectType
;
19 POBJECT_TYPE IoDeviceHandlerObjectType
;
20 ULONG IoDeviceHandlerObjectSize
;
22 /* FUNCTIONS *****************************************************************/
24 #undef IoAllocateAdapterChannel
30 IoAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject
,
31 IN PDEVICE_OBJECT DeviceObject
,
32 IN ULONG NumberOfMapRegisters
,
33 IN PDRIVER_CONTROL ExecutionRoutine
,
36 PWAIT_CONTEXT_BLOCK Wcb
= &DeviceObject
->Queue
.Wcb
;
38 /* Initialize the WCB */
39 Wcb
->DeviceObject
= DeviceObject
;
40 Wcb
->DeviceContext
= Context
;
41 Wcb
->CurrentIrp
= DeviceObject
->CurrentIrp
;
44 return HalAllocateAdapterChannel(AdapterObject
,