ReactOS 0.4.16-dev-334-g4d9f67c
haltypes.h File Reference
#include <umtypes.h>
Include dependency graph for haltypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _HAL_PRIVATE_DISPATCH
 
struct  _SUPPORTED_RANGE
 
struct  _SUPPORTED_RANGES
 
struct  _BUS_HANDLER
 
struct  _X86_BIOS_REGISTERS
 

Macros

#define HAL_PRIVATE_DISPATCH_VERSION   5
 
#define HAL_SUPPORTED_RANGE_VERSION   1
 
#define HAL_BUS_HANDLER_VERSION   1
 
#define HAL_PCI_CHIP_HACK_BROKEN_ACPI_TIMER   0x01
 
#define HAL_PCI_CHIP_HACK_DISABLE_HIBERNATE   0x02
 
#define HAL_PCI_CHIP_HACK_DISABLE_ACPI_IRQ_ROUTING   0x04
 
#define HAL_PCI_CHIP_HACK_USB_SMI_DISABLE   0x08
 
#define HALPRIVATEDISPATCH   (&HalPrivateDispatchTable)
 
#define HAL_IRQ_TRANSLATOR_VERSION   0x0
 

Typedefs

typedef enum _FIRMWARE_REENTRY FIRMWARE_REENTRY
 
typedef enum _FIRMWARE_REENTRYPFIRMWARE_REENTRY
 
typedef PBUS_HANDLER(FASTCALLpHalHandlerForConfigSpace) (_In_ BUS_DATA_TYPE ConfigSpace, _In_ ULONG BusNumber)
 
typedef NTSTATUS(NTAPIPINSTALL_BUS_HANDLER) (_In_ PBUS_HANDLER Bus)
 
typedef NTSTATUS(NTAPIpHalRegisterBusHandler) (_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)
 
typedef VOID(NTAPIpHalSetWakeEnable) (_In_ BOOLEAN Enable)
 
typedef VOID(NTAPIpHalSetWakeAlarm) (_In_ ULONGLONG AlartTime, _In_ PTIME_FIELDS TimeFields)
 
typedef VOID(NTAPIpHalLocateHiberRanges) (_In_ PVOID MemoryMap)
 
typedef NTSTATUS(NTAPIpHalAllocateMapRegisters) (_In_ PADAPTER_OBJECT AdapterObject, _In_ ULONG Unknown, _In_ ULONG Unknown2, PMAP_REGISTER_ENTRY Registers)
 
typedef NTSTATUS(NTAPIPADJUSTRESOURCELIST) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _Inout_ PIO_RESOURCE_REQUIREMENTS_LIST *pResourceList)
 
typedef NTSTATUS(NTAPIPASSIGNSLOTRESOURCES) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ PUNICODE_STRING RegistryPath, _In_opt_ PUNICODE_STRING DriverClassName, _In_ PDRIVER_OBJECT DriverObject, _In_opt_ PDEVICE_OBJECT DeviceObject, _In_ ULONG SlotNumber, _Inout_ PCM_RESOURCE_LIST *AllocatedResources)
 
typedef ULONG(NTAPIPGETSETBUSDATA) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ ULONG SlotNumber, _In_ PVOID Buffer, _In_ ULONG Offset, _In_ ULONG Length)
 
typedef ULONG(NTAPIPGETINTERRUPTVECTOR) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ ULONG BusInterruptLevel, _In_ ULONG BusInterruptVector, _Out_ PKIRQL Irql, _Out_ PKAFFINITY Affinity)
 
typedef BOOLEAN(NTAPIPTRANSLATEBUSADDRESS) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ PHYSICAL_ADDRESS BusAddress, _Inout_ PULONG AddressSpace, _Out_ PPHYSICAL_ADDRESS TranslatedAddress)
 
typedef struct _HAL_PRIVATE_DISPATCH HAL_PRIVATE_DISPATCH
 
typedef struct _HAL_PRIVATE_DISPATCHPHAL_PRIVATE_DISPATCH
 
typedef struct _SUPPORTED_RANGE SUPPORTED_RANGE
 
typedef struct _SUPPORTED_RANGEPSUPPORTED_RANGE
 
typedef struct _SUPPORTED_RANGES SUPPORTED_RANGES
 
typedef struct _SUPPORTED_RANGESPSUPPORTED_RANGES
 
typedef struct _BUS_HANDLER BUS_HANDLER
 
typedef struct _X86_BIOS_REGISTERS X86_BIOS_REGISTERS
 
typedef struct _X86_BIOS_REGISTERSPX86_BIOS_REGISTERS
 

Enumerations

enum  _FIRMWARE_REENTRY {
  HalHaltRoutine , HalPowerDownRoutine , HalRestartRoutine , HalRebootRoutine ,
  HalInteractiveModeRoutine , HalMaximumRoutine
}
 

Variables

NTSYSAPI HAL_PRIVATE_DISPATCH HalPrivateDispatchTable
 
NTHALAPI PUCHAR KdComPortInUse
 

Macro Definition Documentation

◆ HAL_BUS_HANDLER_VERSION

#define HAL_BUS_HANDLER_VERSION   1

Definition at line 231 of file haltypes.h.

◆ HAL_IRQ_TRANSLATOR_VERSION

#define HAL_IRQ_TRANSLATOR_VERSION   0x0

Definition at line 287 of file haltypes.h.

◆ HAL_PCI_CHIP_HACK_BROKEN_ACPI_TIMER

