Check in definition for various ACPI tables and the header files for ACPI spec ranged from 1.0 to 3.0.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3287 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
115
MdePkg/Include/IndustryStandard/AlertStandardFormatTable.h
Normal file
115
MdePkg/Include/IndustryStandard/AlertStandardFormatTable.h
Normal file
@@ -0,0 +1,115 @@
|
||||
/**
|
||||
@file
|
||||
ACPI Alert Standard Format Description Table ASF! as described in the ASF2.0 Specification
|
||||
|
||||
Copyright (c) 2006 - 2007, Intel Corporation
|
||||
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.
|
||||
**/
|
||||
|
||||
#ifndef _ALERT_STANDARD_FORMAT_TABLE_H
|
||||
#define _ALERT_STANDARD_FORMAT_TABLE_H
|
||||
|
||||
#include "Acpi2_0.h"
|
||||
|
||||
//
|
||||
// Ensure proper structure formats
|
||||
//
|
||||
#pragma pack (1)
|
||||
|
||||
//
|
||||
// Information Record header that appears at the beginning of each record
|
||||
//
|
||||
typedef struct {
|
||||
UINT8 Type;
|
||||
UINT8 Reserved;
|
||||
UINT16 RecordLength;
|
||||
} EFI_ACPI_ASF_RECORD_HEADER;
|
||||
|
||||
//
|
||||
// This structure contains information that identifies the system's type
|
||||
// and configuration
|
||||
//
|
||||
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;
|
||||
|
||||
//
|
||||
// Alert sensors definition
|
||||
//
|
||||
#define ASF_ALRT_SENSOR_ARRAY_LENGTH 36
|
||||
|
||||
typedef struct {
|
||||
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
||||
UINT8 AssertionEventBitMask;
|
||||
UINT8 DeassertionEventBitMask;
|
||||
UINT8 NumberOfAlerts;
|
||||
UINT8 ArrayElementLength;
|
||||
UINT8 DeviceArray[ASF_ALRT_SENSOR_ARRAY_LENGTH];
|
||||
} EFI_ACPI_ASF_ALRT;
|
||||
|
||||
//
|
||||
// Alert Remote Control System Actions
|
||||
//
|
||||
#define ASF_RCTL_DEVICES_ARRAY_LENGTH 16
|
||||
typedef struct {
|
||||
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
||||
UINT8 NumberOfControls;
|
||||
UINT8 ArrayElementLength;
|
||||
UINT16 RctlReserved;
|
||||
UINT8 ControlArray[ASF_RCTL_DEVICES_ARRAY_LENGTH];
|
||||
} EFI_ACPI_ASF_RCTL;
|
||||
|
||||
//
|
||||
// Remote Control Capabilities
|
||||
//
|
||||
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;
|
||||
|
||||
//
|
||||
// SMBus Devices with fixed addresses
|
||||
//
|
||||
#define ASF_ADDR_DEVICE_ARRAY_LENGTH 16
|
||||
typedef struct {
|
||||
EFI_ACPI_ASF_RECORD_HEADER RecordHeader;
|
||||
UINT8 SEEPROMAddress;
|
||||
UINT8 NumberOfDevices;
|
||||
UINT8 FixedSmbusAddresses[ASF_ADDR_DEVICE_ARRAY_LENGTH];
|
||||
} EFI_ACPI_ASF_ADDR;
|
||||
|
||||
typedef struct {
|
||||
EFI_ACPI_DESCRIPTION_HEADER Header;
|
||||
EFI_ACPI_ASF_INFO AsfInfo;
|
||||
EFI_ACPI_ASF_ALRT AsfAlert;
|
||||
EFI_ACPI_ASF_RCTL AsfRctl;
|
||||
EFI_ACPI_ASF_RMCP AsfRmcp;
|
||||
EFI_ACPI_ASF_ADDR AsfAddr;
|
||||
} EFI_ACPI_1_0_ASF_DESCRIPTION_TABLE;
|
||||
|
||||
//
|
||||
// "ASF!" ASF Description Table Signature
|
||||
//
|
||||
#define EFI_ACPI_1_0_ASF_DESCRIPTION_TABLE_SIGNATURE 0x21465341
|
||||
|
||||
#pragma pack ()
|
||||
|
||||
#endif // _ALERT_STANDARD_FORMAT_TABLE_H
|
Reference in New Issue
Block a user