ReactOS  0.4.12-dev-43-g63b00d8
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
 

Macros

#define HAL_PRIVATE_DISPATCH_VERSION   2
 
#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 *Resources)
 
typedef NTSTATUS(NTAPIPASSIGNSLOTRESOURCES) (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ PUNICODE_STRING RegistryPath, _In_ PUNICODE_STRING DriverClassName, _In_ PDRIVER_OBJECT DriverObject, _In_ 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, _Out_ 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
 

Enumerations

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

Variables

NTSYSAPI HAL_PRIVATE_DISPATCH HalPrivateDispatchTable
 
PUCHAR NTHALAPI KdComPortInUse
 

Macro Definition Documentation

◆ HAL_BUS_HANDLER_VERSION

#define HAL_BUS_HANDLER_VERSION   1

Definition at line 220 of file haltypes.h.

◆ HAL_IRQ_TRANSLATOR_VERSION

#define HAL_IRQ_TRANSLATOR_VERSION   0x0

Definition at line 276 of file haltypes.h.

Referenced by xHalGetInterruptTranslator().

◆ HAL_PCI_CHIP_HACK_BROKEN_ACPI_TIMER

#define HAL_PCI_CHIP_HACK_BROKEN_ACPI_TIMER   0x01

Definition at line 252 of file haltypes.h.

Referenced by HalpInitializePciBus().

◆ HAL_PCI_CHIP_HACK_DISABLE_ACPI_IRQ_ROUTING

#define HAL_PCI_CHIP_HACK_DISABLE_ACPI_IRQ_ROUTING   0x04

Definition at line 254 of file haltypes.h.

Referenced by HalpInitializePciBus().

◆ HAL_PCI_CHIP_HACK_DISABLE_HIBERNATE

#define HAL_PCI_CHIP_HACK_DISABLE_HIBERNATE   0x02

Definition at line 253 of file haltypes.h.

Referenced by HalpInitializePciBus().

◆ HAL_PCI_CHIP_HACK_USB_SMI_DISABLE

#define HAL_PCI_CHIP_HACK_USB_SMI_DISABLE   0x08

Definition at line 255 of file haltypes.h.

Referenced by HalpInitializePciBus().

◆ HAL_PRIVATE_DISPATCH_VERSION

#define HAL_PRIVATE_DISPATCH_VERSION   2

Definition at line 158 of file haltypes.h.

◆ HAL_SUPPORTED_RANGE_VERSION

#define HAL_SUPPORTED_RANGE_VERSION   1

Definition at line 192 of file haltypes.h.

Referenced by HalpAllocateBusHandler().

◆ HALPRIVATEDISPATCH

#define HALPRIVATEDISPATCH   (&HalPrivateDispatchTable)

Definition at line 265 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 *Resources)

Definition at line 104 of file haltypes.h.

◆ PASSIGNSLOTRESOURCES

◆ PFIRMWARE_REENTRY

◆ PGETINTERRUPTVECTOR

Definition at line 136 of file haltypes.h.

◆ PGETSETBUSDATA

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

Definition at line 125 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 92 of file haltypes.h.

◆ pHalHandlerForConfigSpace

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

Definition at line 47 of file haltypes.h.

◆ pHalLocateHiberRanges

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

Definition at line 86 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 60 of file haltypes.h.

◆ pHalSetWakeAlarm

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

Definition at line 79 of file haltypes.h.

◆ pHalSetWakeEnable

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

Definition at line 73 of file haltypes.h.

◆ PINSTALL_BUS_HANDLER

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

Definition at line 54 of file haltypes.h.

◆ PSUPPORTED_RANGE

◆ PSUPPORTED_RANGES

◆ PTRANSLATEBUSADDRESS

Definition at line 147 of file haltypes.h.

◆ SUPPORTED_RANGE

◆ SUPPORTED_RANGES

Enumeration Type Documentation

◆ _FIRMWARE_REENTRY

Enumerator
HalHaltRoutine 
HalPowerDownRoutine 
HalRestartRoutine 
HalRebootRoutine 
HalInteractiveModeRoutine 
HalMaximumRoutine 

Definition at line 32 of file haltypes.h.

Variable Documentation

◆ HalPrivateDispatchTable

NTSYSAPI HAL_PRIVATE_DISPATCH HalPrivateDispatchTable

Definition at line 77 of file halstub.c.

◆ KdComPortInUse