From 138b30dd409e64c50d6355d1bb343be87b2f339c Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 30 Dec 2000 01:41:52 +0000 Subject: [PATCH] Added HalAllocateAdapterChannel() svn path=/trunk/; revision=1488 --- reactos/include/ddk/halddk.h | 6 +++--- reactos/ntoskrnl/hal/x86/adapter.c | 12 +++++++++++- reactos/ntoskrnl/hal/x86/dma.c | 6 +++--- reactos/ntoskrnl/ntoskrnl.def | 4 ++-- reactos/ntoskrnl/ntoskrnl.edf | 4 ++-- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/reactos/include/ddk/halddk.h b/reactos/include/ddk/halddk.h index 9c4dc56eebb..57afabe6167 100644 --- a/reactos/include/ddk/halddk.h +++ b/reactos/include/ddk/halddk.h @@ -1,4 +1,4 @@ -/* $Id: halddk.h,v 1.6 2000/10/22 16:34:38 ekohl Exp $ +/* $Id: halddk.h,v 1.7 2000/12/30 01:41:04 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -305,8 +305,8 @@ STDCALL HalAllocateAdapterChannel ( IN PADAPTER_OBJECT AdapterObject, ULONG Unknown2, - ULONG Unknown3, - ULONG Unknown4 + IN ULONG NumberOfMapRegisters, + IN PDRIVER_CONTROL ExecutionRoutine ); PVOID diff --git a/reactos/ntoskrnl/hal/x86/adapter.c b/reactos/ntoskrnl/hal/x86/adapter.c index 2f3fb0b2278..5472b76d16e 100644 --- a/reactos/ntoskrnl/hal/x86/adapter.c +++ b/reactos/ntoskrnl/hal/x86/adapter.c @@ -1,4 +1,4 @@ -/* $Id: adapter.c,v 1.2 2000/07/19 14:18:18 dwelch Exp $ +/* $Id: adapter.c,v 1.3 2000/12/30 01:41:29 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -19,6 +19,16 @@ /* NOTE: IoAllocateAdapterChannel in NTOSKRNL.EXE */ +NTSTATUS STDCALL +HalAllocateAdapterChannel(PADAPTER_OBJECT AdapterObject, + ULONG Unknown2, + ULONG NumberOfMapRegisters, + PDRIVER_CONTROL ExecutionRoutine) +{ + UNIMPLEMENTED; +} + + BOOLEAN STDCALL IoFlushAdapterBuffers (PADAPTER_OBJECT AdapterObject, PMDL Mdl, diff --git a/reactos/ntoskrnl/hal/x86/dma.c b/reactos/ntoskrnl/hal/x86/dma.c index f03702e4ae7..50e0d83e440 100644 --- a/reactos/ntoskrnl/hal/x86/dma.c +++ b/reactos/ntoskrnl/hal/x86/dma.c @@ -1,4 +1,4 @@ -/* $Id: dma.c,v 1.8 2000/07/19 14:18:18 dwelch Exp $ +/* $Id: dma.c,v 1.9 2000/12/30 01:41:29 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -52,14 +52,14 @@ HalFlushCommonBuffer (ULONG Unknown1, return TRUE; } -VOID STDCALL +VOID STDCALL HalFreeCommonBuffer (PADAPTER_OBJECT AdapterObject, ULONG Length, PHYSICAL_ADDRESS LogicalAddress, PVOID VirtualAddress, BOOLEAN CacheEnabled) { - UNIMPLEMENTED; + MmFreeContiguousMemory(VirtualAddress); } PADAPTER_OBJECT STDCALL diff --git a/reactos/ntoskrnl/ntoskrnl.def b/reactos/ntoskrnl/ntoskrnl.def index bcbb2cfdbfc..2581e97a360 100644 --- a/reactos/ntoskrnl/ntoskrnl.def +++ b/reactos/ntoskrnl/ntoskrnl.def @@ -1,4 +1,4 @@ -; $Id: ntoskrnl.def,v 1.90 2000/12/26 05:32:43 dwelch Exp $ +; $Id: ntoskrnl.def,v 1.91 2000/12/30 01:41:52 ekohl Exp $ ; ; reactos/ntoskrnl/ntoskrnl.def ; @@ -1013,7 +1013,7 @@ ExTryToAcquireFastMutex@4 HalAcquireDisplayOwnership@4 HalAdjustResourceList@4 HalAllProcessorsStarted@0 -;HalAllocateAdapterChannel@16 +HalAllocateAdapterChannel@16 HalAllocateCommonBuffer@16 ;HalAllocateCrashDumpRegisters@8 HalAssignSlotResources@32 diff --git a/reactos/ntoskrnl/ntoskrnl.edf b/reactos/ntoskrnl/ntoskrnl.edf index 545def4d6e1..009fe4d7234 100644 --- a/reactos/ntoskrnl/ntoskrnl.edf +++ b/reactos/ntoskrnl/ntoskrnl.edf @@ -1,4 +1,4 @@ -; $Id: ntoskrnl.edf,v 1.77 2000/12/26 05:32:43 dwelch Exp $ +; $Id: ntoskrnl.edf,v 1.78 2000/12/30 01:41:52 ekohl Exp $ ; ; reactos/ntoskrnl/ntoskrnl.def ; @@ -1011,7 +1011,7 @@ ExTryToAcquireFastMutex=ExTryToAcquireFastMutex@4 HalAcquireDisplayOwnership=HalAcquireDisplayOwnership@4 HalAdjustResourceList=HalAdjustResourceList@4 HalAllProcessorsStarted=HalAllProcessorsStarted@0 -;HalAllocateAdapterChannel=HalAllocateAdapterChannel@16 +HalAllocateAdapterChannel=HalAllocateAdapterChannel@16 HalAllocateCommonBuffer=HalAllocateCommonBuffer@16 ;HalAllocateCrashDumpRegisters=HalAllocateCrashDumpRegisters@8 HalAssignSlotResource=HalAssignSlotResources@32