ReactOS  0.4.15-dev-5649-gd5999c6
halstub.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
Include dependency graph for halstub.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

UCHAR NTAPI xHalVectorToIDTEntry (IN ULONG Vector)
 
VOID NTAPI xHalHaltSystem (VOID)
 
VOID NTAPI xHalEndOfBoot (VOID)
 
VOID NTAPI xHalSetWakeEnable (IN BOOLEAN Enable)
 
PBUS_HANDLER FASTCALL xHalHandlerForBus (IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber)
 
VOID FASTCALL xHalReferenceHandler (IN PBUS_HANDLER BusHandler)
 
NTSTATUS NTAPI xHalInitPnpDriver (VOID)
 
NTSTATUS NTAPI xHalInitPowerManagement (IN PPM_DISPATCH_TABLE PmDriverDispatchTable, OUT PPM_DISPATCH_TABLE *PmHalDispatchTable)
 
NTSTATUS NTAPI xHalStartMirroring (VOID)
 
NTSTATUS NTAPI xHalEndMirroring (IN ULONG PassNumber)
 
NTSTATUS NTAPI xHalMirrorPhysicalMemory (IN PHYSICAL_ADDRESS PhysicalAddress, IN LARGE_INTEGER NumberOfBytes)
 
NTSTATUS NTAPI xHalQueryBusSlots (IN PBUS_HANDLER BusHandler, IN ULONG BufferSize, OUT PULONG SlotNumbers, OUT PULONG ReturnedLength)
 
NTSTATUS NTAPI xHalSetSystemInformation (IN HAL_SET_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN PVOID Buffer)
 
NTSTATUS NTAPI xHalQuerySystemInformation (IN HAL_QUERY_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer, OUT PULONG ReturnedLength)
 
VOID NTAPI xHalLocateHiberRanges (IN PVOID MemoryMap)
 
NTSTATUS NTAPI xHalRegisterBusHandler (IN INTERFACE_TYPE InterfaceType, IN BUS_DATA_TYPE ConfigSpace, IN ULONG BusNumber, IN INTERFACE_TYPE ParentInterfaceType, IN ULONG ParentBusNumber, IN ULONG ContextSize, IN PINSTALL_BUS_HANDLER InstallCallback, OUT PBUS_HANDLER *BusHandler)
 
VOID NTAPI xHalSetWakeAlarm (IN ULONGLONG AlartTime, IN PTIME_FIELDS TimeFields)
 
BOOLEAN NTAPI xHalTranslateBusAddress (IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber, IN PHYSICAL_ADDRESS BusAddress, IN OUT PULONG AddressSpace, OUT PPHYSICAL_ADDRESS TranslatedAddress)
 
NTSTATUS NTAPI xHalAllocateMapRegisters (IN PADAPTER_OBJECT AdapterObject, IN ULONG Unknown, IN ULONG Unknown2, PMAP_REGISTER_ENTRY Registers)
 
