- INITIAL_STALL_COUNT makes more sense in decimal (100) than hex (0x64) so define...
[reactos.git] / reactos / ntoskrnl / fstub / halstub.c
1 /*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/fstub/halstub.c
5 * PURPOSE: I/O Stub HAL Routines
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include <ntoskrnl.h>
12 #define NDEBUG
13 #include <debug.h>
14
15 /* GLOBALS *******************************************************************/
16
17 HAL_DISPATCH HalDispatchTable =
18 {
19 HAL_DISPATCH_VERSION,
20 (pHalQuerySystemInformation)NULL,
21 (pHalSetSystemInformation)NULL,
22 (pHalQueryBusSlots)NULL,
23 0,
24 xHalExamineMBR,
25 xHalIoAssignDriveLetters,
26 xHalIoReadPartitionTable,
27 xHalIoSetPartitionInformation,
28 xHalIoWritePartitionTable,
29 (pHalHandlerForBus)NULL,
30 (pHalReferenceBusHandler)NULL,
31 (pHalReferenceBusHandler)NULL,
32 (pHalInitPnpDriver)NULL,
33 (pHalInitPowerManagement)NULL,
34 (pHalGetDmaAdapter) NULL,
35 (pHalGetInterruptTranslator)NULL,
36 (pHalStartMirroring)NULL,
37 (pHalEndMirroring)NULL,
38 (pHalMirrorPhysicalMemory)NULL,
39 (pHalEndOfBoot)NULL,
40 (pHalMirrorVerify)NULL
41 };
42
43 HAL_PRIVATE_DISPATCH HalPrivateDispatchTable =
44 {
45 HAL_PRIVATE_DISPATCH_VERSION,
46 (pHalHandlerForBus)NULL,
47 (pHalHandlerForConfigSpace)NULL,
48 (pHalLocateHiberRanges)NULL,
49 (pHalRegisterBusHandler)NULL,
50 (pHalSetWakeEnable)NULL,
51 (pHalSetWakeAlarm)NULL,
52 (pHalTranslateBusAddress)NULL,
53 (pHalAssignSlotResources)NULL,
54 xHalHaltSystem,
55 (pHalFindBusAddressTranslation)NULL,
56 (pHalResetDisplay)NULL,
57 (pHalAllocateMapRegisters)NULL,
58 (pKdSetupPciDeviceForDebugging)NULL,
59 (pKdReleasePciDeviceForDebugging)NULL,
60 (pKdGetAcpiTablePhase0)NULL,
61 (pKdCheckPowerButton)NULL,
62 (pHalVectorToIDTEntry)xHalVectorToIDTEntry,
63 (pKdMapPhysicalMemory64)NULL,
64 (pKdUnmapVirtualAddress)NULL
65 };
66
67 /* FUNCTIONS *****************************************************************/
68
69 UCHAR
70 NTAPI
71 xHalVectorToIDTEntry(IN ULONG Vector)
72 {
73 /* Return the vector */
74 return Vector;
75 }
76
77 VOID
78 NTAPI
79 xHalHaltSystem(VOID)
80 {
81 /* Halt execution */
82 while (TRUE);
83 }