Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ntacpi.h File Reference

Go to the source code of this file.

Classes

struct  SLEEP_STATE_CONTEXT
struct  PROCESSOR_INIT
struct  HAL_SLEEP_VAL
struct  HAL_ACPI_DISPATCH_TABLE
struct  ACPI_HAL_DISPATCH_TABLE
struct  ACPI_E820_ENTRY
struct  _ACPI_BIOS_MULTI_NODE

Defines

#define SLEEP_STATE_FLUSH_CACHE   0x1
#define SLEEP_STATE_FIRMWARE_RESTART   0x2
#define SLEEP_STATE_SAVE_MOTHERBOARD   0x4
#define SLEEP_STATE_OFF   0x8
#define SLEEP_STATE_RESTART_OTHER_PROCESSORS   0x10
#define P_LVL2   4
#define PBLK_THT_EN   0x10
#define PM1_PWRBTN_STS_BIT   8
#define PM1_PWRBTN_STS   (1 << PM1_PWRBTN_STS_BIT)
#define SCI_EN   1
#define BM_RLD   2
#define CTL_IGNORE   0x200
#define SLP_TYP_SHIFT   10
#define SLP_EN   0x2000
#define CTL_PRESERVE   (SCI_EN + BM_RLD + CTL_IGNORE)
#define HAL_C1_SUPPORTED   0x01
#define HAL_C2_SUPPORTED   0x02
#define HAL_C3_SUPPORTED   0x04
#define HAL_S1_SUPPORTED   0x08
#define HAL_S2_SUPPORTED   0x10
#define HAL_S3_SUPPORTED   0x20
#define HAL_S4_SUPPORTED   0x40
#define HAL_S5_SUPPORTED   0x80
#define VECTOR_MODE   1
#define VECTOR_LEVEL   1
#define VECTOR_EDGE   0
#define VECTOR_POLARITY   2
#define VECTOR_ACTIVE_LOW   2
#define VECTOR_ACTIVE_HIGH   0
#define VECTOR_TYPE   4
#define VECTOR_SIGNAL   0
#define VECTOR_MESSAGE   4
#define IS_LEVEL_TRIGGERED(vectorFlags)   (vectorFlags & VECTOR_LEVEL)
#define IS_EDGE_TRIGGERED(vectorFlags)   !(vectorFlags & VECTOR_LEVEL)
#define IS_ACTIVE_LOW(vectorFlags)   (vectorFlags & VECTOR_ACTIVE_LOW)
#define IS_ACTIVE_HIGH(vectorFlags)   !(vectorFlags & VECTOR_ACTIVE_LOW)
#define HAL_ACPI_PCI_RESOURCES   0x01
#define HAL_ACPI_PRT_SUPPORT   0x02
#define HAL_ACPI_DISPATCH_SIGNATURE   'HAL '
#define HAL_ACPI_DISPATCH_VERSION   1
#define HalAcpiTimerInit   ((pHalAcpiTimerInit)PmHalDispatchTable->Function[HalAcpiTimerInit])
#define HalAcpiTimerInterrupt   ((pHalAcpiTimerInterrupt)PmHalDispatchTable->Function[HalAcpiTimerInterrupt])
#define HalAcpiMachineStateInit   ((pHalAcpiMachineStateInit)PmHalDispatchTable->Function[HalAcpiMachineStateInit])
#define HalPicStateIntact   ((pHalPicStateIntact)PmHalDispatchTable->Function[HalPicStateIntact])
#define HalRestorePicState   ((pHalRestorePicState)PmHalDispatchTable->Function[HalRestorePicState])
#define HalPciInterfaceReadConfig   ((pHalInterfaceReadWriteConfig)PmHalDispatchTable->Function[HalPciInterfaceReadConfig])
#define HalPciInterfaceWriteConfig   ((pHalInterfaceReadWriteConfig)PmHalDispatchTable->Function[HalPciInterfaceWriteConfig])
#define HalSetVectorState   ((pHalSetVectorState)PmHalDispatchTable->Function[HalSetVectorState])
#define HalGetIOApicVersion   ((pHalGetIOApicVersion)PmHalDispatchTable->Function[HalGetIOApicVersion])
#define HalSetMaxLegacyPciBusNumber   ((pHalSetMaxLegacyPciBusNumber)PmHalDispatchTable->Function[HalSetMaxLegacyPciBusNumber])
#define ACPI_HAL_DISPATCH_SIGNATURE   'ACPI'
#define ACPI_HAL_DISPATCH_VERSION   1
#define AcpiEnableDisableGPEvents   (*(pAcpiEnableDisableGPEvents)PmAcpiDispatchTable->Function[AcpiEnableDisableGPEvents])
#define AcpiInitEnableAcpi   (*(pAcpiInitEnableAcpi)PmAcpiDispatchTable->Function[AcpiInitEnableAcpi])
#define AcpiGpeEnableWakeEvents   (*(pAcpiGpeEnableWakeEvents)PmAcpiDispatchTable->Function[AcpiGpeEnableWakeEvents])

