blob: 3eed4c870a8a1aed9d21f501d2cea1a2ff8fd8c1 [file] [log] [blame]
Bob Moorec5bd6532011-11-16 11:04:00 +08001/******************************************************************************
2 *
3 * Name: actbl3.h - ACPI Table Definitions
4 *
5 *****************************************************************************/
6
7/*
David E. Box82a80942015-02-05 15:20:45 +08008 * Copyright (C) 2000 - 2015, Intel Corp.
Bob Moorec5bd6532011-11-16 11:04:00 +08009 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
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.
25 *
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.
29 *
30 * NO WARRANTY
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.
42 */
43
44#ifndef __ACTBL3_H__
45#define __ACTBL3_H__
46
47/*******************************************************************************
48 *
49 * Additional ACPI Tables (3)
50 *
51 * These tables are not consumed directly by the ACPICA subsystem, but are
52 * included here to support device drivers and the AML disassembler.
53 *
54 * The tables in this file are fully defined within the ACPI specification.
55 *
56 ******************************************************************************/
57
58/*
59 * Values for description table header signatures for tables defined in this
60 * file. Useful because they make it more difficult to inadvertently type in
61 * the wrong signature.
62 */
63#define ACPI_SIG_BGRT "BGRT" /* Boot Graphics Resource Table */
64#define ACPI_SIG_DRTM "DRTM" /* Dynamic Root of Trust for Measurement table */
65#define ACPI_SIG_FPDT "FPDT" /* Firmware Performance Data Table */
66#define ACPI_SIG_GTDT "GTDT" /* Generic Timer Description Table */
67#define ACPI_SIG_MPST "MPST" /* Memory Power State Table */
68#define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */
69#define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */
70#define ACPI_SIG_RASF "RASF" /* RAS Feature table */
Bob Moore37e12652015-05-21 10:30:11 +080071#define ACPI_SIG_STAO "STAO" /* Status Override table */
Bob Moore99c93f52012-12-31 00:05:52 +000072#define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */
Bob Mooreb6944ef2015-05-21 10:30:24 +080073#define ACPI_SIG_XENV "XENV" /* Xen Environment table */
Bob Moorec5bd6532011-11-16 11:04:00 +080074
75#define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */
76#define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */
77
78/* Reserved table signatures */
79
Bob Moorec5bd6532011-11-16 11:04:00 +080080#define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
81#define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
82#define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
83
84/*
85 * All tables must be byte-packed to match the ACPI specification, since
86 * the tables are provided by the system BIOS.
87 */
88#pragma pack(1)
89
90/*
Bob Moorebe030a52012-08-17 13:07:54 +080091 * Note: C bitfields are not used for this reason:
92 *
93 * "Bitfields are great and easy to read, but unfortunately the C language
94 * does not specify the layout of bitfields in memory, which means they are
95 * essentially useless for dealing with packed data in on-disk formats or
96 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
97 * this decision was a design error in C. Ritchie could have picked an order
98 * and stuck with it." Norman Ramsey.
99 * See http://stackoverflow.com/a/1053662/41661
Bob Moorec5bd6532011-11-16 11:04:00 +0800100 */
101
102/*******************************************************************************
103 *
104 * BGRT - Boot Graphics Resource Table (ACPI 5.0)
105 * Version 1
106 *
107 ******************************************************************************/
108
109struct acpi_table_bgrt {
110 struct acpi_table_header header; /* Common ACPI table header */
111 u16 version;
112 u8 status;
113 u8 image_type;
114 u64 image_address;
115 u32 image_offset_x;
116 u32 image_offset_y;
117};
118
119/*******************************************************************************
120 *
121 * DRTM - Dynamic Root of Trust for Measurement table
122 *
123 ******************************************************************************/
124
125struct acpi_table_drtm {
126 struct acpi_table_header header; /* Common ACPI table header */
127 u64 entry_base_address;
128 u64 entry_length;
129 u32 entry_address32;
130 u64 entry_address64;
131 u64 exit_address;
132 u64 log_area_address;
133 u32 log_area_length;
134 u64 arch_dependent_address;
135 u32 flags;
136};
137
138/* 1) Validated Tables List */
139
140struct acpi_drtm_vtl_list {
141 u32 validated_table_list_count;
142};
143
144/* 2) Resources List */
145
146struct acpi_drtm_resource_list {
147 u32 resource_list_count;
148};
149
150/* 3) Platform-specific Identifiers List */
151
152struct acpi_drtm_id_list {
153 u32 id_list_count;
154};
155
156/*******************************************************************************
157 *
158 * FPDT - Firmware Performance Data Table (ACPI 5.0)
159 * Version 1
160 *
161 ******************************************************************************/
162
163struct acpi_table_fpdt {
164 struct acpi_table_header header; /* Common ACPI table header */
165};
166
167/* FPDT subtable header */
168
169struct acpi_fpdt_header {
170 u16 type;
171 u8 length;
172 u8 revision;
173};
174
175/* Values for Type field above */
176
177enum acpi_fpdt_type {
178 ACPI_FPDT_TYPE_BOOT = 0,
Bob Moore6be58e22013-03-08 09:22:48 +0000179 ACPI_FPDT_TYPE_S3PERF = 1
Bob Moorec5bd6532011-11-16 11:04:00 +0800180};
181
182/*
183 * FPDT subtables
184 */
185
186/* 0: Firmware Basic Boot Performance Record */
187
188struct acpi_fpdt_boot {
189 struct acpi_fpdt_header header;
190 u8 reserved[4];
191 u64 reset_end;
192 u64 load_start;
193 u64 startup_start;
194 u64 exit_services_entry;
195 u64 exit_services_exit;
196};
197
198/* 1: S3 Performance Table Pointer Record */
199
200struct acpi_fpdt_s3pt_ptr {
201 struct acpi_fpdt_header header;
202 u8 reserved[4];
203 u64 address;
204};
205
206/*
207 * S3PT - S3 Performance Table. This table is pointed to by the
208 * FPDT S3 Pointer Record above.
209 */
210struct acpi_table_s3pt {
211 u8 signature[4]; /* "S3PT" */
212 u32 length;
213};
214
215/*
216 * S3PT Subtables
217 */
218struct acpi_s3pt_header {
219 u16 type;
220 u8 length;
221 u8 revision;
222};
223
224/* Values for Type field above */
225
226enum acpi_s3pt_type {
227 ACPI_S3PT_TYPE_RESUME = 0,
Bob Moore6be58e22013-03-08 09:22:48 +0000228 ACPI_S3PT_TYPE_SUSPEND = 1
Bob Moorec5bd6532011-11-16 11:04:00 +0800229};
230
231struct acpi_s3pt_resume {
232 struct acpi_s3pt_header header;
233 u32 resume_count;
234 u64 full_resume;
235 u64 average_resume;
236};
237
238struct acpi_s3pt_suspend {
239 struct acpi_s3pt_header header;
240 u64 suspend_start;
241 u64 suspend_end;
242};
243
244/*******************************************************************************
245 *
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800246 * GTDT - Generic Timer Description Table (ACPI 5.1)
247 * Version 2
Bob Moorec5bd6532011-11-16 11:04:00 +0800248 *
249 ******************************************************************************/
250
251struct acpi_table_gtdt {
252 struct acpi_table_header header; /* Common ACPI table header */
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800253 u64 counter_block_addresss;
254 u32 reserved;
255 u32 secure_el1_interrupt;
256 u32 secure_el1_flags;
257 u32 non_secure_el1_interrupt;
258 u32 non_secure_el1_flags;
Bob Moorec5bd6532011-11-16 11:04:00 +0800259 u32 virtual_timer_interrupt;
260 u32 virtual_timer_flags;
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800261 u32 non_secure_el2_interrupt;
262 u32 non_secure_el2_flags;
263 u64 counter_read_block_address;
264 u32 platform_timer_count;
265 u32 platform_timer_offset;
Bob Moorec5bd6532011-11-16 11:04:00 +0800266};
267
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800268/* Flag Definitions: Timer Block Physical Timers and Virtual timers */
Bob Moorec5bd6532011-11-16 11:04:00 +0800269
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800270#define ACPI_GTDT_INTERRUPT_MODE (1)
271#define ACPI_GTDT_INTERRUPT_POLARITY (1<<1)
272#define ACPI_GTDT_ALWAYS_ON (1<<2)
Bob Moorec5bd6532011-11-16 11:04:00 +0800273
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800274/* Common GTDT subtable header */
Bob Moorec5bd6532011-11-16 11:04:00 +0800275
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800276struct acpi_gtdt_header {
277 u8 type;
278 u16 length;
279};
280
281/* Values for GTDT subtable type above */
282
283enum acpi_gtdt_type {
284 ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
285 ACPI_GTDT_TYPE_WATCHDOG = 1,
286 ACPI_GTDT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
287};
288
289/* GTDT Subtables, correspond to Type in struct acpi_gtdt_header */
290
291/* 0: Generic Timer Block */
292
293struct acpi_gtdt_timer_block {
294 struct acpi_gtdt_header header;
295 u8 reserved;
296 u64 block_address;
297 u32 timer_count;
298 u32 timer_offset;
299};
300
301/* Timer Sub-Structure, one per timer */
302
303struct acpi_gtdt_timer_entry {
304 u8 frame_number;
305 u8 reserved[3];
306 u64 base_address;
307 u64 el0_base_address;
308 u32 timer_interrupt;
309 u32 timer_flags;
310 u32 virtual_timer_interrupt;
311 u32 virtual_timer_flags;
312 u32 common_flags;
313};
314
Hanjun Guo34ea0652014-09-02 08:27:19 +0800315/* Flag Definitions: timer_flags and virtual_timer_flags above */
316
317#define ACPI_GTDT_GT_IRQ_MODE (1)
318#define ACPI_GTDT_GT_IRQ_POLARITY (1<<1)
319
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800320/* Flag Definitions: common_flags above */
321
Hanjun Guo34ea0652014-09-02 08:27:19 +0800322#define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
323#define ACPI_GTDT_GT_ALWAYS_ON (1<<1)
Tomasz Nowicki54ea4242014-07-30 12:21:58 +0800324
325/* 1: SBSA Generic Watchdog Structure */
326
327struct acpi_gtdt_watchdog {
328 struct acpi_gtdt_header header;
329 u8 reserved;
330 u64 refresh_frame_address;
331 u64 control_frame_address;
332 u32 timer_interrupt;
333 u32 timer_flags;
334};
335
336/* Flag Definitions: timer_flags above */
337
338#define ACPI_GTDT_WATCHDOG_IRQ_MODE (1)
339#define ACPI_GTDT_WATCHDOG_IRQ_POLARITY (1<<1)
340#define ACPI_GTDT_WATCHDOG_SECURE (1<<2)
Bob Moorec5bd6532011-11-16 11:04:00 +0800341
342/*******************************************************************************
343 *
344 * MPST - Memory Power State Table (ACPI 5.0)
345 * Version 1
346 *
347 ******************************************************************************/
348
349#define ACPI_MPST_CHANNEL_INFO \
Bob Moorec5bd6532011-11-16 11:04:00 +0800350 u8 channel_id; \
Bob Moore2d2dd502012-10-31 02:27:56 +0000351 u8 reserved1[3]; \
352 u16 power_node_count; \
353 u16 reserved2;
Bob Moorec5bd6532011-11-16 11:04:00 +0800354
355/* Main table */
356
357struct acpi_table_mpst {
358 struct acpi_table_header header; /* Common ACPI table header */
359 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
360};
361
362/* Memory Platform Communication Channel Info */
363
364struct acpi_mpst_channel {
365 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
366};
367
368/* Memory Power Node Structure */
369
370struct acpi_mpst_power_node {
371 u8 flags;
372 u8 reserved1;
373 u16 node_id;
374 u32 length;
375 u64 range_address;
376 u64 range_length;
Bob Moore2d2dd502012-10-31 02:27:56 +0000377 u32 num_power_states;
378 u32 num_physical_components;
Bob Moorec5bd6532011-11-16 11:04:00 +0800379};
380
381/* Values for Flags field above */
382
383#define ACPI_MPST_ENABLED 1
384#define ACPI_MPST_POWER_MANAGED 2
385#define ACPI_MPST_HOT_PLUG_CAPABLE 4
386
387/* Memory Power State Structure (follows POWER_NODE above) */
388
389struct acpi_mpst_power_state {
390 u8 power_state;
391 u8 info_index;
392};
393
394/* Physical Component ID Structure (follows POWER_STATE above) */
395
396struct acpi_mpst_component {
397 u16 component_id;
398};
399
400/* Memory Power State Characteristics Structure (follows all POWER_NODEs) */
401
402struct acpi_mpst_data_hdr {
403 u16 characteristics_count;
Bob Moore2d2dd502012-10-31 02:27:56 +0000404 u16 reserved;
Bob Moorec5bd6532011-11-16 11:04:00 +0800405};
406
407struct acpi_mpst_power_data {
Bob Moore2d2dd502012-10-31 02:27:56 +0000408 u8 structure_id;
Bob Moorec5bd6532011-11-16 11:04:00 +0800409 u8 flags;
410 u16 reserved1;
411 u32 average_power;
412 u32 power_saving;
413 u64 exit_latency;
414 u64 reserved2;
415};
416
417/* Values for Flags field above */
418
419#define ACPI_MPST_PRESERVE 1
420#define ACPI_MPST_AUTOENTRY 2
421#define ACPI_MPST_AUTOEXIT 4
422
423/* Shared Memory Region (not part of an ACPI table) */
424
425struct acpi_mpst_shared {
426 u32 signature;
427 u16 pcc_command;
428 u16 pcc_status;
Bob Moore2d2dd502012-10-31 02:27:56 +0000429 u32 command_register;
430 u32 status_register;
431 u32 power_state_id;
432 u32 power_node_id;
Bob Moorec5bd6532011-11-16 11:04:00 +0800433 u64 energy_consumed;
434 u64 average_power;
435};
436
437/*******************************************************************************
438 *
439 * PCCT - Platform Communications Channel Table (ACPI 5.0)
440 * Version 1
441 *
442 ******************************************************************************/
443
444struct acpi_table_pcct {
445 struct acpi_table_header header; /* Common ACPI table header */
446 u32 flags;
Bob Mooref0d73662014-01-08 13:43:57 +0800447 u64 reserved;
Bob Moorec5bd6532011-11-16 11:04:00 +0800448};
449
450/* Values for Flags field above */
451
452#define ACPI_PCCT_DOORBELL 1
453
Bob Mooref0d73662014-01-08 13:43:57 +0800454/* Values for subtable type in struct acpi_subtable_header */
455
456enum acpi_pcct_type {
457 ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
Bob Moore67a3d622014-07-30 12:22:05 +0800458 ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
459 ACPI_PCCT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
Bob Mooref0d73662014-01-08 13:43:57 +0800460};
461
Bob Moorec5bd6532011-11-16 11:04:00 +0800462/*
Bob Mooref0d73662014-01-08 13:43:57 +0800463 * PCCT Subtables, correspond to Type in struct acpi_subtable_header
Bob Moorec5bd6532011-11-16 11:04:00 +0800464 */
465
466/* 0: Generic Communications Subspace */
467
468struct acpi_pcct_subspace {
469 struct acpi_subtable_header header;
470 u8 reserved[6];
471 u64 base_address;
472 u64 length;
473 struct acpi_generic_address doorbell_register;
474 u64 preserve_mask;
475 u64 write_mask;
Bob Mooref0d73662014-01-08 13:43:57 +0800476 u32 latency;
477 u32 max_access_rate;
478 u16 min_turnaround_time;
Bob Moorec5bd6532011-11-16 11:04:00 +0800479};
480
Bob Moore67a3d622014-07-30 12:22:05 +0800481/* 1: HW-reduced Communications Subspace (ACPI 5.1) */
482
483struct acpi_pcct_hw_reduced {
484 struct acpi_subtable_header header;
485 u32 doorbell_interrupt;
486 u8 flags;
487 u8 reserved;
488 u64 base_address;
489 u64 length;
490 struct acpi_generic_address doorbell_register;
491 u64 preserve_mask;
492 u64 write_mask;
493 u32 latency;
494 u32 max_access_rate;
495 u16 min_turnaround_time;
496};
497
498/* Values for doorbell flags above */
499
500#define ACPI_PCCT_INTERRUPT_POLARITY (1)
501#define ACPI_PCCT_INTERRUPT_MODE (1<<1)
502
Bob Moorec5bd6532011-11-16 11:04:00 +0800503/*
504 * PCC memory structures (not part of the ACPI table)
505 */
506
507/* Shared Memory Region */
508
509struct acpi_pcct_shared_memory {
510 u32 signature;
511 u16 command;
512 u16 status;
513};
514
515/*******************************************************************************
516 *
517 * PMTT - Platform Memory Topology Table (ACPI 5.0)
518 * Version 1
519 *
520 ******************************************************************************/
521
522struct acpi_table_pmtt {
523 struct acpi_table_header header; /* Common ACPI table header */
524 u32 reserved;
525};
526
527/* Common header for PMTT subtables that follow main table */
528
529struct acpi_pmtt_header {
530 u8 type;
531 u8 reserved1;
532 u16 length;
533 u16 flags;
534 u16 reserved2;
535};
536
537/* Values for Type field above */
538
539#define ACPI_PMTT_TYPE_SOCKET 0
540#define ACPI_PMTT_TYPE_CONTROLLER 1
541#define ACPI_PMTT_TYPE_DIMM 2
542#define ACPI_PMTT_TYPE_RESERVED 3 /* 0x03-0xFF are reserved */
543
544/* Values for Flags field above */
545
546#define ACPI_PMTT_TOP_LEVEL 0x0001
547#define ACPI_PMTT_PHYSICAL 0x0002
548#define ACPI_PMTT_MEMORY_TYPE 0x000C
549
550/*
551 * PMTT subtables, correspond to Type in struct acpi_pmtt_header
552 */
553
554/* 0: Socket Structure */
555
556struct acpi_pmtt_socket {
557 struct acpi_pmtt_header header;
558 u16 socket_id;
559 u16 reserved;
560};
561
562/* 1: Memory Controller subtable */
563
564struct acpi_pmtt_controller {
565 struct acpi_pmtt_header header;
566 u32 read_latency;
567 u32 write_latency;
568 u32 read_bandwidth;
569 u32 write_bandwidth;
570 u16 access_width;
571 u16 alignment;
572 u16 reserved;
573 u16 domain_count;
574};
575
576/* 1a: Proximity Domain substructure */
577
578struct acpi_pmtt_domain {
579 u32 proximity_domain;
580};
581
582/* 2: Physical Component Identifier (DIMM) */
583
584struct acpi_pmtt_physical_component {
585 struct acpi_pmtt_header header;
586 u16 component_id;
587 u16 reserved;
588 u32 memory_size;
589 u32 bios_handle;
590};
591
592/*******************************************************************************
593 *
594 * RASF - RAS Feature Table (ACPI 5.0)
595 * Version 1
596 *
597 ******************************************************************************/
598
599struct acpi_table_rasf {
600 struct acpi_table_header header; /* Common ACPI table header */
601 u8 channel_id[12];
602};
603
604/* RASF Platform Communication Channel Shared Memory Region */
605
606struct acpi_rasf_shared_memory {
607 u32 signature;
608 u16 command;
609 u16 status;
Lv Zheng8c280912013-03-08 09:20:21 +0000610 u16 version;
611 u8 capabilities[16];
612 u8 set_capabilities[16];
613 u16 num_parameter_blocks;
614 u32 set_capabilities_status;
615};
616
617/* RASF Parameter Block Structure Header */
618
619struct acpi_rasf_parameter_block {
620 u16 type;
621 u16 version;
622 u16 length;
623};
624
625/* RASF Parameter Block Structure for PATROL_SCRUB */
626
627struct acpi_rasf_patrol_scrub_parameter {
628 struct acpi_rasf_parameter_block header;
629 u16 patrol_scrub_command;
630 u64 requested_address_range[2];
631 u64 actual_address_range[2];
Bob Moorec5bd6532011-11-16 11:04:00 +0800632 u16 flags;
Lv Zheng8c280912013-03-08 09:20:21 +0000633 u8 requested_speed;
Bob Moorec5bd6532011-11-16 11:04:00 +0800634};
635
636/* Masks for Flags and Speed fields above */
637
638#define ACPI_RASF_SCRUBBER_RUNNING 1
639#define ACPI_RASF_SPEED (7<<1)
Lv Zheng8c280912013-03-08 09:20:21 +0000640#define ACPI_RASF_SPEED_SLOW (0<<1)
641#define ACPI_RASF_SPEED_MEDIUM (4<<1)
642#define ACPI_RASF_SPEED_FAST (7<<1)
Bob Moorec5bd6532011-11-16 11:04:00 +0800643
644/* Channel Commands */
645
646enum acpi_rasf_commands {
Lv Zheng8c280912013-03-08 09:20:21 +0000647 ACPI_RASF_EXECUTE_RASF_COMMAND = 1
648};
649
650/* Platform RAS Capabilities */
651
652enum acpi_rasf_capabiliities {
653 ACPI_HW_PATROL_SCRUB_SUPPORTED = 0,
654 ACPI_SW_PATROL_SCRUB_EXPOSED = 1
655};
656
657/* Patrol Scrub Commands */
658
659enum acpi_rasf_patrol_scrub_commands {
660 ACPI_RASF_GET_PATROL_PARAMETERS = 1,
661 ACPI_RASF_START_PATROL_SCRUBBER = 2,
662 ACPI_RASF_STOP_PATROL_SCRUBBER = 3
Bob Moorec5bd6532011-11-16 11:04:00 +0800663};
664
665/* Channel Command flags */
666
667#define ACPI_RASF_GENERATE_SCI (1<<15)
668
669/* Status values */
670
671enum acpi_rasf_status {
672 ACPI_RASF_SUCCESS = 0,
673 ACPI_RASF_NOT_VALID = 1,
674 ACPI_RASF_NOT_SUPPORTED = 2,
675 ACPI_RASF_BUSY = 3,
676 ACPI_RASF_FAILED = 4,
677 ACPI_RASF_ABORTED = 5,
678 ACPI_RASF_INVALID_DATA = 6
679};
680
681/* Status flags */
682
683#define ACPI_RASF_COMMAND_COMPLETE (1)
684#define ACPI_RASF_SCI_DOORBELL (1<<1)
685#define ACPI_RASF_ERROR (1<<2)
686#define ACPI_RASF_STATUS (0x1F<<3)
687
Bob Moore99c93f52012-12-31 00:05:52 +0000688/*******************************************************************************
689 *
Bob Moore37e12652015-05-21 10:30:11 +0800690 * STAO - Status Override Table (_STA override) - ACPI 6.0
691 * Version 1
692 *
693 * Conforms to "ACPI Specification for Status Override Table"
694 * 6 January 2015
695 *
696 ******************************************************************************/
697
698struct acpi_table_stao {
699 struct acpi_table_header header; /* Common ACPI table header */
700 u8 ignore_uart;
701};
702
703/*******************************************************************************
704 *
Bob Moore99c93f52012-12-31 00:05:52 +0000705 * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
706 * Version 3
707 *
708 * Conforms to "TPM 2.0 Hardware Interface Table (TPM2)" 29 November 2011
709 *
710 ******************************************************************************/
711
712struct acpi_table_tpm2 {
713 struct acpi_table_header header; /* Common ACPI table header */
714 u32 flags;
715 u64 control_address;
716 u32 start_method;
717};
718
719/* Control area structure (not part of table, pointed to by control_address) */
720
721struct acpi_tpm2_control {
722 u32 reserved;
723 u32 error;
724 u32 cancel;
725 u32 start;
726 u64 interrupt_control;
727 u32 command_size;
728 u64 command_address;
729 u32 response_size;
730 u64 response_address;
731};
732
Bob Mooreb6944ef2015-05-21 10:30:24 +0800733/*******************************************************************************
734 *
735 * XENV - Xen Environment Table (ACPI 6.0)
736 * Version 1
737 *
738 * Conforms to "ACPI Specification for Xen Environment Table" 4 January 2015
739 *
740 ******************************************************************************/
741
742struct acpi_table_xenv {
743 struct acpi_table_header header; /* Common ACPI table header */
744 u64 grant_table_address;
745 u64 grant_table_size;
746 u32 event_interrupt;
747 u8 event_flags;
748};
749
Robert Moore6e596082014-03-05 14:12:01 +0800750/* Reset to default packing */
751
752#pragma pack()
Bob Moorec5bd6532011-11-16 11:04:00 +0800753
754#endif /* __ACTBL3_H__ */