NTSTATUS NTAPI xKdSetupPciDeviceForDebugging (IN PVOID LoaderBlock OPTIONAL, IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
 
NTSTATUS NTAPI xKdReleasePciDeviceForDebugging (IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
 
PVOID NTAPI xKdGetAcpiTablePhase (IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN ULONG Signature)
 
PVOID NTAPI MatchAll (IN PHYSICAL_ADDRESS PhysicalAddress, IN ULONG NumberPages, IN BOOLEAN FlushCurrentTLB)
 
VOID NTAPI xKdUnmapVirtualAddress (IN PVOID VirtualAddress, IN ULONG NumberPages, IN BOOLEAN FlushCurrentTLB)
 

Variables

HAL_DISPATCH HalDispatchTable
 
HAL_PRIVATE_DISPATCH HalPrivateDispatchTable
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file halstub.c.

Function Documentation

◆ MatchAll()

PVOID NTAPI MatchAll ( IN PHYSICAL_ADDRESS  PhysicalAddress,
IN ULONG  NumberPages,
IN BOOLEAN  FlushCurrentTLB 
)

Definition at line 277 of file halstub.c.

280 {
281  return NULL;
282 }
#define NULL
Definition: types.h:112

◆ xHalAllocateMapRegisters()

NTSTATUS NTAPI xHalAllocateMapRegisters ( IN PADAPTER_OBJECT  AdapterObject,
IN ULONG  Unknown,
IN ULONG  Unknown2,
PMAP_REGISTER_ENTRY  Registers 
)

Definition at line 242 of file halstub.c.

246 {
247  PAGED_CODE();
248 
249  return STATUS_NOT_IMPLEMENTED;
250 }
return STATUS_NOT_IMPLEMENTED
#define PAGED_CODE()

◆ xHalEndMirroring()

NTSTATUS NTAPI xHalEndMirroring ( IN ULONG  PassNumber)

Definition at line 146 of file halstub.c.

147 {
148  return STATUS_NOT_SUPPORTED;
149 }
return STATUS_NOT_SUPPORTED

◆ xHalEndOfBoot()

VOID NTAPI xHalEndOfBoot ( VOID  )

Definition at line 88 of file halstub.c.

89 {
90  PAGED_CODE();
91 
92  /* Nothing */
93  return;
94 }
#define PAGED_CODE()

◆ xHalHaltSystem()

VOID NTAPI xHalHaltSystem ( VOID  )

Definition at line 80 of file halstub.c.

81 {
82  /* Halt execution */
83  while (TRUE);
84 }
#define TRUE
Definition: types.h:120

◆ xHalHandlerForBus()

PBUS_HANDLER FASTCALL xHalHandlerForBus ( IN INTERFACE_TYPE  InterfaceType,
IN ULONG  BusNumber 
)

Definition at line 106 of file halstub.c.

108 {
109  return NULL;
110 }
#define NULL
Definition: types.h:112

◆ xHalInitPnpDriver()

NTSTATUS NTAPI xHalInitPnpDriver ( VOID  )

Definition at line 122 of file halstub.c.

123 {
124  return STATUS_NOT_SUPPORTED;
125 }
return STATUS_NOT_SUPPORTED

◆ xHalInitPowerManagement()

NTSTATUS NTAPI xHalInitPowerManagement ( IN PPM_DISPATCH_TABLE  PmDriverDispatchTable,
OUT PPM_DISPATCH_TABLE PmHalDispatchTable 
)

Definition at line 129 of file halstub.c.

131 {
132  return STATUS_NOT_SUPPORTED;
133 }
return STATUS_NOT_SUPPORTED

◆ xHalLocateHiberRanges()

VOID NTAPI xHalLocateHiberRanges ( IN PVOID  MemoryMap)

Definition at line 196 of file halstub.c.

197 {
198  /* Nothing */
199  return;
200 }

◆ xHalMirrorPhysicalMemory()

NTSTATUS NTAPI xHalMirrorPhysicalMemory ( IN PHYSICAL_ADDRESS  PhysicalAddress,
IN LARGE_INTEGER  NumberOfBytes 
)

Definition at line 153 of file halstub.c.

155 {
156  return STATUS_NOT_SUPPORTED;
157 }
return STATUS_NOT_SUPPORTED

◆ xHalQueryBusSlots()

NTSTATUS NTAPI xHalQueryBusSlots ( IN PBUS_HANDLER  BusHandler,
IN ULONG  BufferSize,
OUT PULONG  SlotNumbers,
OUT PULONG  ReturnedLength 
)

Definition at line 161 of file halstub.c.

165 {
166  PAGED_CODE();
167 
168  return STATUS_NOT_SUPPORTED;
169 }
return STATUS_NOT_SUPPORTED
#define PAGED_CODE()

◆ xHalQuerySystemInformation()

NTSTATUS NTAPI xHalQuerySystemInformation ( IN HAL_QUERY_INFORMATION_CLASS  InformationClass,
IN ULONG  BufferSize,
IN OUT PVOID  Buffer,
OUT PULONG  ReturnedLength 
)

Definition at line 184 of file halstub.c.

188 {
189  PAGED_CODE();
190 
191  return STATUS_INVALID_LEVEL;
192 }
#define STATUS_INVALID_LEVEL
Definition: ntstatus.h:564
#define PAGED_CODE()

◆ xHalReferenceHandler()

VOID FASTCALL xHalReferenceHandler ( IN PBUS_HANDLER  BusHandler)

Definition at line 114 of file halstub.c.

115 {
116  /* Nothing */
117  return;
118 }

◆ xHalRegisterBusHandler()

NTSTATUS NTAPI xHalRegisterBusHandler ( IN INTERFACE_TYPE  InterfaceType,
IN BUS_DATA_TYPE  ConfigSpace,
IN ULONG  BusNumber,
IN INTERFACE_TYPE  ParentInterfaceType,
IN ULONG  ParentBusNumber,
IN ULONG  ContextSize,
IN PINSTALL_BUS_HANDLER  InstallCallback,
OUT PBUS_HANDLER BusHandler 
)

Definition at line 204 of file halstub.c.

212 {
213  PAGED_CODE();
214 
215  return STATUS_NOT_SUPPORTED;
216 }
return STATUS_NOT_SUPPORTED
#define PAGED_CODE()

◆ xHalSetSystemInformation()

NTSTATUS NTAPI xHalSetSystemInformation ( IN HAL_SET_INFORMATION_CLASS  InformationClass,
IN ULONG  BufferSize,
IN PVOID  Buffer 
)

Definition at line 173 of file halstub.c.

176 {
177  PAGED_CODE();
178 
179  return STATUS_INVALID_LEVEL;
180 }
#define STATUS_INVALID_LEVEL
Definition: ntstatus.h:564
#define PAGED_CODE()

◆ xHalSetWakeAlarm()

VOID NTAPI xHalSetWakeAlarm ( IN ULONGLONG  AlartTime,
IN PTIME_FIELDS  TimeFields 
)

Definition at line 220 of file halstub.c.

222 {
223  /* Nothing */
224  return;
225 }

◆ xHalSetWakeEnable()

VOID NTAPI xHalSetWakeEnable ( IN BOOLEAN  Enable)

Definition at line 98 of file halstub.c.

99 {
100  /* Nothing */
101  return;
102 }

◆ xHalStartMirroring()

NTSTATUS NTAPI xHalStartMirroring ( VOID  )

Definition at line 137 of file halstub.c.

138 {
139  PAGED_CODE();
140 
141  return STATUS_NOT_SUPPORTED;
142 }
return STATUS_NOT_SUPPORTED
#define PAGED_CODE()

◆ xHalTranslateBusAddress()

BOOLEAN NTAPI xHalTranslateBusAddress ( IN INTERFACE_TYPE  InterfaceType,
IN ULONG  BusNumber,
IN PHYSICAL_ADDRESS  BusAddress,
IN OUT PULONG  AddressSpace,
OUT PPHYSICAL_ADDRESS  TranslatedAddress 
)

Definition at line 229 of file halstub.c.

234 {
235  KeBugCheckEx(HAL_INITIALIZATION_FAILED, 0, 0, 0, 0);
236 
237  return FALSE;
238 }
#define FALSE
Definition: types.h:117
VOID NTAPI KeBugCheckEx(_In_ ULONG BugCheckCode, _In_ ULONG_PTR BugCheckParameter1, _In_ ULONG_PTR BugCheckParameter2, _In_ ULONG_PTR BugCheckParameter3, _In_ ULONG_PTR BugCheckParameter4)
Definition: rtlcompat.c:108

◆ xHalVectorToIDTEntry()

UCHAR NTAPI xHalVectorToIDTEntry ( IN ULONG  Vector)

Definition at line 72 of file halstub.c.

73 {
74  /* Return the vector */
75  return (UCHAR)Vector;
76 }
unsigned char UCHAR
Definition: xmlstorage.h:181
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG Vector
Definition: iofuncs.h:800

◆ xKdGetAcpiTablePhase()

PVOID NTAPI xKdGetAcpiTablePhase ( IN struct _LOADER_PARAMETER_BLOCK LoaderBlock,
IN ULONG  Signature 
)

Definition at line 269 of file halstub.c.

271 {
272  return NULL;
273 }
#define NULL
Definition: types.h:112

◆ xKdReleasePciDeviceForDebugging()

NTSTATUS NTAPI xKdReleasePciDeviceForDebugging ( IN OUT PDEBUG_DEVICE_DESCRIPTOR  PciDevice)

Definition at line 262 of file halstub.c.

263 {
264  return STATUS_NOT_IMPLEMENTED;
265 }
return STATUS_NOT_IMPLEMENTED

◆ xKdSetupPciDeviceForDebugging()

NTSTATUS NTAPI xKdSetupPciDeviceForDebugging ( IN PVOID LoaderBlock  OPTIONAL,
IN OUT PDEBUG_DEVICE_DESCRIPTOR  PciDevice 
)

Definition at line 254 of file halstub.c.

256 {
257  return STATUS_NOT_IMPLEMENTED;
258 }
return STATUS_NOT_IMPLEMENTED

◆ xKdUnmapVirtualAddress()

VOID NTAPI xKdUnmapVirtualAddress ( IN PVOID  VirtualAddress,
IN ULONG  NumberPages,
IN BOOLEAN  FlushCurrentTLB 
)

Definition at line 286 of file halstub.c.

289 {
290  /* Nothing */
291  return;
292 }

Variable Documentation

◆ HalDispatchTable

HAL_DISPATCH HalDispatchTable
Initial value:
=
{
0,
}
NTSTATUS NTAPI xHalSetSystemInformation(IN HAL_SET_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN PVOID Buffer)
Definition: halstub.c:173
NTSTATUS NTAPI xHalInitPnpDriver(VOID)
Definition: halstub.c:122
VOID FASTCALL xHalExamineMBR(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG MbrTypeIdentifier, OUT PVOID *MbrBuffer)
Definition: disksup.c:1643
VOID FASTCALL xHalIoAssignDriveLetters(IN PLOADER_PARAMETER_BLOCK LoaderBlock, IN PSTRING NtDeviceName, OUT PUCHAR NtSystemPath, OUT PSTRING NtSystemPathString)
Definition: disksup.c:912
NTSTATUS FASTCALL xHalIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG PartitionNumber, IN ULONG PartitionType)
Definition: disksup.c:2200
struct _DMA_ADAPTER *NTAPI * pHalGetDmaAdapter(_In_ PVOID Context, _In_ struct _DEVICE_DESCRIPTION *DeviceDescriptor, _Out_ PULONG NumberOfMapRegisters)
Definition: haltypes.h:128
VOID FASTCALL xHalReferenceHandler(IN PBUS_HANDLER BusHandler)
Definition: halstub.c:114
NTSTATUS NTAPI xHalInitPowerManagement(IN PPM_DISPATCH_TABLE PmDriverDispatchTable, OUT PPM_DISPATCH_TABLE *PmHalDispatchTable)
Definition: halstub.c:129
NTSTATUS NTAPI xHalQuerySystemInformation(IN HAL_QUERY_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer, OUT PULONG ReturnedLength)
Definition: halstub.c:184
NTSTATUS NTAPI xHalQueryBusSlots(IN PBUS_HANDLER BusHandler, IN ULONG BufferSize, OUT PULONG SlotNumbers, OUT PULONG ReturnedLength)
Definition: halstub.c:161
NTSTATUS NTAPI xHalStartMirroring(VOID)
Definition: halstub.c:137
NTSTATUS FASTCALL xHalIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
Definition: disksup.c:2387
NTSTATUS FASTCALL xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
Definition: halstub.c:17
PBUS_HANDLER FASTCALL xHalHandlerForBus(IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber)
Definition: halstub.c:106
#define NULL
Definition: types.h:112
NTSTATUS NTAPI xHalMirrorPhysicalMemory(IN PHYSICAL_ADDRESS PhysicalAddress, IN LARGE_INTEGER NumberOfBytes)
Definition: halstub.c:153
NTSTATUS NTAPI xHalEndMirroring(IN ULONG PassNumber)
Definition: halstub.c:146
NTSTATUS NTAPI xHalGetInterruptTranslator(IN INTERFACE_TYPE ParentInterfaceType, IN ULONG ParentBusNumber, IN INTERFACE_TYPE BridgeInterfaceType, IN USHORT Size, IN USHORT Version, OUT PTRANSLATOR_INTERFACE Translator, OUT PULONG BridgeBusNumber)
Definition: translate.c:156
VOID NTAPI xHalEndOfBoot(VOID)
Definition: halstub.c:88
#define HAL_DISPATCH_VERSION
Definition: haltypes.h:290

Definition at line 18 of file halstub.c.

◆ HalPrivateDispatchTable

HAL_PRIVATE_DISPATCH HalPrivateDispatchTable
Initial value:
=
{
}
NTSTATUS NTAPI xHalRegisterBusHandler(IN INTERFACE_TYPE InterfaceType, IN BUS_DATA_TYPE ConfigSpace, IN ULONG BusNumber, IN INTERFACE_TYPE ParentInterfaceType, IN ULONG ParentBusNumber, IN ULONG ContextSize, IN PINSTALL_BUS_HANDLER InstallCallback, OUT PBUS_HANDLER *BusHandler)
Definition: halstub.c:204
BOOLEAN(NTAPI * pHalResetDisplay)(VOID)
Definition: haltypes.h:183
VOID(NTAPI * pKdCheckPowerButton)(VOID)
Definition: kdtypes.h:134
NTSTATUS NTAPI xKdReleasePciDeviceForDebugging(IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
Definition: halstub.c:262
PVOID NTAPI MatchAll(IN PHYSICAL_ADDRESS PhysicalAddress, IN ULONG NumberPages, IN BOOLEAN FlushCurrentTLB)
Definition: halstub.c:277
BOOLEAN NTAPI xHalTranslateBusAddress(IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber, IN PHYSICAL_ADDRESS BusAddress, IN OUT PULONG AddressSpace, OUT PPHYSICAL_ADDRESS TranslatedAddress)
Definition: halstub.c:229
BOOLEAN(NTAPI * pHalFindBusAddressTranslation)(_In_ PHYSICAL_ADDRESS BusAddress, _Inout_ PULONG AddressSpace, _Out_ PPHYSICAL_ADDRESS TranslatedAddress, _Inout_ PULONG_PTR Context, _In_ BOOLEAN NextBus)
Definition: haltypes.h:195
VOID FASTCALL xHalReferenceHandler(IN PBUS_HANDLER BusHandler)
Definition: halstub.c:114
PVOID(NTAPI * pKdMapPhysicalMemory64)(_In_ PHYSICAL_ADDRESS PhysicalAddress, _In_ ULONG NumberPages, _In_ BOOLEAN FlushCurrentTLB)
Definition: kdtypes.h:138
#define HAL_PRIVATE_DISPATCH_VERSION
Definition: haltypes.h:166
NTSTATUS NTAPI xHalAllocateMapRegisters(IN PADAPTER_OBJECT AdapterObject, IN ULONG Unknown, IN ULONG Unknown2, PMAP_REGISTER_ENTRY Registers)
Definition: halstub.c:242
VOID NTAPI xHalLocateHiberRanges(IN PVOID MemoryMap)
Definition: halstub.c:196
PVOID NTAPI xKdGetAcpiTablePhase(IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN ULONG Signature)
Definition: halstub.c:269
VOID NTAPI xKdUnmapVirtualAddress(IN PVOID VirtualAddress, IN ULONG NumberPages, IN BOOLEAN FlushCurrentTLB)
Definition: halstub.c:286
PBUS_HANDLER FASTCALL xHalHandlerForBus(IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber)
Definition: halstub.c:106
#define NULL
Definition: types.h:112
PBUS_HANDLER(FASTCALL * pHalHandlerForConfigSpace)(_In_ BUS_DATA_TYPE ConfigSpace, _In_ ULONG BusNumber)
Definition: haltypes.h:47
NTSTATUS NTAPI xKdSetupPciDeviceForDebugging(IN PVOID LoaderBlock OPTIONAL, IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice)
Definition: halstub.c:254
VOID(NTAPI * pKdUnmapVirtualAddress)(_In_ PVOID VirtualAddress, _In_ ULONG NumberPages, _In_ BOOLEAN FlushCurrentTLB)
Definition: kdtypes.h:144
VOID NTAPI xHalSetWakeEnable(IN BOOLEAN Enable)
Definition: halstub.c:98
VOID NTAPI xHalSetWakeAlarm(IN ULONGLONG AlartTime, IN PTIME_FIELDS TimeFields)
Definition: halstub.c:220
UCHAR NTAPI xHalVectorToIDTEntry(IN ULONG Vector)
Definition: halstub.c:31
NTSTATUS(NTAPI * pHalAssignSlotResources)(_In_ PUNICODE_STRING RegistryPath, _In_opt_ PUNICODE_STRING DriverClassName, _In_ PDRIVER_OBJECT DriverObject, _In_ PDEVICE_OBJECT DeviceObject, _In_ INTERFACE_TYPE BusType, _In_ ULONG BusNumber, _In_ ULONG SlotNumber, _Inout_ PCM_RESOURCE_LIST *AllocatedResources)
Definition: haltypes.h:169
VOID NTAPI xHalHaltSystem(VOID)
Definition: halstub.c:39

Definition at line 44 of file halstub.c.