2008-07-25 14:21:57 +02:00
|
|
|
/** @file
|
2007-07-17 07:36:16 +02:00
|
|
|
ACPI Alert Standard Format Description Table ASF! as described in the ASF2.0 Specification
|
|
|
|
|
2008-10-23 08:37:39 +02:00
|
|
|
Copyright (c) 2006 - 2008, Intel Corporation
|
2007-07-17 07:36:16 +02:00
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
**/
|
|
|
|
|
2008-10-24 06:30:32 +02:00
|
|
|
#ifndef _ALERT_STANDARD_FORMAT_TABLE_H_
|
|
|
|
#define _ALERT_STANDARD_FORMAT_TABLE_H_
|
2007-07-17 07:36:16 +02:00
|
|
|
|
2007-07-19 07:47:35 +02:00
|
|
|
#include <IndustryStandard/Acpi.h>
|
2007-07-17 07:36:16 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Ensure proper structure formats
|
|
|
|
//
|
|
|
|
#pragma pack (1)
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// Information Record header that appears at the beginning of each record
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
|
|
|
UINT8 Type;
|
|
|
|
UINT8 Reserved;
|
|
|
|
UINT16 RecordLength;
|
|
|
|
} EFI_ACPI_ASF_RECORD_HEADER;
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// This structure contains information that identifies the system's type
|
|
|
|
/// and configuration
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 MinWatchDogResetValue;
|
|
|
|
UINT8 MinPollingInterval;
|
|
|
|
UINT16 SystemID;
|
|
|
|
UINT32 IANAManufactureID;
|
|
|
|
UINT8 FeatureFlags;
|
|
|
|
UINT8 Reserved[3];
|
|
|
|
} EFI_ACPI_ASF_INFO;
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
2008-10-23 08:37:39 +02:00
|
|
|
/// ASF Alert Data
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
2008-10-23 08:37:39 +02:00
|
|
|
typedef struct {
|
|
|
|
UINT8 DeviceAddress;
|
|
|
|
UINT8 Command;
|
|
|
|
UINT8 DataMask;
|
|
|
|
UINT8 CompareValue;
|
|
|
|
UINT8 EventSenseType;
|
|
|
|
UINT8 EventType;
|
|
|
|
UINT8 EventOffset;
|
|
|
|
UINT8 EventSourceType;
|
|
|
|
UINT8 EventSeverity;
|
|
|
|
UINT8 SensorNumber;
|
|
|
|
UINT8 Entity;
|
|
|
|
UINT8 EntityInstance;
|
|
|
|
} EFI_ACPI_ASF_ALERTDATA;
|
2007-07-17 07:36:16 +02:00
|
|
|
|
2008-10-23 08:37:39 +02:00
|
|
|
///
|
|
|
|
/// Alert sensors definition
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 AssertionEventBitMask;
|
|
|
|
UINT8 DeassertionEventBitMask;
|
|
|
|
UINT8 NumberOfAlerts;
|
2008-10-23 08:37:39 +02:00
|
|
|
UINT8 ArrayElementLength; ///< For ASF version 1.0 and later, this filed is set to 0x0C
|
|
|
|
///
|
|
|
|
/// EFI_ACPI_ASF_ALERTDATA DeviceArray[ANYSIZE_ARRAY];
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
} EFI_ACPI_ASF_ALRT;
|
|
|
|
|
2008-10-23 08:37:39 +02:00
|
|
|
///
|
|
|
|
/// Alert Control Data
|
|
|
|
///
|
|
|
|
typedef struct {
|
|
|
|
UINT8 Function;
|
|
|
|
UINT8 DeviceAddress;
|
|
|
|
UINT8 Command;
|
|
|
|
UINT8 DataValue;
|
|
|
|
} EFI_ACPI_ASF_CONTROLDATA;
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// Alert Remote Control System Actions
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 NumberOfControls;
|
2008-10-23 08:37:39 +02:00
|
|
|
UINT8 ArrayElementLength; ///< For ASF version 1.0 and later, this filed is set to 0x4
|
2007-07-17 07:36:16 +02:00
|
|
|
UINT16 RctlReserved;
|
2008-10-23 08:37:39 +02:00
|
|
|
///
|
|
|
|
/// EFI_ACPI_ASF_CONTROLDATA; DeviceArray[ANYSIZE_ARRAY];
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
} EFI_ACPI_ASF_RCTL;
|
|
|
|
|
2008-10-23 08:37:39 +02:00
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// Remote Control Capabilities
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 RemoteControlCapabilities[7];
|
|
|
|
UINT8 RMCPCompletionCode;
|
|
|
|
UINT32 RMCPIANA;
|
|
|
|
UINT8 RMCPSpecialCommand;
|
|
|
|
UINT8 RMCPSpecialCommandParameter[2];
|
|
|
|
UINT8 RMCPBootOptions[2];
|
|
|
|
UINT8 RMCPOEMParameters[2];
|
|
|
|
} EFI_ACPI_ASF_RMCP;
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// SMBus Devices with fixed addresses
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 SEEPROMAddress;
|
|
|
|
UINT8 NumberOfDevices;
|
2008-10-23 08:37:39 +02:00
|
|
|
///
|
|
|
|
/// UINT8 FixedSmbusAddresses[ANYSIZE_ARRAY];
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
} EFI_ACPI_ASF_ADDR;
|
|
|
|
|
2008-10-23 08:37:39 +02:00
|
|
|
///
|
|
|
|
/// ASF! Description Table Header
|
|
|
|
///
|
|
|
|
typedef EFI_ACPI_DESCRIPTION_HEADER EFI_ACPI_ASF_DESCRIPTION_HEADER;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// The revision stored in ASF! DESCRIPTION TABLE as BCD value
|
|
|
|
///
|
|
|
|
#define EFI_ACPI_2_0_ASF_DESCRIPTION_TABLE_REVISION 0x20
|
2007-07-17 07:36:16 +02:00
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// "ASF!" ASF Description Table Signature
|
|
|
|
///
|
2008-10-23 08:37:39 +02:00
|
|
|
#define EFI_ACPI_ASF_DESCRIPTION_TABLE_SIGNATURE EFI_SIGNATURE_32 ('A', 'S', 'F', '!')
|
2007-07-17 07:36:16 +02:00
|
|
|
|
|
|
|
#pragma pack ()
|
|
|
|
|
|
|
|
#endif // _ALERT_STANDARD_FORMAT_TABLE_H
|