2018-03-15 02:13:07 +03:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
|
2011-11-16 07:04:00 +04:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Name: actbl3.h - ACPI Table Definitions
|
|
|
|
*
|
2019-01-14 20:55:25 +03:00
|
|
|
* Copyright (C) 2000 - 2019, Intel Corp.
|
2011-11-16 07:04:00 +04:00
|
|
|
*
|
2018-03-15 02:13:07 +03:00
|
|
|
*****************************************************************************/
|
2011-11-16 07:04:00 +04:00
|
|
|
|
|
|
|
#ifndef __ACTBL3_H__
|
|
|
|
#define __ACTBL3_H__
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* Additional ACPI Tables
|
2011-11-16 07:04:00 +04:00
|
|
|
*
|
|
|
|
* These tables are not consumed directly by the ACPICA subsystem, but are
|
|
|
|
* included here to support device drivers and the AML disassembler.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Values for description table header signatures for tables defined in this
|
|
|
|
* file. Useful because they make it more difficult to inadvertently type in
|
|
|
|
* the wrong signature.
|
|
|
|
*/
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
|
|
|
|
#define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */
|
|
|
|
#define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
|
|
|
|
#define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
|
|
|
|
#define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */
|
2015-05-21 05:30:11 +03:00
|
|
|
#define ACPI_SIG_STAO "STAO" /* Status Override table */
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
|
|
|
|
#define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */
|
|
|
|
#define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
|
|
|
|
#define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
|
|
|
|
#define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
|
|
|
|
#define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
|
|
|
|
#define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
|
|
|
|
#define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
|
2015-05-21 05:30:44 +03:00
|
|
|
#define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SIG_WSMT "WSMT" /* Windows SMM Security Migrations Table */
|
2015-05-21 05:30:24 +03:00
|
|
|
#define ACPI_SIG_XENV "XENV" /* Xen Environment table */
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SIG_XXXX "XXXX" /* Intermediate AML header for ASL/ASL+ converter */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* All tables must be byte-packed to match the ACPI specification, since
|
|
|
|
* the tables are provided by the system BIOS.
|
|
|
|
*/
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
/*
|
2012-08-17 09:07:54 +04:00
|
|
|
* Note: C bitfields are not used for this reason:
|
|
|
|
*
|
|
|
|
* "Bitfields are great and easy to read, but unfortunately the C language
|
|
|
|
* does not specify the layout of bitfields in memory, which means they are
|
|
|
|
* essentially useless for dealing with packed data in on-disk formats or
|
|
|
|
* binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
|
|
|
|
* this decision was a design error in C. Ritchie could have picked an order
|
|
|
|
* and stuck with it." Norman Ramsey.
|
|
|
|
* See http://stackoverflow.com/a/1053662/41661
|
2011-11-16 07:04:00 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* SLIC - Software Licensing Description Table
|
|
|
|
*
|
|
|
|
* Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)",
|
|
|
|
* November 29, 2011. Copyright 2011 Microsoft
|
2011-11-16 07:04:00 +04:00
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Basic SLIC table is only the common ACPI header */
|
|
|
|
|
|
|
|
struct acpi_table_slic {
|
2011-11-16 07:04:00 +04:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
};
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* SLIT - System Locality Distance Information Table
|
|
|
|
* Version 1
|
2011-11-16 07:04:00 +04:00
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_slit {
|
2011-11-16 07:04:00 +04:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
2018-02-16 00:09:26 +03:00
|
|
|
u64 locality_count;
|
|
|
|
u8 entry[1]; /* Real size = localities^2 */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* SPCR - Serial Port Console Redirection table
|
|
|
|
* Version 2
|
|
|
|
*
|
|
|
|
* Conforms to "Serial Port Console Redirection Table",
|
|
|
|
* Version 1.03, August 10, 2015
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2015-05-21 05:31:37 +03:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_spcr {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u8 interface_type; /* 0=full 16550, 1=subset of 16550 */
|
|
|
|
u8 reserved[3];
|
|
|
|
struct acpi_generic_address serial_port;
|
|
|
|
u8 interrupt_type;
|
|
|
|
u8 pc_interrupt;
|
|
|
|
u32 interrupt;
|
|
|
|
u8 baud_rate;
|
|
|
|
u8 parity;
|
|
|
|
u8 stop_bits;
|
|
|
|
u8 flow_control;
|
|
|
|
u8 terminal_type;
|
|
|
|
u8 reserved1;
|
|
|
|
u16 pci_device_id;
|
|
|
|
u16 pci_vendor_id;
|
|
|
|
u8 pci_bus;
|
|
|
|
u8 pci_device;
|
|
|
|
u8 pci_function;
|
|
|
|
u32 pci_flags;
|
|
|
|
u8 pci_segment;
|
|
|
|
u32 reserved2;
|
2015-05-21 05:31:37 +03:00
|
|
|
};
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Masks for pci_flags field above */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SPCR_DO_NOT_DISABLE (1)
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Values for Interface Type: See the definition of the DBG2 table */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* SPMI - Server Platform Management Interface table
|
|
|
|
* Version 5
|
|
|
|
*
|
|
|
|
* Conforms to "Intelligent Platform Management Interface Specification
|
|
|
|
* Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
|
|
|
|
* June 12, 2009 markup.
|
2011-11-16 07:04:00 +04:00
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_spmi {
|
2011-11-16 07:04:00 +04:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
2018-02-16 00:09:26 +03:00
|
|
|
u8 interface_type;
|
|
|
|
u8 reserved; /* Must be 1 */
|
|
|
|
u16 spec_revision; /* Version of IPMI */
|
|
|
|
u8 interrupt_type;
|
|
|
|
u8 gpe_number; /* GPE assigned */
|
|
|
|
u8 reserved1;
|
|
|
|
u8 pci_device_flag;
|
|
|
|
u32 interrupt;
|
|
|
|
struct acpi_generic_address ipmi_register;
|
|
|
|
u8 pci_segment;
|
|
|
|
u8 pci_bus;
|
|
|
|
u8 pci_device;
|
|
|
|
u8 pci_function;
|
|
|
|
u8 reserved2;
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Values for interface_type above */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
enum acpi_spmi_interface_types {
|
|
|
|
ACPI_SPMI_NOT_USED = 0,
|
|
|
|
ACPI_SPMI_KEYBOARD = 1,
|
|
|
|
ACPI_SPMI_SMI = 2,
|
|
|
|
ACPI_SPMI_BLOCK_TRANSFER = 3,
|
|
|
|
ACPI_SPMI_SMBUS = 4,
|
|
|
|
ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* SRAT - System Resource Affinity Table
|
|
|
|
* Version 3
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_srat {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u32 table_revision; /* Must be value '1' */
|
|
|
|
u64 reserved; /* Reserved, must be zero */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Values for subtable type in struct acpi_subtable_header */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
enum acpi_srat_type {
|
|
|
|
ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
|
|
|
|
ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
|
|
|
|
ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
|
|
|
|
ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
|
|
|
|
ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */
|
2019-02-16 00:36:12 +03:00
|
|
|
ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5, /* ACPI 6.3 */
|
|
|
|
ACPI_SRAT_TYPE_RESERVED = 6 /* 5 and greater are reserved */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
2018-02-16 00:09:26 +03:00
|
|
|
* SRAT Subtables, correspond to Type in struct acpi_subtable_header
|
2011-11-16 07:04:00 +04:00
|
|
|
*/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* 0: Processor Local APIC/SAPIC Affinity */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_srat_cpu_affinity {
|
|
|
|
struct acpi_subtable_header header;
|
|
|
|
u8 proximity_domain_lo;
|
|
|
|
u8 apic_id;
|
|
|
|
u32 flags;
|
|
|
|
u8 local_sapic_eid;
|
|
|
|
u8 proximity_domain_hi[3];
|
|
|
|
u32 clock_domain;
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Flags */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SRAT_CPU_USE_AFFINITY (1) /* 00: Use affinity structure */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* 1: Memory Affinity */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_srat_mem_affinity {
|
|
|
|
struct acpi_subtable_header header;
|
|
|
|
u32 proximity_domain;
|
|
|
|
u16 reserved; /* Reserved, must be zero */
|
|
|
|
u64 base_address;
|
|
|
|
u64 length;
|
|
|
|
u32 reserved1;
|
|
|
|
u32 flags;
|
|
|
|
u64 reserved2; /* Reserved, must be zero */
|
2014-07-30 08:21:58 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Flags */
|
2014-07-30 08:21:58 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */
|
|
|
|
#define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
|
|
|
|
#define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */
|
2014-07-30 08:21:58 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_srat_x2apic_cpu_affinity {
|
|
|
|
struct acpi_subtable_header header;
|
|
|
|
u16 reserved; /* Reserved, must be zero */
|
|
|
|
u32 proximity_domain;
|
|
|
|
u32 apic_id;
|
|
|
|
u32 flags;
|
|
|
|
u32 clock_domain;
|
|
|
|
u32 reserved2;
|
2014-07-30 08:21:58 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Flags for struct acpi_srat_cpu_affinity and struct acpi_srat_x2apic_cpu_affinity */
|
2014-07-30 08:21:58 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
|
2014-07-30 08:21:58 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* 3: GICC Affinity (ACPI 5.1) */
|
2014-09-02 04:27:19 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_srat_gicc_affinity {
|
|
|
|
struct acpi_subtable_header header;
|
|
|
|
u32 proximity_domain;
|
|
|
|
u32 acpi_processor_uid;
|
|
|
|
u32 flags;
|
|
|
|
u32 clock_domain;
|
|
|
|
};
|
2014-09-02 04:27:19 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Flags for struct acpi_srat_gicc_affinity */
|
2014-07-30 08:21:58 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */
|
2014-07-30 08:21:58 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* 4: GCC ITS Affinity (ACPI 6.2) */
|
2014-07-30 08:21:58 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_srat_gic_its_affinity {
|
|
|
|
struct acpi_subtable_header header;
|
|
|
|
u32 proximity_domain;
|
|
|
|
u16 reserved;
|
|
|
|
u32 its_id;
|
2014-07-30 08:21:58 +04:00
|
|
|
};
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2019-02-16 00:36:12 +03:00
|
|
|
/* 5: Generic Initiator Affinity Structure (ACPI 6.3) */
|
|
|
|
|
|
|
|
struct acpi_srat_generic_affinity {
|
|
|
|
struct acpi_subtable_header header;
|
|
|
|
u8 reserved;
|
|
|
|
u8 device_handle_type;
|
|
|
|
u32 proximity_domain;
|
|
|
|
u8 device_handle[16];
|
|
|
|
u32 flags;
|
|
|
|
u32 reserved1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Flags for struct acpi_srat_generic_affinity */
|
|
|
|
|
|
|
|
#define ACPI_SRAT_GENERIC_AFFINITY_ENABLED (1) /* 00: Use affinity structure */
|
|
|
|
|
2011-11-16 07:04:00 +04:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* STAO - Status Override Table (_STA override) - ACPI 6.0
|
2011-11-16 07:04:00 +04:00
|
|
|
* Version 1
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* Conforms to "ACPI Specification for Status Override Table"
|
|
|
|
* 6 January 2015
|
|
|
|
*
|
2011-11-16 07:04:00 +04:00
|
|
|
******************************************************************************/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_stao {
|
2011-11-16 07:04:00 +04:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
2018-02-16 00:09:26 +03:00
|
|
|
u8 ignore_uart;
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* TCPA - Trusted Computing Platform Alliance table
|
|
|
|
* Version 2
|
|
|
|
*
|
|
|
|
* TCG Hardware Interface Table for TPM 1.2 Clients and Servers
|
|
|
|
*
|
|
|
|
* Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
|
|
|
|
* Version 1.2, Revision 8
|
|
|
|
* February 27, 2017
|
|
|
|
*
|
|
|
|
* NOTE: There are two versions of the table with the same signature --
|
|
|
|
* the client version and the server version. The common platform_class
|
|
|
|
* field is used to differentiate the two types of tables.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_tcpa_hdr {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u16 platform_class;
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*
|
|
|
|
* Values for platform_class above.
|
|
|
|
* This is how the client and server subtables are differentiated
|
|
|
|
*/
|
|
|
|
#define ACPI_TCPA_CLIENT_TABLE 0
|
|
|
|
#define ACPI_TCPA_SERVER_TABLE 1
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_tcpa_client {
|
|
|
|
u32 minimum_log_length; /* Minimum length for the event log area */
|
|
|
|
u64 log_address; /* Address of the event log area */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_tcpa_server {
|
2012-10-31 06:27:56 +04:00
|
|
|
u16 reserved;
|
2018-02-16 00:09:26 +03:00
|
|
|
u64 minimum_log_length; /* Minimum length for the event log area */
|
|
|
|
u64 log_address; /* Address of the event log area */
|
|
|
|
u16 spec_revision;
|
|
|
|
u8 device_flags;
|
|
|
|
u8 interrupt_flags;
|
|
|
|
u8 gpe_number;
|
|
|
|
u8 reserved2[3];
|
|
|
|
u32 global_interrupt;
|
|
|
|
struct acpi_generic_address address;
|
|
|
|
u32 reserved3;
|
|
|
|
struct acpi_generic_address config_address;
|
|
|
|
u8 group;
|
|
|
|
u8 bus; /* PCI Bus/Segment/Function numbers */
|
|
|
|
u8 device;
|
|
|
|
u8 function;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Values for device_flags above */
|
|
|
|
|
|
|
|
#define ACPI_TCPA_PCI_DEVICE (1)
|
|
|
|
#define ACPI_TCPA_BUS_PNP (1<<1)
|
|
|
|
#define ACPI_TCPA_ADDRESS_VALID (1<<2)
|
|
|
|
|
|
|
|
/* Values for interrupt_flags above */
|
|
|
|
|
|
|
|
#define ACPI_TCPA_INTERRUPT_MODE (1)
|
|
|
|
#define ACPI_TCPA_INTERRUPT_POLARITY (1<<1)
|
|
|
|
#define ACPI_TCPA_SCI_VIA_GPE (1<<2)
|
|
|
|
#define ACPI_TCPA_GLOBAL_INTERRUPT (1<<3)
|
2011-11-16 07:04:00 +04:00
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
|
|
|
|
* Version 4
|
|
|
|
*
|
|
|
|
* TCG Hardware Interface Table for TPM 2.0 Clients and Servers
|
|
|
|
*
|
|
|
|
* Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
|
|
|
|
* Version 1.2, Revision 8
|
|
|
|
* February 27, 2017
|
2011-11-16 07:04:00 +04:00
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2018-11-05 20:43:53 +03:00
|
|
|
/* Revision 3 */
|
|
|
|
|
|
|
|
struct acpi_table_tpm23 {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u32 reserved;
|
|
|
|
u64 control_address;
|
|
|
|
u32 start_method;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Value for start_method above */
|
|
|
|
|
|
|
|
#define ACPI_TPM23_ACPI_START_METHOD 2
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Optional trailer for revision 3. If start method is 2, there is a 4 byte
|
|
|
|
* reserved area of all zeros.
|
|
|
|
*/
|
|
|
|
struct acpi_tmp23_trailer {
|
|
|
|
u32 reserved;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Revision 4 */
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_tpm2 {
|
2011-11-16 07:04:00 +04:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
2018-02-16 00:09:26 +03:00
|
|
|
u16 platform_class;
|
|
|
|
u16 reserved;
|
|
|
|
u64 control_address;
|
|
|
|
u32 start_method;
|
|
|
|
|
|
|
|
/* Platform-specific data follows */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Values for start_method above */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_TPM2_NOT_ALLOWED 0
|
|
|
|
#define ACPI_TPM2_RESERVED1 1
|
|
|
|
#define ACPI_TPM2_START_METHOD 2
|
|
|
|
#define ACPI_TPM2_RESERVED3 3
|
|
|
|
#define ACPI_TPM2_RESERVED4 4
|
|
|
|
#define ACPI_TPM2_RESERVED5 5
|
|
|
|
#define ACPI_TPM2_MEMORY_MAPPED 6
|
|
|
|
#define ACPI_TPM2_COMMAND_BUFFER 7
|
|
|
|
#define ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD 8
|
|
|
|
#define ACPI_TPM2_RESERVED9 9
|
|
|
|
#define ACPI_TPM2_RESERVED10 10
|
|
|
|
#define ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC 11 /* V1.2 Rev 8 */
|
|
|
|
#define ACPI_TPM2_RESERVED 12
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Optional trailer appears after any start_method subtables */
|
2014-01-08 09:43:57 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_tpm2_trailer {
|
|
|
|
u8 method_parameters[12];
|
|
|
|
u32 minimum_log_length; /* Minimum length for the event log area */
|
|
|
|
u64 log_address; /* Address of the event log area */
|
2014-01-08 09:43:57 +04:00
|
|
|
};
|
|
|
|
|
2011-11-16 07:04:00 +04:00
|
|
|
/*
|
2018-02-16 00:09:26 +03:00
|
|
|
* Subtables (start_method-specific)
|
2011-11-16 07:04:00 +04:00
|
|
|
*/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* 11: Start Method for ARM SMC (V1.2 Rev 8) */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_tpm2_arm_smc {
|
|
|
|
u32 global_interrupt;
|
|
|
|
u8 interrupt_flags;
|
|
|
|
u8 operation_flags;
|
|
|
|
u16 reserved;
|
|
|
|
u32 function_id;
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Values for interrupt_flags above */
|
2014-07-30 08:22:05 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_TPM2_INTERRUPT_SUPPORT (1)
|
2014-07-30 08:22:05 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Values for operation_flags above */
|
2016-05-05 07:58:05 +03:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_TPM2_IDLE_SUPPORT (1)
|
2017-06-05 11:39:08 +03:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* UEFI - UEFI Boot optimization Table
|
|
|
|
* Version 1
|
|
|
|
*
|
|
|
|
* Conforms to "Unified Extensible Firmware Interface Specification",
|
|
|
|
* Version 2.3, May 8, 2009
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2017-06-05 11:39:08 +03:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_uefi {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u8 identifier[16]; /* UUID identifier */
|
|
|
|
u16 data_offset; /* Offset of remaining data in table */
|
2017-06-05 11:39:08 +03:00
|
|
|
};
|
|
|
|
|
2011-11-16 07:04:00 +04:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* VRTC - Virtual Real Time Clock Table
|
2011-11-16 07:04:00 +04:00
|
|
|
* Version 1
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* Conforms to "Simple Firmware Interface Specification",
|
|
|
|
* Draft 0.8.2, Oct 19, 2010
|
|
|
|
* NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
|
|
|
|
*
|
2011-11-16 07:04:00 +04:00
|
|
|
******************************************************************************/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_vrtc {
|
2011-11-16 07:04:00 +04:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* VRTC entry */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_vrtc_entry {
|
|
|
|
struct acpi_generic_address physical_address;
|
|
|
|
u32 irq;
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* WAET - Windows ACPI Emulated devices Table
|
|
|
|
* Version 1
|
|
|
|
*
|
|
|
|
* Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_waet {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u32 flags;
|
|
|
|
};
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Masks for Flags field above */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
|
|
|
|
#define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* WDAT - Watchdog Action Table
|
|
|
|
* Version 1
|
|
|
|
*
|
|
|
|
* Conforms to "Hardware Watchdog Timers Design Specification",
|
|
|
|
* Copyright 2006 Microsoft Corporation.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_wdat {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u32 header_length; /* Watchdog Header Length */
|
|
|
|
u16 pci_segment; /* PCI Segment number */
|
|
|
|
u8 pci_bus; /* PCI Bus number */
|
|
|
|
u8 pci_device; /* PCI Device number */
|
|
|
|
u8 pci_function; /* PCI Function number */
|
|
|
|
u8 reserved[3];
|
|
|
|
u32 timer_period; /* Period of one timer count (msec) */
|
|
|
|
u32 max_count; /* Maximum counter value supported */
|
|
|
|
u32 min_count; /* Minimum counter value */
|
|
|
|
u8 flags;
|
|
|
|
u8 reserved2[3];
|
|
|
|
u32 entries; /* Number of watchdog entries that follow */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Masks for Flags field above */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_WDAT_ENABLED (1)
|
|
|
|
#define ACPI_WDAT_STOPPED 0x80
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* WDAT Instruction Entries (actions) */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_wdat_entry {
|
|
|
|
u8 action;
|
|
|
|
u8 instruction;
|
2011-11-16 07:04:00 +04:00
|
|
|
u16 reserved;
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_generic_address register_region;
|
|
|
|
u32 value; /* Value used with Read/Write register */
|
|
|
|
u32 mask; /* Bitmask required for this register instruction */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Values for Action field above */
|
|
|
|
|
|
|
|
enum acpi_wdat_actions {
|
|
|
|
ACPI_WDAT_RESET = 1,
|
|
|
|
ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
|
|
|
|
ACPI_WDAT_GET_COUNTDOWN = 5,
|
|
|
|
ACPI_WDAT_SET_COUNTDOWN = 6,
|
|
|
|
ACPI_WDAT_GET_RUNNING_STATE = 8,
|
|
|
|
ACPI_WDAT_SET_RUNNING_STATE = 9,
|
|
|
|
ACPI_WDAT_GET_STOPPED_STATE = 10,
|
|
|
|
ACPI_WDAT_SET_STOPPED_STATE = 11,
|
|
|
|
ACPI_WDAT_GET_REBOOT = 16,
|
|
|
|
ACPI_WDAT_SET_REBOOT = 17,
|
|
|
|
ACPI_WDAT_GET_SHUTDOWN = 18,
|
|
|
|
ACPI_WDAT_SET_SHUTDOWN = 19,
|
|
|
|
ACPI_WDAT_GET_STATUS = 32,
|
|
|
|
ACPI_WDAT_SET_STATUS = 33,
|
|
|
|
ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Values for Instruction field above */
|
|
|
|
|
|
|
|
enum acpi_wdat_instructions {
|
|
|
|
ACPI_WDAT_READ_VALUE = 0,
|
|
|
|
ACPI_WDAT_READ_COUNTDOWN = 1,
|
|
|
|
ACPI_WDAT_WRITE_VALUE = 2,
|
|
|
|
ACPI_WDAT_WRITE_COUNTDOWN = 3,
|
|
|
|
ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
|
|
|
|
ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
|
2011-11-16 07:04:00 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* WDDT - Watchdog Descriptor Table
|
2011-11-16 07:04:00 +04:00
|
|
|
* Version 1
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
|
|
|
|
* Version 001, September 2002
|
|
|
|
*
|
2011-11-16 07:04:00 +04:00
|
|
|
******************************************************************************/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_wddt {
|
2011-11-16 07:04:00 +04:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
2018-02-16 00:09:26 +03:00
|
|
|
u16 spec_version;
|
|
|
|
u16 table_version;
|
|
|
|
u16 pci_vendor_id;
|
|
|
|
struct acpi_generic_address address;
|
|
|
|
u16 max_count; /* Maximum counter value supported */
|
|
|
|
u16 min_count; /* Minimum counter value supported */
|
|
|
|
u16 period;
|
2011-11-16 07:04:00 +04:00
|
|
|
u16 status;
|
2018-02-16 00:09:26 +03:00
|
|
|
u16 capability;
|
2013-03-08 13:20:21 +04:00
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Flags for Status field above */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_WDDT_AVAILABLE (1)
|
|
|
|
#define ACPI_WDDT_ACTIVE (1<<1)
|
|
|
|
#define ACPI_WDDT_TCO_OS_OWNED (1<<2)
|
|
|
|
#define ACPI_WDDT_USER_RESET (1<<11)
|
|
|
|
#define ACPI_WDDT_WDT_RESET (1<<12)
|
|
|
|
#define ACPI_WDDT_POWER_FAIL (1<<13)
|
|
|
|
#define ACPI_WDDT_UNKNOWN_RESET (1<<14)
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/* Flags for Capability field above */
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
#define ACPI_WDDT_AUTO_RESET (1)
|
|
|
|
#define ACPI_WDDT_ALERT_SUPPORT (1<<1)
|
2011-11-16 07:04:00 +04:00
|
|
|
|
2015-05-21 05:30:11 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* WDRT - Watchdog Resource Table
|
2015-05-21 05:30:11 +03:00
|
|
|
* Version 1
|
|
|
|
*
|
2018-02-16 00:09:26 +03:00
|
|
|
* Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
|
|
|
|
* Version 1.01, August 28, 2006
|
2015-05-21 05:30:11 +03:00
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_table_wdrt {
|
2015-05-21 05:30:11 +03:00
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
2018-02-16 00:09:26 +03:00
|
|
|
struct acpi_generic_address control_register;
|
|
|
|
struct acpi_generic_address count_register;
|
|
|
|
u16 pci_device_id;
|
|
|
|
u16 pci_vendor_id;
|
|
|
|
u8 pci_bus; /* PCI Bus number */
|
|
|
|
u8 pci_device; /* PCI Device number */
|
|
|
|
u8 pci_function; /* PCI Function number */
|
|
|
|
u8 pci_segment; /* PCI Segment number */
|
|
|
|
u16 max_count; /* Maximum counter value supported */
|
|
|
|
u8 units;
|
2015-05-21 05:30:11 +03:00
|
|
|
};
|
|
|
|
|
2015-05-21 05:30:44 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* WPBT - Windows Platform Environment Table (ACPI 6.0)
|
|
|
|
* Version 1
|
|
|
|
*
|
|
|
|
* Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
struct acpi_table_wpbt {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u32 handoff_size;
|
|
|
|
u64 handoff_address;
|
|
|
|
u8 layout;
|
|
|
|
u8 type;
|
|
|
|
u16 arguments_length;
|
|
|
|
};
|
|
|
|
|
2018-02-16 00:09:26 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* WSMT - Windows SMM Security Migrations Table
|
|
|
|
* Version 1
|
|
|
|
*
|
|
|
|
* Conforms to "Windows SMM Security Migrations Table",
|
|
|
|
* Version 1.0, April 18, 2016
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
struct acpi_table_wsmt {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u32 protection_flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Flags for protection_flags field above */
|
|
|
|
|
|
|
|
#define ACPI_WSMT_FIXED_COMM_BUFFERS (1)
|
|
|
|
#define ACPI_WSMT_COMM_BUFFER_NESTED_PTR_PROTECTION (2)
|
|
|
|
#define ACPI_WSMT_SYSTEM_RESOURCE_PROTECTION (4)
|
|
|
|
|
2015-05-21 05:30:24 +03:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* XENV - Xen Environment Table (ACPI 6.0)
|
|
|
|
* Version 1
|
|
|
|
*
|
|
|
|
* Conforms to "ACPI Specification for Xen Environment Table" 4 January 2015
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
struct acpi_table_xenv {
|
|
|
|
struct acpi_table_header header; /* Common ACPI table header */
|
|
|
|
u64 grant_table_address;
|
|
|
|
u64 grant_table_size;
|
|
|
|
u32 event_interrupt;
|
|
|
|
u8 event_flags;
|
|
|
|
};
|
|
|
|
|
2014-03-05 10:12:01 +04:00
|
|
|
/* Reset to default packing */
|
|
|
|
|
|
|
|
#pragma pack()
|
2011-11-16 07:04:00 +04:00
|
|
|
|
|
|
|
#endif /* __ACTBL3_H__ */
|