#define HAL_PCI_CHIP_HACK_BROKEN_ACPI_TIMER   0x01

Definition at line 263 of file haltypes.h.

◆ HAL_PCI_CHIP_HACK_DISABLE_ACPI_IRQ_ROUTING

#define HAL_PCI_CHIP_HACK_DISABLE_ACPI_IRQ_ROUTING   0x04

Definition at line 265 of file haltypes.h.

◆ HAL_PCI_CHIP_HACK_DISABLE_HIBERNATE

#define HAL_PCI_CHIP_HACK_DISABLE_HIBERNATE   0x02

Definition at line 264 of file haltypes.h.

◆ HAL_PCI_CHIP_HACK_USB_SMI_DISABLE

#define HAL_PCI_CHIP_HACK_USB_SMI_DISABLE   0x08

Definition at line 266 of file haltypes.h.

◆ HAL_PRIVATE_DISPATCH_VERSION

#define HAL_PRIVATE_DISPATCH_VERSION   5

Definition at line 166 of file haltypes.h.

◆ HAL_SUPPORTED_RANGE_VERSION

#define HAL_SUPPORTED_RANGE_VERSION   1

Definition at line 203 of file haltypes.h.

◆ HALPRIVATEDISPATCH

#define HALPRIVATEDISPATCH   (&HalPrivateDispatchTable)

Definition at line 276 of file haltypes.h.

Typedef Documentation

◆ BUS_HANDLER

◆ FIRMWARE_REENTRY

◆ HAL_PRIVATE_DISPATCH

◆ PADJUSTRESOURCELIST

typedef NTSTATUS(NTAPI * PADJUSTRESOURCELIST) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _Inout_ PIO_RESOURCE_REQUIREMENTS_LIST *pResourceList)

Definition at line 103 of file haltypes.h.

◆ PASSIGNSLOTRESOURCES

◆ PFIRMWARE_REENTRY

◆ PGETINTERRUPTVECTOR

Definition at line 135 of file haltypes.h.

◆ PGETSETBUSDATA

typedef ULONG(NTAPI * PGETSETBUSDATA) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ ULONG SlotNumber, _In_ PVOID Buffer, _In_ ULONG Offset, _In_ ULONG Length)

Definition at line 124 of file haltypes.h.

◆ PHAL_PRIVATE_DISPATCH

◆ pHalAllocateMapRegisters

typedef NTSTATUS(NTAPI * pHalAllocateMapRegisters) (_In_ PADAPTER_OBJECT AdapterObject, _In_ ULONG Unknown, _In_ ULONG Unknown2, PMAP_REGISTER_ENTRY Registers)

Definition at line 91 of file haltypes.h.

◆ pHalHandlerForConfigSpace

typedef PBUS_HANDLER(FASTCALL * pHalHandlerForConfigSpace) (_In_ BUS_DATA_TYPE ConfigSpace, _In_ ULONG BusNumber)

Definition at line 46 of file haltypes.h.

◆ pHalLocateHiberRanges

typedef VOID(NTAPI * pHalLocateHiberRanges) (_In_ PVOID MemoryMap)

Definition at line 85 of file haltypes.h.

◆ pHalRegisterBusHandler

typedef NTSTATUS(NTAPI * pHalRegisterBusHandler) (_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 59 of file haltypes.h.

◆ pHalSetWakeAlarm

typedef VOID(NTAPI * pHalSetWakeAlarm) (_In_ ULONGLONG AlartTime, _In_ PTIME_FIELDS TimeFields)

Definition at line 78 of file haltypes.h.

◆ pHalSetWakeEnable

typedef VOID(NTAPI * pHalSetWakeEnable) (_In_ BOOLEAN Enable)

Definition at line 72 of file haltypes.h.

◆ PINSTALL_BUS_HANDLER

typedef NTSTATUS(NTAPI * PINSTALL_BUS_HANDLER) (_In_ PBUS_HANDLER Bus)

Definition at line 53 of file haltypes.h.

◆ PSUPPORTED_RANGE

◆ PSUPPORTED_RANGES

◆ PTRANSLATEBUSADDRESS

Definition at line 146 of file haltypes.h.

◆ PX86_BIOS_REGISTERS

◆ SUPPORTED_RANGE

◆ SUPPORTED_RANGES

◆ X86_BIOS_REGISTERS

Enumeration Type Documentation

◆ _FIRMWARE_REENTRY

Enumerator
HalHaltRoutine 
HalPowerDownRoutine 
HalRestartRoutine 
HalRebootRoutine 
HalInteractiveModeRoutine 
HalMaximumRoutine 

Definition at line 32 of file haltypes.h.

33{
enum _FIRMWARE_REENTRY * PFIRMWARE_REENTRY
enum _FIRMWARE_REENTRY FIRMWARE_REENTRY
@ HalRestartRoutine
Definition: haltypes.h:36
@ HalHaltRoutine
Definition: haltypes.h:34
@ HalInteractiveModeRoutine
Definition: haltypes.h:38
@ HalPowerDownRoutine
Definition: haltypes.h:35
@ HalRebootRoutine
Definition: haltypes.h:37
@ HalMaximumRoutine
Definition: haltypes.h:39

Variable Documentation

◆ HalPrivateDispatchTable

NTSYSAPI HAL_PRIVATE_DISPATCH HalPrivateDispatchTable
extern

Definition at line 75 of file halstub.c.

◆ KdComPortInUse

NTHALAPI PUCHAR KdComPortInUse
extern