Typedefs

typedef * PSLEEP_STATE_CONTEXT
typedef VOID(* pHalAcpiTimerInit )(IN ULONG TimerPort, IN BOOLEAN TimerValExt)
typedef VOID(* pHalAcpiTimerInterrupt )(VOID)
typedef * PPROCESSOR_INIT
typedef * PHAL_SLEEP_VAL
typedef VOID(* pHalAcpiMachineStateInit )(IN PPROCESSOR_INIT ProcInit, IN PHAL_SLEEP_VAL SleepValues, OUT PULONG PicVal)
typedef ULONG(* pHalAcpiQueryFlags )(VOID)
typedef BOOLEAN(* pHalPicStateIntact )(VOID)
typedef VOID(* pHalRestorePicState )(VOID)
typedef ULONG(* pHalInterfaceReadWriteConfig )(IN PVOID Context, IN UCHAR BusOffset, IN ULONG Slot, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
typedef VOID(* pHalSetVectorState )(IN ULONG Vector, IN ULONG Flags)
typedef ULONG(* pHalGetIOApicVersion )(IN ULONG ApicNo)
typedef VOID(* pHalSetMaxLegacyPciBusNumber )(IN ULONG BusNumber)
typedef * PHAL_ACPI_DISPATCH_TABLE
typedef VOID(* pAcpiEnableDisableGPEvents )(IN BOOLEAN Enable)
typedef VOID(* pAcpiInitEnableAcpi )(IN BOOLEAN ReEnable)
typedef VOID(* pAcpiGpeEnableWakeEvents )(VOID)
typedef * PACPI_HAL_DISPATCH_TABLE
typedef * PACPI_E820_ENTRY
typedef _ACPI_BIOS_MULTI_NODE ACPI_BIOS_MULTI_NODE
typedef _ACPI_BIOS_MULTI_NODEPACPI_BIOS_MULTI_NODE
typedef * PACPI_BIOS_E820_TYPE

Enumerations

enum  HAL_DISPATCH_FUNCTION {
  HalAcpiTimerInit, HalAcpiTimerInterrupt, HalAcpiMachineStateInit, HalAcpiQueryFlags,
  HalPicStateIntact, HalRestorePicState, HalPciInterfaceReadConfig, HalPciInterfaceWriteConfig,
  HalSetVectorState, HalGetIOApicVersion, HalSetMaxLegacyPciBusNumber, HalAcpiMaxFunction
}
enum  ACPI_DISPATCH_FUNCTION { AcpiEnableDisableGPEvents, AcpiInitEnableAcpi, AcpiGpeEnableWakeEvents, AcpiMaxFunction }
enum  ACPI_BIOS_E820_TYPE {
  AcpiAddressRangeMemory = 1, AcpiAddressRangeReserved, AcpiAddressRangeACPI, AcpiAddressRangeNVS,
  AcpiAddressRangeMaximum
}

Functions

VOID HaliSetVectorState (IN ULONG Vector, IN ULONG Flags)
NTSTATUS HalpAcpiFindRsdt (OUT PACPI_BIOS_MULTI_NODE *AcpiMulti)

Variables

PPM_DISPATCH_TABLE PmAcpiDispatchTable
PPM_DISPATCH_TABLE PmHalDispatchTable


Define Documentation

#define ACPI_HAL_DISPATCH_SIGNATURE   'ACPI'
 

Definition at line 305 of file ntacpi.h.

#define ACPI_HAL_DISPATCH_VERSION   1
 

Definition at line 306 of file ntacpi.h.

#define AcpiEnableDisableGPEvents   (*(pAcpiEnableDisableGPEvents)PmAcpiDispatchTable->Function[AcpiEnableDisableGPEvents])
 

Definition at line 308 of file ntacpi.h.

#define AcpiGpeEnableWakeEvents   (*(pAcpiGpeEnableWakeEvents)PmAcpiDispatchTable->Function[AcpiGpeEnableWakeEvents])
 

Definition at line 310 of file ntacpi.h.

#define AcpiInitEnableAcpi   (*(pAcpiInitEnableAcpi)PmAcpiDispatchTable->Function[AcpiInitEnableAcpi])
 

Definition at line 309 of file ntacpi.h.

#define BM_RLD   2
 

Definition at line 67 of file ntacpi.h.

#define CTL_IGNORE   0x200
 

Definition at line 68 of file ntacpi.h.

#define CTL_PRESERVE   (SCI_EN + BM_RLD + CTL_IGNORE)
 

Definition at line 72 of file ntacpi.h.

#define HAL_ACPI_DISPATCH_SIGNATURE   'HAL '
 

Definition at line 252 of file ntacpi.h.

#define HAL_ACPI_DISPATCH_VERSION   1
 

Definition at line 253 of file ntacpi.h.

#define HAL_ACPI_PCI_RESOURCES   0x01
 

Definition at line 213 of file ntacpi.h.

#define HAL_ACPI_PRT_SUPPORT   0x02
 

Definition at line 214 of file ntacpi.h.

#define HAL_C1_SUPPORTED   0x01
 

Definition at line 112 of file ntacpi.h.

#define HAL_C2_SUPPORTED   0x02
 

Definition at line 113 of file ntacpi.h.

#define HAL_C3_SUPPORTED   0x04
 

Definition at line 114 of file ntacpi.h.

#define HAL_S1_SUPPORTED   0x08
 

Definition at line 115 of file ntacpi.h.

#define HAL_S2_SUPPORTED   0x10
 

Definition at line 116 of file ntacpi.h.

#define HAL_S3_SUPPORTED   0x20
 

Definition at line 117 of file ntacpi.h.

#define HAL_S4_SUPPORTED   0x40
 

Definition at line 118 of file ntacpi.h.

#define HAL_S5_SUPPORTED   0x80
 

Definition at line 119 of file ntacpi.h.

#define HalAcpiMachineStateInit   ((pHalAcpiMachineStateInit)PmHalDispatchTable->Function[HalAcpiMachineStateInit])
 

Definition at line 257 of file ntacpi.h.

#define HalAcpiTimerInit   ((pHalAcpiTimerInit)PmHalDispatchTable->Function[HalAcpiTimerInit])
 

Definition at line 255 of file ntacpi.h.

#define HalAcpiTimerInterrupt   ((pHalAcpiTimerInterrupt)PmHalDispatchTable->Function[HalAcpiTimerInterrupt])
 

Definition at line 256 of file ntacpi.h.

#define HalGetIOApicVersion   ((pHalGetIOApicVersion)PmHalDispatchTable->Function[HalGetIOApicVersion])
 

Definition at line 263 of file ntacpi.h.

#define HalPciInterfaceReadConfig   ((pHalInterfaceReadWriteConfig)PmHalDispatchTable->Function[HalPciInterfaceReadConfig])
 

Definition at line 260 of file ntacpi.h.

#define HalPciInterfaceWriteConfig   ((pHalInterfaceReadWriteConfig)PmHalDispatchTable->Function[HalPciInterfaceWriteConfig])
 

Definition at line 261 of file ntacpi.h.

#define HalPicStateIntact   ((pHalPicStateIntact)PmHalDispatchTable->Function[HalPicStateIntact])
 

Definition at line 258 of file ntacpi.h.

#define HalRestorePicState   ((pHalRestorePicState)PmHalDispatchTable->Function[HalRestorePicState])
 

Definition at line 259 of file ntacpi.h.

#define HalSetMaxLegacyPciBusNumber   ((pHalSetMaxLegacyPciBusNumber)PmHalDispatchTable->Function[HalSetMaxLegacyPciBusNumber])
 

Definition at line 264 of file ntacpi.h.

#define HalSetVectorState   ((pHalSetVectorState)PmHalDispatchTable->Function[HalSetVectorState])
 

Definition at line 262 of file ntacpi.h.

#define IS_ACTIVE_HIGH vectorFlags   )     !(vectorFlags & VECTOR_ACTIVE_LOW)
 

Definition at line 197 of file ntacpi.h.

#define IS_ACTIVE_LOW vectorFlags   )     (vectorFlags & VECTOR_ACTIVE_LOW)
 

Definition at line 194 of file ntacpi.h.

#define IS_EDGE_TRIGGERED vectorFlags   )     !(vectorFlags & VECTOR_LEVEL)
 

Definition at line 191 of file ntacpi.h.

#define IS_LEVEL_TRIGGERED vectorFlags   )     (vectorFlags & VECTOR_LEVEL)
 

Definition at line 188 of file ntacpi.h.

#define P_LVL2   4
 

Definition at line 51 of file ntacpi.h.

#define PBLK_THT_EN   0x10
 

Definition at line 52 of file ntacpi.h.

#define PM1_PWRBTN_STS   (1 << PM1_PWRBTN_STS_BIT)
 

Definition at line 60 of file ntacpi.h.

#define PM1_PWRBTN_STS_BIT   8
 

Definition at line 59 of file ntacpi.h.

#define SCI_EN   1
 

Definition at line 66 of file ntacpi.h.

#define SLEEP_STATE_FIRMWARE_RESTART   0x2
 

Definition at line 30 of file ntacpi.h.

#define SLEEP_STATE_FLUSH_CACHE   0x1
 

Definition at line 29 of file ntacpi.h.

#define SLEEP_STATE_OFF   0x8
 

Definition at line 32 of file ntacpi.h.

#define SLEEP_STATE_RESTART_OTHER_PROCESSORS   0x10
 

Definition at line 33 of file ntacpi.h.

#define SLEEP_STATE_SAVE_MOTHERBOARD   0x4
 

Definition at line 31 of file ntacpi.h.

#define SLP_EN   0x2000
 

Definition at line 70 of file ntacpi.h.

#define SLP_TYP_SHIFT   10
 

Definition at line 69 of file ntacpi.h.

#define VECTOR_ACTIVE_HIGH   0
 

Definition at line 173 of file ntacpi.h.

#define VECTOR_ACTIVE_LOW   2
 

Definition at line 172 of file ntacpi.h.

#define VECTOR_EDGE   0
 

Definition at line 170 of file ntacpi.h.

#define VECTOR_LEVEL   1
 

Definition at line 169 of file ntacpi.h.

#define VECTOR_MESSAGE   4
 

Definition at line 186 of file ntacpi.h.

#define VECTOR_MODE   1
 

Definition at line 168 of file ntacpi.h.

#define VECTOR_POLARITY   2
 

Definition at line 171 of file ntacpi.h.

#define VECTOR_SIGNAL   0
 

Definition at line 185 of file ntacpi.h.

#define VECTOR_TYPE   4
 

Definition at line 184 of file ntacpi.h.


Typedef Documentation

typedef struct _ACPI_BIOS_MULTI_NODE ACPI_BIOS_MULTI_NODE
 

typedef * PACPI_BIOS_E820_TYPE
 

typedef struct _ACPI_BIOS_MULTI_NODE * PACPI_BIOS_MULTI_NODE
 

typedef * PACPI_E820_ENTRY
 

typedef * PACPI_HAL_DISPATCH_TABLE
 

typedef VOID(* pAcpiEnableDisableGPEvents)(IN BOOLEAN Enable)
 

Definition at line 281 of file ntacpi.h.

typedef VOID(* pAcpiGpeEnableWakeEvents)(VOID)
 

Definition at line 293 of file ntacpi.h.

typedef VOID(* pAcpiInitEnableAcpi)(IN BOOLEAN ReEnable)
 

Definition at line 287 of file ntacpi.h.

typedef * PHAL_ACPI_DISPATCH_TABLE
 

typedef * PHAL_SLEEP_VAL
 

typedef VOID(* pHalAcpiMachineStateInit)(IN PPROCESSOR_INIT ProcInit, IN PHAL_SLEEP_VAL SleepValues, OUT PULONG PicVal)
 

Definition at line 129 of file ntacpi.h.

typedef ULONG(* pHalAcpiQueryFlags)(VOID)
 

Definition at line 137 of file ntacpi.h.

typedef VOID(* pHalAcpiTimerInit)(IN ULONG TimerPort, IN BOOLEAN TimerValExt)
 

Definition at line 96 of file ntacpi.h.

typedef VOID(* pHalAcpiTimerInterrupt)(VOID)
 

Definition at line 103 of file ntacpi.h.

typedef ULONG(* pHalGetIOApicVersion)(IN ULONG ApicNo)
 

Definition at line 218 of file ntacpi.h.

typedef ULONG(* pHalInterfaceReadWriteConfig)(IN PVOID Context, IN UCHAR BusOffset, IN ULONG Slot, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
 

Definition at line 155 of file ntacpi.h.

typedef BOOLEAN(* pHalPicStateIntact)(VOID)
 

Definition at line 143 of file ntacpi.h.

typedef VOID(* pHalRestorePicState)(VOID)
 

Definition at line 149 of file ntacpi.h.

typedef VOID(* pHalSetMaxLegacyPciBusNumber)(IN ULONG BusNumber)
 

Definition at line 224 of file ntacpi.h.

typedef VOID(* pHalSetVectorState)(IN ULONG Vector, IN ULONG Flags)
 

Definition at line 202 of file ntacpi.h.

typedef * PPROCESSOR_INIT
 

typedef * PSLEEP_STATE_CONTEXT
 


Enumeration Type Documentation

enum ACPI_BIOS_E820_TYPE
 

Enumeration values:
AcpiAddressRangeMemory 
AcpiAddressRangeReserved 
AcpiAddressRangeACPI 
AcpiAddressRangeNVS 
AcpiAddressRangeMaximum 

Definition at line 325 of file ntacpi.h.

enum ACPI_DISPATCH_FUNCTION
 

Enumeration values:
AcpiEnableDisableGPEvents 
AcpiInitEnableAcpi 
AcpiGpeEnableWakeEvents 
AcpiMaxFunction 

Definition at line 272 of file ntacpi.h.

enum HAL_DISPATCH_FUNCTION
 

Enumeration values:
HalAcpiTimerInit 
HalAcpiTimerInterrupt 
HalAcpiMachineStateInit 
HalAcpiQueryFlags 
HalPicStateIntact 
HalRestorePicState 
HalPciInterfaceReadConfig 
HalPciInterfaceWriteConfig 
HalSetVectorState 
HalGetIOApicVersion 
HalSetMaxLegacyPciBusNumber 
HalAcpiMaxFunction 

Definition at line 79 of file ntacpi.h.


Function Documentation

VOID HaliSetVectorState IN ULONG  Vector,
IN ULONG  Flags
 

NTSTATUS HalpAcpiFindRsdt OUT PACPI_BIOS_MULTI_NODE AcpiMulti  ) 
 


Variable Documentation

PPM_DISPATCH_TABLE PmAcpiDispatchTable
 

Definition at line 266 of file ntacpi.h.

PPM_DISPATCH_TABLE PmHalDispatchTable
 

Definition at line 267 of file ntacpi.h.


Generated on Sat May 15 19:44:51 2004 for test by doxygen 1.3.7