Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenadapter.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Kernel 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: ntoskrnl/io/adapter.c 00005 * PURPOSE: I/O Wrappers for HAL Adapter APIs 00006 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) 00007 * Filip Navara (navaraf@reactos.org) 00008 */ 00009 00010 /* INCLUDES *****************************************************************/ 00011 00012 #include <ntoskrnl.h> 00013 #define NDEBUG 00014 #include <debug.h> 00015 00016 /* DATA **********************************************************************/ 00017 00018 POBJECT_TYPE IoAdapterObjectType; 00019 POBJECT_TYPE IoDeviceHandlerObjectType; 00020 ULONG IoDeviceHandlerObjectSize; 00021 00022 /* FUNCTIONS *****************************************************************/ 00023 00024 #undef IoAllocateAdapterChannel 00025 /* 00026 * @implemented 00027 */ 00028 NTSTATUS 00029 NTAPI 00030 IoAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, 00031 IN PDEVICE_OBJECT DeviceObject, 00032 IN ULONG NumberOfMapRegisters, 00033 IN PDRIVER_CONTROL ExecutionRoutine, 00034 IN PVOID Context) 00035 { 00036 PWAIT_CONTEXT_BLOCK Wcb = &DeviceObject->Queue.Wcb; 00037 00038 /* Initialize the WCB */ 00039 Wcb->DeviceObject = DeviceObject; 00040 Wcb->DeviceContext = Context; 00041 Wcb->CurrentIrp = DeviceObject->CurrentIrp; 00042 00043 /* Call HAL */ 00044 return HalAllocateAdapterChannel(AdapterObject, 00045 Wcb, 00046 NumberOfMapRegisters, 00047 ExecutionRoutine); 00048 } 00049 00050 /* EOF */ Generated on Fri May 25 2012 04:19:10 for ReactOS by
1.7.6.1
|