1 /******************************************************************************
3 * Name: actbl3.h - ACPI Table Definitions
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2012, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
48 /*******************************************************************************
50 * Additional ACPI Tables (3)
52 * These tables are not consumed directly by the ACPICA subsystem, but are
53 * included here to support device drivers and the AML disassembler.
55 * The tables in this file are fully defined within the ACPI specification.
57 ******************************************************************************/
61 * Values for description table header signatures for tables defined in this
62 * file. Useful because they make it more difficult to inadvertently type in
63 * the wrong signature.
65 #define ACPI_SIG_BGRT "BGRT" /* Boot Graphics Resource Table */
66 #define ACPI_SIG_DRTM "DRTM" /* Dynamic Root of Trust for Measurement table */
67 #define ACPI_SIG_FPDT "FPDT" /* Firmware Performance Data Table */
68 #define ACPI_SIG_GTDT "GTDT" /* Generic Timer Description Table */
69 #define ACPI_SIG_MPST "MPST" /* Memory Power State Table */
70 #define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */
71 #define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */
72 #define ACPI_SIG_RASF "RASF" /* RAS Feature table */
74 #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */
75 #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */
77 /* Reserved table signatures */
79 #define ACPI_SIG_CSRT "CSRT" /* Core System Resources Table */
80 #define ACPI_SIG_DBG2 "DBG2" /* Debug Port table 2 */
81 #define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
82 #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
83 #define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
86 * All tables must be byte-packed to match the ACPI specification, since
87 * the tables are provided by the system BIOS.
92 * Note about bitfields: The UINT8 type is used for bitfields in ACPI tables.
93 * This is the only type that is even remotely portable. Anything else is not
94 * portable, so do not use any other bitfield types.
98 /*******************************************************************************
100 * BGRT - Boot Graphics Resource Table (ACPI 5.0)
103 ******************************************************************************/
105 typedef struct acpi_table_bgrt
107 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
118 /*******************************************************************************
120 * DRTM - Dynamic Root of Trust for Measurement table
122 ******************************************************************************/
124 typedef struct acpi_table_drtm
126 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
127 UINT64 EntryBaseAddress;
129 UINT32 EntryAddress32;
130 UINT64 EntryAddress64;
132 UINT64 LogAreaAddress;
133 UINT32 LogAreaLength;
134 UINT64 ArchDependentAddress;
139 /* 1) Validated Tables List */
141 typedef struct acpi_drtm_vtl_list
143 UINT32 ValidatedTableListCount;
145 } ACPI_DRTM_VTL_LIST;
147 /* 2) Resources List */
149 typedef struct acpi_drtm_resource_list
151 UINT32 ResourceListCount;
153 } ACPI_DRTM_RESOURCE_LIST;
155 /* 3) Platform-specific Identifiers List */
157 typedef struct acpi_drtm_id_list
164 /*******************************************************************************
166 * FPDT - Firmware Performance Data Table (ACPI 5.0)
169 ******************************************************************************/
171 typedef struct acpi_table_fpdt
173 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
178 /* FPDT subtable header */
180 typedef struct acpi_fpdt_header
188 /* Values for Type field above */
192 ACPI_FPDT_TYPE_BOOT = 0,
193 ACPI_FPDT_TYPE_S3PERF = 1,
201 /* 0: Firmware Basic Boot Performance Record */
203 typedef struct acpi_fpdt_boot
205 ACPI_FPDT_HEADER Header;
210 UINT64 ExitServicesEntry;
211 UINT64 ExitServicesExit;
216 /* 1: S3 Performance Table Pointer Record */
218 typedef struct acpi_fpdt_s3pt_ptr
220 ACPI_FPDT_HEADER Header;
224 } ACPI_FPDT_S3PT_PTR;
228 * S3PT - S3 Performance Table. This table is pointed to by the
229 * FPDT S3 Pointer Record above.
231 typedef struct acpi_table_s3pt
233 UINT8 Signature[4]; /* "S3PT" */
242 typedef struct acpi_s3pt_header
250 /* Values for Type field above */
254 ACPI_S3PT_TYPE_RESUME = 0,
255 ACPI_S3PT_TYPE_SUSPEND = 1,
258 typedef struct acpi_s3pt_resume
260 ACPI_S3PT_HEADER Header;
263 UINT64 AverageResume;
267 typedef struct acpi_s3pt_suspend
269 ACPI_S3PT_HEADER Header;
276 /*******************************************************************************
278 * GTDT - Generic Timer Description Table (ACPI 5.0)
281 ******************************************************************************/
283 typedef struct acpi_table_gtdt
285 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
288 UINT32 SecurePl1Interrupt;
289 UINT32 SecurePl1Flags;
290 UINT32 NonSecurePl1Interrupt;
291 UINT32 NonSecurePl1Flags;
292 UINT32 VirtualTimerInterrupt;
293 UINT32 VirtualTimerFlags;
294 UINT32 NonSecurePl2Interrupt;
295 UINT32 NonSecurePl2Flags;
299 /* Values for Flags field above */
301 #define ACPI_GTDT_MAPPED_BLOCK_PRESENT 1
303 /* Values for all "TimerFlags" fields above */
305 #define ACPI_GTDT_INTERRUPT_MODE 1
306 #define ACPI_GTDT_INTERRUPT_POLARITY 2
309 /*******************************************************************************
311 * MPST - Memory Power State Table (ACPI 5.0)
314 ******************************************************************************/
316 #define ACPI_MPST_CHANNEL_INFO \
320 UINT16 PowerNodeCount;
324 typedef struct acpi_table_mpst
326 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
327 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
332 /* Memory Platform Communication Channel Info */
334 typedef struct acpi_mpst_channel
336 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
341 /* Memory Power Node Structure */
343 typedef struct acpi_mpst_power_node
351 UINT8 NumPowerStates;
352 UINT8 NumPhysicalComponents;
355 } ACPI_MPST_POWER_NODE;
357 /* Values for Flags field above */
359 #define ACPI_MPST_ENABLED 1
360 #define ACPI_MPST_POWER_MANAGED 2
361 #define ACPI_MPST_HOT_PLUG_CAPABLE 4
364 /* Memory Power State Structure (follows POWER_NODE above) */
366 typedef struct acpi_mpst_power_state
371 } ACPI_MPST_POWER_STATE;
374 /* Physical Component ID Structure (follows POWER_STATE above) */
376 typedef struct acpi_mpst_component
380 } ACPI_MPST_COMPONENT;
383 /* Memory Power State Characteristics Structure (follows all POWER_NODEs) */
385 typedef struct acpi_mpst_data_hdr
387 UINT16 CharacteristicsCount;
389 } ACPI_MPST_DATA_HDR;
391 typedef struct acpi_mpst_power_data
401 } ACPI_MPST_POWER_DATA;
403 /* Values for Flags field above */
405 #define ACPI_MPST_PRESERVE 1
406 #define ACPI_MPST_AUTOENTRY 2
407 #define ACPI_MPST_AUTOEXIT 4
410 /* Shared Memory Region (not part of an ACPI table) */
412 typedef struct acpi_mpst_shared
417 UINT16 CommandRegister;
418 UINT16 StatusRegister;
421 UINT64 EnergyConsumed;
427 /*******************************************************************************
429 * PCCT - Platform Communications Channel Table (ACPI 5.0)
432 ******************************************************************************/
434 typedef struct acpi_table_pcct
436 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
443 /* Values for Flags field above */
445 #define ACPI_PCCT_DOORBELL 1
451 /* 0: Generic Communications Subspace */
453 typedef struct acpi_pcct_subspace
455 ACPI_SUBTABLE_HEADER Header;
459 ACPI_GENERIC_ADDRESS DoorbellRegister;
463 } ACPI_PCCT_SUBSPACE;
467 * PCC memory structures (not part of the ACPI table)
470 /* Shared Memory Region */
472 typedef struct acpi_pcct_shared_memory
478 } ACPI_PCCT_SHARED_MEMORY;
481 /*******************************************************************************
483 * PMTT - Platform Memory Topology Table (ACPI 5.0)
486 ******************************************************************************/
488 typedef struct acpi_table_pmtt
490 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
496 /* Common header for PMTT subtables that follow main table */
498 typedef struct acpi_pmtt_header
508 /* Values for Type field above */
510 #define ACPI_PMTT_TYPE_SOCKET 0
511 #define ACPI_PMTT_TYPE_CONTROLLER 1
512 #define ACPI_PMTT_TYPE_DIMM 2
513 #define ACPI_PMTT_TYPE_RESERVED 3 /* 0x03-0xFF are reserved */
515 /* Values for Flags field above */
517 #define ACPI_PMTT_TOP_LEVEL 0x0001
518 #define ACPI_PMTT_PHYSICAL 0x0002
519 #define ACPI_PMTT_MEMORY_TYPE 0x000C
523 * PMTT subtables, correspond to Type in acpi_pmtt_header
527 /* 0: Socket Structure */
529 typedef struct acpi_pmtt_socket
531 ACPI_PMTT_HEADER Header;
538 /* 1: Memory Controller subtable */
540 typedef struct acpi_pmtt_controller
542 ACPI_PMTT_HEADER Header;
545 UINT32 ReadBandwidth;
546 UINT32 WriteBandwidth;
552 } ACPI_PMTT_CONTROLLER;
554 /* 1a: Proximity Domain substructure */
556 typedef struct acpi_pmtt_domain
558 UINT32 ProximityDomain;
563 /* 2: Physical Component Identifier (DIMM) */
565 typedef struct acpi_pmtt_physical_component
567 ACPI_PMTT_HEADER Header;
573 } ACPI_PMTT_PHYSICAL_COMPONENT;
576 /*******************************************************************************
578 * RASF - RAS Feature Table (ACPI 5.0)
581 ******************************************************************************/
583 typedef struct acpi_table_rasf
585 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
590 /* RASF Platform Communication Channel Shared Memory Region */
592 typedef struct acpi_rasf_shared_memory
597 UINT64 RequestedAddress;
598 UINT64 RequestedLength;
599 UINT64 ActualAddress;
604 } ACPI_RASF_SHARED_MEMORY;
606 /* Masks for Flags and Speed fields above */
608 #define ACPI_RASF_SCRUBBER_RUNNING 1
609 #define ACPI_RASF_SPEED (7<<1)
611 /* Channel Commands */
613 enum AcpiRasfCommands
615 ACPI_RASF_GET_RAS_CAPABILITIES = 1,
616 ACPI_RASF_GET_PATROL_PARAMETERS = 2,
617 ACPI_RASF_START_PATROL_SCRUBBER = 3,
618 ACPI_RASF_STOP_PATROL_SCRUBBER = 4
621 /* Channel Command flags */
623 #define ACPI_RASF_GENERATE_SCI (1<<15)
629 ACPI_RASF_SUCCESS = 0,
630 ACPI_RASF_NOT_VALID = 1,
631 ACPI_RASF_NOT_SUPPORTED = 2,
633 ACPI_RASF_FAILED = 4,
634 ACPI_RASF_ABORTED = 5,
635 ACPI_RASF_INVALID_DATA = 6
640 #define ACPI_RASF_COMMAND_COMPLETE (1)
641 #define ACPI_RASF_SCI_DOORBELL (1<<1)
642 #define ACPI_RASF_ERROR (1<<2)
643 #define ACPI_RASF_STATUS (0x1F<<3)
646 /* Reset to default packing */
650 #endif /* __ACTBL3_H__ */