2 * hal.dll implementation
4 * Copyright (C) 2007 Chris Wulff
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
26 #define NONAMELESSUNION
27 #define NONAMELESSSTRUCT
30 #define WIN32_NO_STATUS
34 #include "ddk/ntddk.h"
35 #include "wine/debug.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
40 #define DEFINE_FASTCALL1_ENTRYPOINT( name ) \
41 __ASM_GLOBAL_FUNC( name, \
45 "jmp " __ASM_NAME("__regs_") #name )
46 #define DEFINE_FASTCALL2_ENTRYPOINT( name ) \
47 __ASM_GLOBAL_FUNC( name, \
52 "jmp " __ASM_NAME("__regs_") #name )
56 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
57 DEFINE_FASTCALL1_ENTRYPOINT( ExAcquireFastMutex )
58 VOID WINAPI __regs_ExAcquireFastMutex(PFAST_MUTEX FastMutex)
60 VOID WINAPI ExAcquireFastMutex(PFAST_MUTEX FastMutex)
63 FIXME("%p: stub\n", FastMutex);
66 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
67 DEFINE_FASTCALL1_ENTRYPOINT( ExReleaseFastMutex )
68 VOID WINAPI __regs_ExReleaseFastMutex(PFAST_MUTEX FastMutex)
70 VOID WINAPI ExReleaseFastMutex(PFAST_MUTEX FastMutex)
73 FIXME("%p: stub\n", FastMutex);
76 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
77 DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock )
78 KIRQL WINAPI __regs_KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
80 KIRQL WINAPI KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
83 FIXME( "(%p) stub!\n", SpinLock );
89 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
90 DEFINE_FASTCALL1_ENTRYPOINT( KfLowerIrql )
91 VOID WINAPI __regs_KfLowerIrql(KIRQL NewIrql)
93 VOID WINAPI KfLowerIrql(KIRQL NewIrql)
96 FIXME( "(%u) stub!\n", NewIrql );
100 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
101 DEFINE_FASTCALL1_ENTRYPOINT( KfRaiseIrql )
102 KIRQL WINAPI __regs_KfRaiseIrql(KIRQL NewIrql)
104 KIRQL WINAPI KfRaiseIrql(KIRQL NewIrql)
107 FIXME( "(%u) stub!\n", NewIrql );
113 #ifdef DEFINE_FASTCALL2_ENTRYPOINT
114 DEFINE_FASTCALL2_ENTRYPOINT( KfReleaseSpinLock )
115 VOID WINAPI __regs_KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
117 VOID WINAPI KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
120 FIXME( "(%p %u) stub!\n", SpinLock, NewIrql );
123 ULONG WINAPI HalGetBusData(BUS_DATA_TYPE BusDataType, ULONG BusNumber, ULONG SlotNumber, PVOID Buffer, ULONG Length)
125 FIXME("(%u %u %u %p %u) stub!\n", BusDataType, BusNumber, SlotNumber, Buffer, Length);
126 /* Claim that there is no such bus */