1 /******************************************************************************
3 * Name: actbl3.h - ACPI Table Definitions
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2017, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
156 /*******************************************************************************
158 * Additional ACPI Tables (3)
160 * These tables are not consumed directly by the ACPICA subsystem, but are
161 * included here to support device drivers and the AML disassembler.
163 * In general, the tables in this file are fully defined within the ACPI
166 ******************************************************************************/
170 * Values for description table header signatures for tables defined in this
171 * file. Useful because they make it more difficult to inadvertently type in
172 * the wrong signature.
174 #define ACPI_SIG_BGRT "BGRT" /* Boot Graphics Resource Table */
175 #define ACPI_SIG_DRTM "DRTM" /* Dynamic Root of Trust for Measurement table */
176 #define ACPI_SIG_FPDT "FPDT" /* Firmware Performance Data Table */
177 #define ACPI_SIG_GTDT "GTDT" /* Generic Timer Description Table */
178 #define ACPI_SIG_MPST "MPST" /* Memory Power State Table */
179 #define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */
180 #define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */
181 #define ACPI_SIG_RASF "RASF" /* RAS Feature table */
182 #define ACPI_SIG_STAO "STAO" /* Status Override table */
183 #define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
184 #define ACPI_SIG_XENV "XENV" /* Xen Environment table */
186 #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */
187 #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */
189 /* Reserved table signatures */
191 #define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
192 #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
195 * All tables must be byte-packed to match the ACPI specification, since
196 * the tables are provided by the system BIOS.
201 * Note: C bitfields are not used for this reason:
203 * "Bitfields are great and easy to read, but unfortunately the C language
204 * does not specify the layout of bitfields in memory, which means they are
205 * essentially useless for dealing with packed data in on-disk formats or
206 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
207 * this decision was a design error in C. Ritchie could have picked an order
208 * and stuck with it." Norman Ramsey.
209 * See http://stackoverflow.com/a/1053662/41661
213 /*******************************************************************************
215 * BGRT - Boot Graphics Resource Table (ACPI 5.0)
218 ******************************************************************************/
220 typedef struct acpi_table_bgrt
222 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
233 /*******************************************************************************
235 * DRTM - Dynamic Root of Trust for Measurement table
236 * Conforms to "TCG D-RTM Architecture" June 17 2013, Version 1.0.0
239 ******************************************************************************/
241 typedef struct acpi_table_drtm
243 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
244 UINT64 EntryBaseAddress;
246 UINT32 EntryAddress32;
247 UINT64 EntryAddress64;
249 UINT64 LogAreaAddress;
250 UINT32 LogAreaLength;
251 UINT64 ArchDependentAddress;
256 /* Flag Definitions for above */
258 #define ACPI_DRTM_ACCESS_ALLOWED (1)
259 #define ACPI_DRTM_ENABLE_GAP_CODE (1<<1)
260 #define ACPI_DRTM_INCOMPLETE_MEASUREMENTS (1<<2)
261 #define ACPI_DRTM_AUTHORITY_ORDER (1<<3)
264 /* 1) Validated Tables List (64-bit addresses) */
266 typedef struct acpi_drtm_vtable_list
268 UINT32 ValidatedTableCount;
269 UINT64 ValidatedTables[1];
271 } ACPI_DRTM_VTABLE_LIST;
273 /* 2) Resources List (of Resource Descriptors) */
275 /* Resource Descriptor */
277 typedef struct acpi_drtm_resource
283 } ACPI_DRTM_RESOURCE;
285 typedef struct acpi_drtm_resource_list
287 UINT32 ResourceCount;
288 ACPI_DRTM_RESOURCE Resources[1];
290 } ACPI_DRTM_RESOURCE_LIST;
292 /* 3) Platform-specific Identifiers List */
294 typedef struct acpi_drtm_dps_id
302 /*******************************************************************************
304 * FPDT - Firmware Performance Data Table (ACPI 5.0)
307 ******************************************************************************/
309 typedef struct acpi_table_fpdt
311 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
316 /* FPDT subtable header (Performance Record Structure) */
318 typedef struct acpi_fpdt_header
326 /* Values for Type field above */
330 ACPI_FPDT_TYPE_BOOT = 0,
331 ACPI_FPDT_TYPE_S3PERF = 1
339 /* 0: Firmware Basic Boot Performance Record */
341 typedef struct acpi_fpdt_boot_pointer
343 ACPI_FPDT_HEADER Header;
347 } ACPI_FPDT_BOOT_POINTER;
350 /* 1: S3 Performance Table Pointer Record */
352 typedef struct acpi_fpdt_s3pt_pointer
354 ACPI_FPDT_HEADER Header;
358 } ACPI_FPDT_S3PT_POINTER;
362 * S3PT - S3 Performance Table. This table is pointed to by the
363 * S3 Pointer Record above.
365 typedef struct acpi_table_s3pt
367 UINT8 Signature[4]; /* "S3PT" */
374 * S3PT Subtables (Not part of the actual FPDT)
377 /* Values for Type field in S3PT header */
381 ACPI_S3PT_TYPE_RESUME = 0,
382 ACPI_S3PT_TYPE_SUSPEND = 1,
383 ACPI_FPDT_BOOT_PERFORMANCE = 2
386 typedef struct acpi_s3pt_resume
388 ACPI_FPDT_HEADER Header;
391 UINT64 AverageResume;
395 typedef struct acpi_s3pt_suspend
397 ACPI_FPDT_HEADER Header;
405 * FPDT Boot Performance Record (Not part of the actual FPDT)
407 typedef struct acpi_fpdt_boot
409 ACPI_FPDT_HEADER Header;
414 UINT64 ExitServicesEntry;
415 UINT64 ExitServicesExit;
420 /*******************************************************************************
422 * GTDT - Generic Timer Description Table (ACPI 5.1)
425 ******************************************************************************/
427 typedef struct acpi_table_gtdt
429 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
430 UINT64 CounterBlockAddresss;
432 UINT32 SecureEl1Interrupt;
433 UINT32 SecureEl1Flags;
434 UINT32 NonSecureEl1Interrupt;
435 UINT32 NonSecureEl1Flags;
436 UINT32 VirtualTimerInterrupt;
437 UINT32 VirtualTimerFlags;
438 UINT32 NonSecureEl2Interrupt;
439 UINT32 NonSecureEl2Flags;
440 UINT64 CounterReadBlockAddress;
441 UINT32 PlatformTimerCount;
442 UINT32 PlatformTimerOffset;
446 /* Flag Definitions: Timer Block Physical Timers and Virtual timers */
448 #define ACPI_GTDT_INTERRUPT_MODE (1)
449 #define ACPI_GTDT_INTERRUPT_POLARITY (1<<1)
450 #define ACPI_GTDT_ALWAYS_ON (1<<2)
453 /* Common GTDT subtable header */
455 typedef struct acpi_gtdt_header
462 /* Values for GTDT subtable type above */
466 ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
467 ACPI_GTDT_TYPE_WATCHDOG = 1,
468 ACPI_GTDT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
472 /* GTDT Subtables, correspond to Type in acpi_gtdt_header */
474 /* 0: Generic Timer Block */
476 typedef struct acpi_gtdt_timer_block
478 ACPI_GTDT_HEADER Header;
484 } ACPI_GTDT_TIMER_BLOCK;
486 /* Timer Sub-Structure, one per timer */
488 typedef struct acpi_gtdt_timer_entry
493 UINT64 El0BaseAddress;
494 UINT32 TimerInterrupt;
496 UINT32 VirtualTimerInterrupt;
497 UINT32 VirtualTimerFlags;
500 } ACPI_GTDT_TIMER_ENTRY;
502 /* Flag Definitions: TimerFlags and VirtualTimerFlags above */
504 #define ACPI_GTDT_GT_IRQ_MODE (1)
505 #define ACPI_GTDT_GT_IRQ_POLARITY (1<<1)
507 /* Flag Definitions: CommonFlags above */
509 #define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
510 #define ACPI_GTDT_GT_ALWAYS_ON (1<<1)
513 /* 1: SBSA Generic Watchdog Structure */
515 typedef struct acpi_gtdt_watchdog
517 ACPI_GTDT_HEADER Header;
519 UINT64 RefreshFrameAddress;
520 UINT64 ControlFrameAddress;
521 UINT32 TimerInterrupt;
524 } ACPI_GTDT_WATCHDOG;
526 /* Flag Definitions: TimerFlags above */
528 #define ACPI_GTDT_WATCHDOG_IRQ_MODE (1)
529 #define ACPI_GTDT_WATCHDOG_IRQ_POLARITY (1<<1)
530 #define ACPI_GTDT_WATCHDOG_SECURE (1<<2)
533 /*******************************************************************************
535 * MPST - Memory Power State Table (ACPI 5.0)
538 ******************************************************************************/
540 #define ACPI_MPST_CHANNEL_INFO \
542 UINT8 Reserved1[3]; \
543 UINT16 PowerNodeCount; \
548 typedef struct acpi_table_mpst
550 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
551 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
556 /* Memory Platform Communication Channel Info */
558 typedef struct acpi_mpst_channel
560 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
565 /* Memory Power Node Structure */
567 typedef struct acpi_mpst_power_node
575 UINT32 NumPowerStates;
576 UINT32 NumPhysicalComponents;
578 } ACPI_MPST_POWER_NODE;
580 /* Values for Flags field above */
582 #define ACPI_MPST_ENABLED 1
583 #define ACPI_MPST_POWER_MANAGED 2
584 #define ACPI_MPST_HOT_PLUG_CAPABLE 4
587 /* Memory Power State Structure (follows POWER_NODE above) */
589 typedef struct acpi_mpst_power_state
594 } ACPI_MPST_POWER_STATE;
597 /* Physical Component ID Structure (follows POWER_STATE above) */
599 typedef struct acpi_mpst_component
603 } ACPI_MPST_COMPONENT;
606 /* Memory Power State Characteristics Structure (follows all POWER_NODEs) */
608 typedef struct acpi_mpst_data_hdr
610 UINT16 CharacteristicsCount;
613 } ACPI_MPST_DATA_HDR;
615 typedef struct acpi_mpst_power_data
625 } ACPI_MPST_POWER_DATA;
627 /* Values for Flags field above */
629 #define ACPI_MPST_PRESERVE 1
630 #define ACPI_MPST_AUTOENTRY 2
631 #define ACPI_MPST_AUTOEXIT 4
634 /* Shared Memory Region (not part of an ACPI table) */
636 typedef struct acpi_mpst_shared
641 UINT32 CommandRegister;
642 UINT32 StatusRegister;
645 UINT64 EnergyConsumed;
651 /*******************************************************************************
653 * PCCT - Platform Communications Channel Table (ACPI 5.0)
656 ******************************************************************************/
658 typedef struct acpi_table_pcct
660 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
666 /* Values for Flags field above */
668 #define ACPI_PCCT_DOORBELL 1
670 /* Values for subtable type in ACPI_SUBTABLE_HEADER */
674 ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
675 ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
676 ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 = 2, /* ACPI 6.1 */
677 ACPI_PCCT_TYPE_RESERVED = 3 /* 3 and greater are reserved */
681 * PCCT Subtables, correspond to Type in ACPI_SUBTABLE_HEADER
684 /* 0: Generic Communications Subspace */
686 typedef struct acpi_pcct_subspace
688 ACPI_SUBTABLE_HEADER Header;
692 ACPI_GENERIC_ADDRESS DoorbellRegister;
696 UINT32 MaxAccessRate;
697 UINT16 MinTurnaroundTime;
699 } ACPI_PCCT_SUBSPACE;
702 /* 1: HW-reduced Communications Subspace (ACPI 5.1) */
704 typedef struct acpi_pcct_hw_reduced
706 ACPI_SUBTABLE_HEADER Header;
707 UINT32 DoorbellInterrupt;
712 ACPI_GENERIC_ADDRESS DoorbellRegister;
716 UINT32 MaxAccessRate;
717 UINT16 MinTurnaroundTime;
719 } ACPI_PCCT_HW_REDUCED;
722 /* 2: HW-reduced Communications Subspace Type 2 (ACPI 6.1) */
724 typedef struct acpi_pcct_hw_reduced_type2
726 ACPI_SUBTABLE_HEADER Header;
727 UINT32 DoorbellInterrupt;
732 ACPI_GENERIC_ADDRESS DoorbellRegister;
736 UINT32 MaxAccessRate;
737 UINT16 MinTurnaroundTime;
738 ACPI_GENERIC_ADDRESS DoorbellAckRegister;
739 UINT64 AckPreserveMask;
742 } ACPI_PCCT_HW_REDUCED_TYPE2;
745 /* Values for doorbell flags above */
747 #define ACPI_PCCT_INTERRUPT_POLARITY (1)
748 #define ACPI_PCCT_INTERRUPT_MODE (1<<1)
752 * PCC memory structures (not part of the ACPI table)
755 /* Shared Memory Region */
757 typedef struct acpi_pcct_shared_memory
763 } ACPI_PCCT_SHARED_MEMORY;
766 /*******************************************************************************
768 * PMTT - Platform Memory Topology Table (ACPI 5.0)
771 ******************************************************************************/
773 typedef struct acpi_table_pmtt
775 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
781 /* Common header for PMTT subtables that follow main table */
783 typedef struct acpi_pmtt_header
793 /* Values for Type field above */
795 #define ACPI_PMTT_TYPE_SOCKET 0
796 #define ACPI_PMTT_TYPE_CONTROLLER 1
797 #define ACPI_PMTT_TYPE_DIMM 2
798 #define ACPI_PMTT_TYPE_RESERVED 3 /* 0x03-0xFF are reserved */
800 /* Values for Flags field above */
802 #define ACPI_PMTT_TOP_LEVEL 0x0001
803 #define ACPI_PMTT_PHYSICAL 0x0002
804 #define ACPI_PMTT_MEMORY_TYPE 0x000C
808 * PMTT subtables, correspond to Type in acpi_pmtt_header
812 /* 0: Socket Structure */
814 typedef struct acpi_pmtt_socket
816 ACPI_PMTT_HEADER Header;
823 /* 1: Memory Controller subtable */
825 typedef struct acpi_pmtt_controller
827 ACPI_PMTT_HEADER Header;
830 UINT32 ReadBandwidth;
831 UINT32 WriteBandwidth;
837 } ACPI_PMTT_CONTROLLER;
839 /* 1a: Proximity Domain substructure */
841 typedef struct acpi_pmtt_domain
843 UINT32 ProximityDomain;
848 /* 2: Physical Component Identifier (DIMM) */
850 typedef struct acpi_pmtt_physical_component
852 ACPI_PMTT_HEADER Header;
858 } ACPI_PMTT_PHYSICAL_COMPONENT;
861 /*******************************************************************************
863 * RASF - RAS Feature Table (ACPI 5.0)
866 ******************************************************************************/
868 typedef struct acpi_table_rasf
870 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
875 /* RASF Platform Communication Channel Shared Memory Region */
877 typedef struct acpi_rasf_shared_memory
883 UINT8 Capabilities[16];
884 UINT8 SetCapabilities[16];
885 UINT16 NumParameterBlocks;
886 UINT32 SetCapabilitiesStatus;
888 } ACPI_RASF_SHARED_MEMORY;
890 /* RASF Parameter Block Structure Header */
892 typedef struct acpi_rasf_parameter_block
898 } ACPI_RASF_PARAMETER_BLOCK;
900 /* RASF Parameter Block Structure for PATROL_SCRUB */
902 typedef struct acpi_rasf_patrol_scrub_parameter
904 ACPI_RASF_PARAMETER_BLOCK Header;
905 UINT16 PatrolScrubCommand;
906 UINT64 RequestedAddressRange[2];
907 UINT64 ActualAddressRange[2];
909 UINT8 RequestedSpeed;
911 } ACPI_RASF_PATROL_SCRUB_PARAMETER;
913 /* Masks for Flags and Speed fields above */
915 #define ACPI_RASF_SCRUBBER_RUNNING 1
916 #define ACPI_RASF_SPEED (7<<1)
917 #define ACPI_RASF_SPEED_SLOW (0<<1)
918 #define ACPI_RASF_SPEED_MEDIUM (4<<1)
919 #define ACPI_RASF_SPEED_FAST (7<<1)
921 /* Channel Commands */
923 enum AcpiRasfCommands
925 ACPI_RASF_EXECUTE_RASF_COMMAND = 1
928 /* Platform RAS Capabilities */
930 enum AcpiRasfCapabiliities
932 ACPI_HW_PATROL_SCRUB_SUPPORTED = 0,
933 ACPI_SW_PATROL_SCRUB_EXPOSED = 1
936 /* Patrol Scrub Commands */
938 enum AcpiRasfPatrolScrubCommands
940 ACPI_RASF_GET_PATROL_PARAMETERS = 1,
941 ACPI_RASF_START_PATROL_SCRUBBER = 2,
942 ACPI_RASF_STOP_PATROL_SCRUBBER = 3
945 /* Channel Command flags */
947 #define ACPI_RASF_GENERATE_SCI (1<<15)
953 ACPI_RASF_SUCCESS = 0,
954 ACPI_RASF_NOT_VALID = 1,
955 ACPI_RASF_NOT_SUPPORTED = 2,
957 ACPI_RASF_FAILED = 4,
958 ACPI_RASF_ABORTED = 5,
959 ACPI_RASF_INVALID_DATA = 6
964 #define ACPI_RASF_COMMAND_COMPLETE (1)
965 #define ACPI_RASF_SCI_DOORBELL (1<<1)
966 #define ACPI_RASF_ERROR (1<<2)
967 #define ACPI_RASF_STATUS (0x1F<<3)
970 /*******************************************************************************
972 * STAO - Status Override Table (_STA override) - ACPI 6.0
975 * Conforms to "ACPI Specification for Status Override Table"
978 ******************************************************************************/
980 typedef struct acpi_table_stao
982 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
988 /*******************************************************************************
990 * WPBT - Windows Platform Environment Table (ACPI 6.0)
993 * Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011
995 ******************************************************************************/
997 typedef struct acpi_table_wpbt
999 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1001 UINT64 HandoffAddress;
1004 UINT16 ArgumentsLength;
1009 /*******************************************************************************
1011 * XENV - Xen Environment Table (ACPI 6.0)
1014 * Conforms to "ACPI Specification for Xen Environment Table" 4 January 2015
1016 ******************************************************************************/
1018 typedef struct acpi_table_xenv
1020 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1021 UINT64 GrantTableAddress;
1022 UINT64 GrantTableSize;
1023 UINT32 EventInterrupt;
1029 /* Reset to default packing */
1033 #endif /* __ACTBL3_H__ */