push 3600ceb9798742c4473b49518e0ae238427fc4b7
[wine/hacks.git] / dlls / hal / hal.c
blob6390edf42b61a3577e80b6ab8945621f5e4bcd8c
1 /*
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
21 #include "config.h"
22 #include "wine/port.h"
24 #include <stdarg.h>
26 #define NONAMELESSUNION
27 #define NONAMELESSSTRUCT
29 #include "ntstatus.h"
30 #define WIN32_NO_STATUS
31 #include "windef.h"
32 #include "winternl.h"
33 #include "excpt.h"
34 #include "ddk/ntddk.h"
35 #include "wine/debug.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
39 #ifdef __i386__
40 #define DEFINE_FASTCALL1_ENTRYPOINT( name ) \
41 __ASM_GLOBAL_FUNC( name, \
42 "popl %eax\n\t" \
43 "pushl %ecx\n\t" \
44 "pushl %eax\n\t" \
45 "jmp " __ASM_NAME("__regs_") #name )
46 #define DEFINE_FASTCALL2_ENTRYPOINT( name ) \
47 __ASM_GLOBAL_FUNC( name, \
48 "popl %eax\n\t" \
49 "pushl %edx\n\t" \
50 "pushl %ecx\n\t" \
51 "pushl %eax\n\t" \
52 "jmp " __ASM_NAME("__regs_") #name )
53 #endif
56 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
57 DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock )
58 KIRQL WINAPI __regs_KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
59 #else
60 KIRQL WINAPI KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
61 #endif
63 FIXME( "(%p) stub!\n", SpinLock );
65 return 0;
69 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
70 DEFINE_FASTCALL1_ENTRYPOINT( KfLowerIrql )
71 VOID WINAPI __regs_KfLowerIrql(KIRQL NewIrql)
72 #else
73 VOID WINAPI KfLowerIrql(KIRQL NewIrql)
74 #endif
76 FIXME( "(%u) stub!\n", NewIrql );
80 #ifdef DEFINE_FASTCALL1_ENTRYPOINT
81 DEFINE_FASTCALL1_ENTRYPOINT( KfRaiseIrql )
82 KIRQL WINAPI __regs_KfRaiseIrql(KIRQL NewIrql)
83 #else
84 KIRQL WINAPI KfRaiseIrql(KIRQL NewIrql)
85 #endif
87 FIXME( "(%u) stub!\n", NewIrql );
89 return 0;
93 #ifdef DEFINE_FASTCALL2_ENTRYPOINT
94 DEFINE_FASTCALL2_ENTRYPOINT( KfReleaseSpinLock )
95 VOID WINAPI __regs_KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
96 #else
97 VOID WINAPI KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
98 #endif
100 FIXME( "(%p %u) stub!\n", SpinLock, NewIrql );
103 ULONG WINAPI HalGetBusData(BUS_DATA_TYPE BusDataType, ULONG BusNumber, ULONG SlotNumber, PVOID Buffer, ULONG Length)
105 FIXME("(%u %u %u %p %u) stub!\n", BusDataType, BusNumber, SlotNumber, Buffer, Length);
106 /* Claim that there is no such bus */
107 return 0;