Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenhalstub.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Kernel 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: boot/freeldr/freeldr/arch/i386/hal/halstub.c 00005 * PURPOSE: I/O Stub HAL Routines 00006 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) 00007 */ 00008 00009 /* INCLUDES ******************************************************************/ 00010 00011 #include <ntoskrnl.h> 00012 #define NDEBUG 00013 #include <debug.h> 00014 00015 /* FUNCTIONS *****************************************************************/ 00016 00017 NTSTATUS 00018 FASTCALL 00019 xHalIoReadPartitionTable( 00020 IN PDEVICE_OBJECT DeviceObject, 00021 IN ULONG SectorSize, 00022 IN BOOLEAN ReturnRecognizedPartitions, 00023 OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer) 00024 { 00025 return IoReadPartitionTable(DeviceObject, 00026 SectorSize, 00027 ReturnRecognizedPartitions, 00028 PartitionBuffer); 00029 } 00030 00031 UCHAR 00032 NTAPI 00033 xHalVectorToIDTEntry(IN ULONG Vector) 00034 { 00035 /* Return the vector */ 00036 return (UCHAR)Vector; 00037 } 00038 00039 VOID 00040 NTAPI 00041 xHalHaltSystem(VOID) 00042 { 00043 /* Halt execution */ 00044 while (TRUE); 00045 } 00046 00047 /* GLOBALS *******************************************************************/ 00048 00049 HAL_DISPATCH HalDispatchTable = 00050 { 00051 HAL_DISPATCH_VERSION, 00052 (pHalQuerySystemInformation)NULL, 00053 (pHalSetSystemInformation)NULL, 00054 (pHalQueryBusSlots)NULL, 00055 0, 00056 (pHalExamineMBR)NULL, 00057 (pHalIoAssignDriveLetters)NULL, 00058 (pHalIoReadPartitionTable)xHalIoReadPartitionTable, 00059 (pHalIoSetPartitionInformation)NULL, 00060 (pHalIoWritePartitionTable)NULL, 00061 (pHalHandlerForBus)NULL, 00062 (pHalReferenceBusHandler)NULL, 00063 (pHalReferenceBusHandler)NULL, 00064 (pHalInitPnpDriver)NULL, 00065 (pHalInitPowerManagement)NULL, 00066 (pHalGetDmaAdapter)NULL, 00067 (pHalGetInterruptTranslator)NULL, 00068 (pHalStartMirroring)NULL, 00069 (pHalEndMirroring)NULL, 00070 (pHalMirrorPhysicalMemory)NULL, 00071 (pHalEndOfBoot)NULL, 00072 (pHalMirrorVerify)NULL, 00073 (pHalGetAcpiTable)NULL, 00074 (pHalSetPciErrorHandlerCallback)NULL 00075 }; 00076 00077 HAL_PRIVATE_DISPATCH HalPrivateDispatchTable = 00078 { 00079 HAL_PRIVATE_DISPATCH_VERSION, 00080 (pHalHandlerForBus)NULL, 00081 (pHalHandlerForConfigSpace)NULL, 00082 (pHalLocateHiberRanges)NULL, 00083 (pHalRegisterBusHandler)NULL, 00084 (pHalSetWakeEnable)NULL, 00085 (pHalSetWakeAlarm)NULL, 00086 (pHalTranslateBusAddress)NULL, 00087 (pHalAssignSlotResources)NULL, 00088 (pHalHaltSystem)xHalHaltSystem, 00089 (pHalFindBusAddressTranslation)NULL, 00090 (pHalResetDisplay)NULL, 00091 (pHalAllocateMapRegisters)NULL, 00092 (pKdSetupPciDeviceForDebugging)NULL, 00093 (pKdReleasePciDeviceForDebugging)NULL, 00094 (pKdGetAcpiTablePhase0)NULL, 00095 (pKdCheckPowerButton)NULL, 00096 (pHalVectorToIDTEntry)xHalVectorToIDTEntry, 00097 (pKdMapPhysicalMemory64)NULL, 00098 (pKdUnmapVirtualAddress)NULL 00099 }; Generated on Mon May 28 2012 04:18:39 for ReactOS by
1.7.6.1
|