2018-06-27 15:11:33 +02:00
|
|
|
/** @file
|
2008-11-19 16:14:25 +01:00
|
|
|
ACPI Alert Standard Format Description Table ASF! as described in the ASF2.0 Specification
|
2007-07-17 07:36:16 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-07-17 07:36:16 +02:00
|
|
|
**/
|
|
|
|
|
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
|
|
|
|
2008-11-11 23:21:08 +01: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 {
|
2021-12-05 23:54:05 +01:00
|
|
|
UINT8 Type;
|
|
|
|
UINT8 Reserved;
|
|
|
|
UINT16 RecordLength;
|
2007-07-17 07:36:16 +02:00
|
|
|
} EFI_ACPI_ASF_RECORD_HEADER;
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
2018-06-27 15:11:33 +02:00
|
|
|
/// This structure contains information that identifies the system's type
|
2008-08-14 05:21:03 +02:00
|
|
|
/// and configuration
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
2021-12-05 23:54:05 +01:00
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 MinWatchDogResetValue;
|
|
|
|
UINT8 MinPollingInterval;
|
|
|
|
UINT16 SystemID;
|
|
|
|
UINT32 IANAManufactureID;
|
|
|
|
UINT8 FeatureFlags;
|
|
|
|
UINT8 Reserved[3];
|
2007-07-17 07:36:16 +02:00
|
|
|
} 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 {
|
2021-12-05 23:54:05 +01:00
|
|
|
UINT8 DeviceAddress;
|
|
|
|
UINT8 Command;
|
|
|
|
UINT8 DataMask;
|
|
|
|
UINT8 CompareValue;
|
|
|
|
UINT8 EventSenseType;
|
|
|
|
UINT8 EventType;
|
|
|
|
UINT8 EventOffset;
|
|
|
|
UINT8 EventSourceType;
|
|
|
|
UINT8 EventSeverity;
|
|
|
|
UINT8 SensorNumber;
|
|
|
|
UINT8 Entity;
|
|
|
|
UINT8 EntityInstance;
|
2008-10-23 08:37:39 +02:00
|
|
|
} 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 {
|
2021-12-05 23:54:05 +01:00
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 AssertionEventBitMask;
|
|
|
|
UINT8 DeassertionEventBitMask;
|
|
|
|
UINT8 NumberOfAlerts;
|
|
|
|
UINT8 ArrayElementLength; ///< For ASF version 1.0 and later, this filed is set to 0x0C
|
2008-10-23 08:37:39 +02:00
|
|
|
///
|
|
|
|
/// 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 {
|
2021-12-05 23:54:05 +01:00
|
|
|
UINT8 Function;
|
|
|
|
UINT8 DeviceAddress;
|
|
|
|
UINT8 Command;
|
|
|
|
UINT8 DataValue;
|
2018-06-27 15:11:33 +02:00
|
|
|
} EFI_ACPI_ASF_CONTROLDATA;
|
2008-10-23 08:37:39 +02:00
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// Alert Remote Control System Actions
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
2021-12-05 23:54:05 +01:00
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 NumberOfControls;
|
|
|
|
UINT8 ArrayElementLength; ///< For ASF version 1.0 and later, this filed is set to 0x4
|
|
|
|
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-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// Remote Control Capabilities
|
|
|
|
///
|
2007-07-17 07:36:16 +02:00
|
|
|
typedef struct {
|
2021-12-05 23:54:05 +01:00
|
|
|
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
|
|
|
UINT8 RemoteControlCapabilities[7];
|
|
|
|
UINT8 RMCPCompletionCode;
|
|
|
|
UINT32 RMCPIANA;
|
|
|
|
UINT8 RMCPSpecialCommand;
|
|
|
|
UINT8 RMCPSpecialCommandParameter[2];
|
|
|
|
UINT8 RMCPBootOptions[2];
|
|
|
|
UINT8 RMCPOEMParameters[2];
|
2007-07-17 07:36:16 +02:00
|
|
|
} 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 {
|
2021-12-05 23:54:05 +01:00
|
|
|
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
|
|
|
|
///
|
2021-12-05 23:54:05 +01:00
|
|
|
#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-27 07:59:25 +01:00
|
|
|
#define EFI_ACPI_ASF_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32 ('A', 'S', 'F', '!')
|
2007-07-17 07:36:16 +02:00
|
|
|
|
2008-11-11 23:21:08 +01:00
|
|
|
#pragma pack ()
|
|
|
|
|
|
|
|
#endif // _ALERT_STANDARD_FORMAT_TABLE_H
|