2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: boot/freeldr/freeldr/arch/i386/halstub.c
5 * PURPOSE: I/O Stub HAL Routines
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
9 /* INCLUDES ******************************************************************/
15 /* FUNCTIONS *****************************************************************/
19 xHalIoReadPartitionTable(
20 IN PDEVICE_OBJECT DeviceObject
,
22 IN BOOLEAN ReturnRecognizedPartitions
,
23 OUT PDRIVE_LAYOUT_INFORMATION
*PartitionBuffer
)
25 return IoReadPartitionTable(DeviceObject
,
27 ReturnRecognizedPartitions
,
33 xHalVectorToIDTEntry(IN ULONG Vector
)
35 /* Return the vector */
47 /* GLOBALS *******************************************************************/
49 HAL_DISPATCH HalDispatchTable
=
52 (pHalQuerySystemInformation
)NULL
,
53 (pHalSetSystemInformation
)NULL
,
54 (pHalQueryBusSlots
)NULL
,
57 (pHalIoAssignDriveLetters
)NULL
,
58 (pHalIoReadPartitionTable
)xHalIoReadPartitionTable
,
59 (pHalIoSetPartitionInformation
)NULL
,
60 (pHalIoWritePartitionTable
)NULL
,
61 (pHalHandlerForBus
)NULL
,
62 (pHalReferenceBusHandler
)NULL
,
63 (pHalReferenceBusHandler
)NULL
,
64 (pHalInitPnpDriver
)NULL
,
65 (pHalInitPowerManagement
)NULL
,
66 (pHalGetDmaAdapter
)NULL
,
67 (pHalGetInterruptTranslator
)NULL
,
68 (pHalStartMirroring
)NULL
,
69 (pHalEndMirroring
)NULL
,
70 (pHalMirrorPhysicalMemory
)NULL
,
72 (pHalMirrorVerify
)NULL
,
73 (pHalGetAcpiTable
)NULL
,
74 (pHalSetPciErrorHandlerCallback
)NULL
77 HAL_PRIVATE_DISPATCH HalPrivateDispatchTable
=
79 HAL_PRIVATE_DISPATCH_VERSION
,
80 (pHalHandlerForBus
)NULL
,
81 (pHalHandlerForConfigSpace
)NULL
,
82 (pHalLocateHiberRanges
)NULL
,
83 (pHalRegisterBusHandler
)NULL
,
84 (pHalSetWakeEnable
)NULL
,
85 (pHalSetWakeAlarm
)NULL
,
86 (pHalTranslateBusAddress
)NULL
,
87 (pHalAssignSlotResources
)NULL
,
88 (pHalHaltSystem
)xHalHaltSystem
,
89 (pHalFindBusAddressTranslation
)NULL
,
90 (pHalResetDisplay
)NULL
,
91 (pHalAllocateMapRegisters
)NULL
,
92 (pKdSetupPciDeviceForDebugging
)NULL
,
93 (pKdReleasePciDeviceForDebugging
)NULL
,
94 (pKdGetAcpiTablePhase0
)NULL
,
95 (pKdCheckPowerButton
)NULL
,
96 (pHalVectorToIDTEntry
)xHalVectorToIDTEntry
,
97 (pKdMapPhysicalMemory64
)NULL
,
98 (pKdUnmapVirtualAddress
)NULL