3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/io/adapter.c
6 * PURPOSE: DMA handling
8 * PROGRAMMERS: David Welch (welch@mcmail.com)
11 /* INCLUDES *****************************************************************/
15 #include <internal/debug.h>
17 /* DATA **********************************************************************/
19 POBJECT_TYPE IoAdapterObjectType
= NULL
; /* FIXME */
20 POBJECT_TYPE IoDeviceHandlerObjectType
= NULL
; /* FIXME */
21 ULONG IoDeviceHandlerObjectSize
= 0; /* FIXME */
23 /* FUNCTIONS *****************************************************************/
29 IoAllocateAdapterChannel (PADAPTER_OBJECT AdapterObject
,
30 PDEVICE_OBJECT DeviceObject
,
31 ULONG NumberOfMapRegisters
,
32 PDRIVER_CONTROL ExecutionRoutine
,
35 DeviceObject
->Queue
.Wcb
.DeviceObject
= DeviceObject
;
36 DeviceObject
->Queue
.Wcb
.DeviceContext
= Context
;
37 DeviceObject
->Queue
.Wcb
.CurrentIrp
= DeviceObject
->CurrentIrp
;
39 return HalAllocateAdapterChannel( AdapterObject
,
40 &DeviceObject
->Queue
.Wcb
,
46 /* NOTE: Missing IoXXXAdapter finctions in HAL.DLL */