mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
c2d0d784c7
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup - In the future, DO NOT under any circumstances branch another branch. This leads to merge problems! svn path=/branches/usb-bringup-trunk/; revision=55018
50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
/*
|
|
* PROJECT: ReactOS Kernel
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: ntoskrnl/io/adapter.c
|
|
* PURPOSE: I/O Wrappers for HAL Adapter APIs
|
|
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
|
|
* Filip Navara (navaraf@reactos.org)
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include <ntoskrnl.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* DATA **********************************************************************/
|
|
|
|
POBJECT_TYPE IoAdapterObjectType;
|
|
POBJECT_TYPE IoDeviceHandlerObjectType;
|
|
ULONG IoDeviceHandlerObjectSize;
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
#undef IoAllocateAdapterChannel
|
|
/*
|
|
* @implemented
|
|
*/
|
|
NTSTATUS
|
|
NTAPI
|
|
IoAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject,
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
IN ULONG NumberOfMapRegisters,
|
|
IN PDRIVER_CONTROL ExecutionRoutine,
|
|
IN PVOID Context)
|
|
{
|
|
PWAIT_CONTEXT_BLOCK Wcb = &DeviceObject->Queue.Wcb;
|
|
|
|
/* Initialize the WCB */
|
|
Wcb->DeviceObject = DeviceObject;
|
|
Wcb->DeviceContext = Context;
|
|
Wcb->CurrentIrp = DeviceObject->CurrentIrp;
|
|
|
|
/* Call HAL */
|
|
return HalAllocateAdapterChannel(AdapterObject,
|
|
Wcb,
|
|
NumberOfMapRegisters,
|
|
ExecutionRoutine);
|
|
}
|
|
|
|
/* EOF */
|