sd: remove 'ssd' driver support
[unleashed/tickless.git] / arch / x86 / include / sys / acpi / actbl3.h
blobef40f19fc0a396ec817f8ea62f1eb2f7c1dd36a0
1 /******************************************************************************
3 * Name: actbl3.h - ACPI Table Definitions
5 *****************************************************************************/
7 /*
8 * Copyright (C) 2000 - 2016, Intel Corp.
9 * All rights reserved.
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.
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.
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.
44 #ifndef __ACTBL3_H__
45 #define __ACTBL3_H__
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 * In general, the tables in this file are fully defined within the ACPI
56 * specification.
58 ******************************************************************************/
62 * Values for description table header signatures for tables defined in this
63 * file. Useful because they make it more difficult to inadvertently type in
64 * the wrong signature.
66 #define ACPI_SIG_BGRT "BGRT" /* Boot Graphics Resource Table */
67 #define ACPI_SIG_DRTM "DRTM" /* Dynamic Root of Trust for Measurement table */
68 #define ACPI_SIG_FPDT "FPDT" /* Firmware Performance Data Table */
69 #define ACPI_SIG_GTDT "GTDT" /* Generic Timer Description Table */
70 #define ACPI_SIG_MPST "MPST" /* Memory Power State Table */
71 #define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */
72 #define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */
73 #define ACPI_SIG_RASF "RASF" /* RAS Feature table */
74 #define ACPI_SIG_STAO "STAO" /* Status Override table */
75 #define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
76 #define ACPI_SIG_XENV "XENV" /* Xen Environment table */
78 #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */
79 #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */
81 /* Reserved table signatures */
83 #define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
84 #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
87 * All tables must be byte-packed to match the ACPI specification, since
88 * the tables are provided by the system BIOS.
90 #pragma pack(1)
93 * Note: C bitfields are not used for this reason:
95 * "Bitfields are great and easy to read, but unfortunately the C language
96 * does not specify the layout of bitfields in memory, which means they are
97 * essentially useless for dealing with packed data in on-disk formats or
98 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
99 * this decision was a design error in C. Ritchie could have picked an order
100 * and stuck with it." Norman Ramsey.
101 * See http://stackoverflow.com/a/1053662/41661
105 /*******************************************************************************
107 * BGRT - Boot Graphics Resource Table (ACPI 5.0)
108 * Version 1
110 ******************************************************************************/
112 typedef struct acpi_table_bgrt
114 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
115 UINT16 Version;
116 UINT8 Status;
117 UINT8 ImageType;
118 UINT64 ImageAddress;
119 UINT32 ImageOffsetX;
120 UINT32 ImageOffsetY;
122 } ACPI_TABLE_BGRT;
125 /*******************************************************************************
127 * DRTM - Dynamic Root of Trust for Measurement table
128 * Conforms to "TCG D-RTM Architecture" June 17 2013, Version 1.0.0
129 * Table version 1
131 ******************************************************************************/
133 typedef struct acpi_table_drtm
135 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
136 UINT64 EntryBaseAddress;
137 UINT64 EntryLength;
138 UINT32 EntryAddress32;
139 UINT64 EntryAddress64;
140 UINT64 ExitAddress;
141 UINT64 LogAreaAddress;
142 UINT32 LogAreaLength;
143 UINT64 ArchDependentAddress;
144 UINT32 Flags;
146 } ACPI_TABLE_DRTM;
148 /* Flag Definitions for above */
150 #define ACPI_DRTM_ACCESS_ALLOWED (1)
151 #define ACPI_DRTM_ENABLE_GAP_CODE (1<<1)
152 #define ACPI_DRTM_INCOMPLETE_MEASUREMENTS (1<<2)
153 #define ACPI_DRTM_AUTHORITY_ORDER (1<<3)
156 /* 1) Validated Tables List (64-bit addresses) */
158 typedef struct acpi_drtm_vtable_list
160 UINT32 ValidatedTableCount;
161 UINT64 ValidatedTables[1];
163 } ACPI_DRTM_VTABLE_LIST;
165 /* 2) Resources List (of Resource Descriptors) */
167 /* Resource Descriptor */
169 typedef struct acpi_drtm_resource
171 UINT8 Size[7];
172 UINT8 Type;
173 UINT64 Address;
175 } ACPI_DRTM_RESOURCE;
177 typedef struct acpi_drtm_resource_list
179 UINT32 ResourceCount;
180 ACPI_DRTM_RESOURCE Resources[1];
182 } ACPI_DRTM_RESOURCE_LIST;
184 /* 3) Platform-specific Identifiers List */
186 typedef struct acpi_drtm_dps_id
188 UINT32 DpsIdLength;
189 UINT8 DpsId[16];
191 } ACPI_DRTM_DPS_ID;
194 /*******************************************************************************
196 * FPDT - Firmware Performance Data Table (ACPI 5.0)
197 * Version 1
199 ******************************************************************************/
201 typedef struct acpi_table_fpdt
203 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
205 } ACPI_TABLE_FPDT;
208 /* FPDT subtable header (Performance Record Structure) */
210 typedef struct acpi_fpdt_header
212 UINT16 Type;
213 UINT8 Length;
214 UINT8 Revision;
216 } ACPI_FPDT_HEADER;
218 /* Values for Type field above */
220 enum AcpiFpdtType
222 ACPI_FPDT_TYPE_BOOT = 0,
223 ACPI_FPDT_TYPE_S3PERF = 1
228 * FPDT subtables
231 /* 0: Firmware Basic Boot Performance Record */
233 typedef struct acpi_fpdt_boot_pointer
235 ACPI_FPDT_HEADER Header;
236 UINT8 Reserved[4];
237 UINT64 Address;
239 } ACPI_FPDT_BOOT_POINTER;
242 /* 1: S3 Performance Table Pointer Record */
244 typedef struct acpi_fpdt_s3pt_pointer
246 ACPI_FPDT_HEADER Header;
247 UINT8 Reserved[4];
248 UINT64 Address;
250 } ACPI_FPDT_S3PT_POINTER;
254 * S3PT - S3 Performance Table. This table is pointed to by the
255 * S3 Pointer Record above.
257 typedef struct acpi_table_s3pt
259 UINT8 Signature[4]; /* "S3PT" */
260 UINT32 Length;
262 } ACPI_TABLE_S3PT;
266 * S3PT Subtables (Not part of the actual FPDT)
269 /* Values for Type field in S3PT header */
271 enum AcpiS3ptType
273 ACPI_S3PT_TYPE_RESUME = 0,
274 ACPI_S3PT_TYPE_SUSPEND = 1,
275 ACPI_FPDT_BOOT_PERFORMANCE = 2
278 typedef struct acpi_s3pt_resume
280 ACPI_FPDT_HEADER Header;
281 UINT32 ResumeCount;
282 UINT64 FullResume;
283 UINT64 AverageResume;
285 } ACPI_S3PT_RESUME;
287 typedef struct acpi_s3pt_suspend
289 ACPI_FPDT_HEADER Header;
290 UINT64 SuspendStart;
291 UINT64 SuspendEnd;
293 } ACPI_S3PT_SUSPEND;
297 * FPDT Boot Performance Record (Not part of the actual FPDT)
299 typedef struct acpi_fpdt_boot
301 ACPI_FPDT_HEADER Header;
302 UINT8 Reserved[4];
303 UINT64 ResetEnd;
304 UINT64 LoadStart;
305 UINT64 StartupStart;
306 UINT64 ExitServicesEntry;
307 UINT64 ExitServicesExit;
309 } ACPI_FPDT_BOOT;
312 /*******************************************************************************
314 * GTDT - Generic Timer Description Table (ACPI 5.1)
315 * Version 2
317 ******************************************************************************/
319 typedef struct acpi_table_gtdt
321 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
322 UINT64 CounterBlockAddresss;
323 UINT32 Reserved;
324 UINT32 SecureEl1Interrupt;
325 UINT32 SecureEl1Flags;
326 UINT32 NonSecureEl1Interrupt;
327 UINT32 NonSecureEl1Flags;
328 UINT32 VirtualTimerInterrupt;
329 UINT32 VirtualTimerFlags;
330 UINT32 NonSecureEl2Interrupt;
331 UINT32 NonSecureEl2Flags;
332 UINT64 CounterReadBlockAddress;
333 UINT32 PlatformTimerCount;
334 UINT32 PlatformTimerOffset;
336 } ACPI_TABLE_GTDT;
338 /* Flag Definitions: Timer Block Physical Timers and Virtual timers */
340 #define ACPI_GTDT_INTERRUPT_MODE (1)
341 #define ACPI_GTDT_INTERRUPT_POLARITY (1<<1)
342 #define ACPI_GTDT_ALWAYS_ON (1<<2)
345 /* Common GTDT subtable header */
347 typedef struct acpi_gtdt_header
349 UINT8 Type;
350 UINT16 Length;
352 } ACPI_GTDT_HEADER;
354 /* Values for GTDT subtable type above */
356 enum AcpiGtdtType
358 ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
359 ACPI_GTDT_TYPE_WATCHDOG = 1,
360 ACPI_GTDT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
364 /* GTDT Subtables, correspond to Type in acpi_gtdt_header */
366 /* 0: Generic Timer Block */
368 typedef struct acpi_gtdt_timer_block
370 ACPI_GTDT_HEADER Header;
371 UINT8 Reserved;
372 UINT64 BlockAddress;
373 UINT32 TimerCount;
374 UINT32 TimerOffset;
376 } ACPI_GTDT_TIMER_BLOCK;
378 /* Timer Sub-Structure, one per timer */
380 typedef struct acpi_gtdt_timer_entry
382 UINT8 FrameNumber;
383 UINT8 Reserved[3];
384 UINT64 BaseAddress;
385 UINT64 El0BaseAddress;
386 UINT32 TimerInterrupt;
387 UINT32 TimerFlags;
388 UINT32 VirtualTimerInterrupt;
389 UINT32 VirtualTimerFlags;
390 UINT32 CommonFlags;
392 } ACPI_GTDT_TIMER_ENTRY;
394 /* Flag Definitions: TimerFlags and VirtualTimerFlags above */
396 #define ACPI_GTDT_GT_IRQ_MODE (1)
397 #define ACPI_GTDT_GT_IRQ_POLARITY (1<<1)
399 /* Flag Definitions: CommonFlags above */
401 #define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
402 #define ACPI_GTDT_GT_ALWAYS_ON (1<<1)
405 /* 1: SBSA Generic Watchdog Structure */
407 typedef struct acpi_gtdt_watchdog
409 ACPI_GTDT_HEADER Header;
410 UINT8 Reserved;
411 UINT64 RefreshFrameAddress;
412 UINT64 ControlFrameAddress;
413 UINT32 TimerInterrupt;
414 UINT32 TimerFlags;
416 } ACPI_GTDT_WATCHDOG;
418 /* Flag Definitions: TimerFlags above */
420 #define ACPI_GTDT_WATCHDOG_IRQ_MODE (1)
421 #define ACPI_GTDT_WATCHDOG_IRQ_POLARITY (1<<1)
422 #define ACPI_GTDT_WATCHDOG_SECURE (1<<2)
425 /*******************************************************************************
427 * MPST - Memory Power State Table (ACPI 5.0)
428 * Version 1
430 ******************************************************************************/
432 #define ACPI_MPST_CHANNEL_INFO \
433 UINT8 ChannelId; \
434 UINT8 Reserved1[3]; \
435 UINT16 PowerNodeCount; \
436 UINT16 Reserved2;
438 /* Main table */
440 typedef struct acpi_table_mpst
442 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
443 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
445 } ACPI_TABLE_MPST;
448 /* Memory Platform Communication Channel Info */
450 typedef struct acpi_mpst_channel
452 ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */
454 } ACPI_MPST_CHANNEL;
457 /* Memory Power Node Structure */
459 typedef struct acpi_mpst_power_node
461 UINT8 Flags;
462 UINT8 Reserved1;
463 UINT16 NodeId;
464 UINT32 Length;
465 UINT64 RangeAddress;
466 UINT64 RangeLength;
467 UINT32 NumPowerStates;
468 UINT32 NumPhysicalComponents;
470 } ACPI_MPST_POWER_NODE;
472 /* Values for Flags field above */
474 #define ACPI_MPST_ENABLED 1
475 #define ACPI_MPST_POWER_MANAGED 2
476 #define ACPI_MPST_HOT_PLUG_CAPABLE 4
479 /* Memory Power State Structure (follows POWER_NODE above) */
481 typedef struct acpi_mpst_power_state
483 UINT8 PowerState;
484 UINT8 InfoIndex;
486 } ACPI_MPST_POWER_STATE;
489 /* Physical Component ID Structure (follows POWER_STATE above) */
491 typedef struct acpi_mpst_component
493 UINT16 ComponentId;
495 } ACPI_MPST_COMPONENT;
498 /* Memory Power State Characteristics Structure (follows all POWER_NODEs) */
500 typedef struct acpi_mpst_data_hdr
502 UINT16 CharacteristicsCount;
503 UINT16 Reserved;
505 } ACPI_MPST_DATA_HDR;
507 typedef struct acpi_mpst_power_data
509 UINT8 StructureId;
510 UINT8 Flags;
511 UINT16 Reserved1;
512 UINT32 AveragePower;
513 UINT32 PowerSaving;
514 UINT64 ExitLatency;
515 UINT64 Reserved2;
517 } ACPI_MPST_POWER_DATA;
519 /* Values for Flags field above */
521 #define ACPI_MPST_PRESERVE 1
522 #define ACPI_MPST_AUTOENTRY 2
523 #define ACPI_MPST_AUTOEXIT 4
526 /* Shared Memory Region (not part of an ACPI table) */
528 typedef struct acpi_mpst_shared
530 UINT32 Signature;
531 UINT16 PccCommand;
532 UINT16 PccStatus;
533 UINT32 CommandRegister;
534 UINT32 StatusRegister;
535 UINT32 PowerStateId;
536 UINT32 PowerNodeId;
537 UINT64 EnergyConsumed;
538 UINT64 AveragePower;
540 } ACPI_MPST_SHARED;
543 /*******************************************************************************
545 * PCCT - Platform Communications Channel Table (ACPI 5.0)
546 * Version 1
548 ******************************************************************************/
550 typedef struct acpi_table_pcct
552 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
553 UINT32 Flags;
554 UINT64 Reserved;
556 } ACPI_TABLE_PCCT;
558 /* Values for Flags field above */
560 #define ACPI_PCCT_DOORBELL 1
562 /* Values for subtable type in ACPI_SUBTABLE_HEADER */
564 enum AcpiPcctType
566 ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
567 ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
568 ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 = 2, /* ACPI 6.1 */
569 ACPI_PCCT_TYPE_RESERVED = 3 /* 3 and greater are reserved */
573 * PCCT Subtables, correspond to Type in ACPI_SUBTABLE_HEADER
576 /* 0: Generic Communications Subspace */
578 typedef struct acpi_pcct_subspace
580 ACPI_SUBTABLE_HEADER Header;
581 UINT8 Reserved[6];
582 UINT64 BaseAddress;
583 UINT64 Length;
584 ACPI_GENERIC_ADDRESS DoorbellRegister;
585 UINT64 PreserveMask;
586 UINT64 WriteMask;
587 UINT32 Latency;
588 UINT32 MaxAccessRate;
589 UINT16 MinTurnaroundTime;
591 } ACPI_PCCT_SUBSPACE;
594 /* 1: HW-reduced Communications Subspace (ACPI 5.1) */
596 typedef struct acpi_pcct_hw_reduced
598 ACPI_SUBTABLE_HEADER Header;
599 UINT32 DoorbellInterrupt;
600 UINT8 Flags;
601 UINT8 Reserved;
602 UINT64 BaseAddress;
603 UINT64 Length;
604 ACPI_GENERIC_ADDRESS DoorbellRegister;
605 UINT64 PreserveMask;
606 UINT64 WriteMask;
607 UINT32 Latency;
608 UINT32 MaxAccessRate;
609 UINT16 MinTurnaroundTime;
611 } ACPI_PCCT_HW_REDUCED;
614 /* 2: HW-reduced Communications Subspace Type 2 (ACPI 6.1) */
616 typedef struct acpi_pcct_hw_reduced_type2
618 ACPI_SUBTABLE_HEADER Header;
619 UINT32 DoorbellInterrupt;
620 UINT8 Flags;
621 UINT8 Reserved;
622 UINT64 BaseAddress;
623 UINT64 Length;
624 ACPI_GENERIC_ADDRESS DoorbellRegister;
625 UINT64 PreserveMask;
626 UINT64 WriteMask;
627 UINT32 Latency;
628 UINT32 MaxAccessRate;
629 UINT16 MinTurnaroundTime;
630 ACPI_GENERIC_ADDRESS DoorbellAckRegister;
631 UINT64 AckPreserveMask;
632 UINT64 AckWriteMask;
634 } ACPI_PCCT_HW_REDUCED_TYPE2;
637 /* Values for doorbell flags above */
639 #define ACPI_PCCT_INTERRUPT_POLARITY (1)
640 #define ACPI_PCCT_INTERRUPT_MODE (1<<1)
644 * PCC memory structures (not part of the ACPI table)
647 /* Shared Memory Region */
649 typedef struct acpi_pcct_shared_memory
651 UINT32 Signature;
652 UINT16 Command;
653 UINT16 Status;
655 } ACPI_PCCT_SHARED_MEMORY;
658 /*******************************************************************************
660 * PMTT - Platform Memory Topology Table (ACPI 5.0)
661 * Version 1
663 ******************************************************************************/
665 typedef struct acpi_table_pmtt
667 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
668 UINT32 Reserved;
670 } ACPI_TABLE_PMTT;
673 /* Common header for PMTT subtables that follow main table */
675 typedef struct acpi_pmtt_header
677 UINT8 Type;
678 UINT8 Reserved1;
679 UINT16 Length;
680 UINT16 Flags;
681 UINT16 Reserved2;
683 } ACPI_PMTT_HEADER;
685 /* Values for Type field above */
687 #define ACPI_PMTT_TYPE_SOCKET 0
688 #define ACPI_PMTT_TYPE_CONTROLLER 1
689 #define ACPI_PMTT_TYPE_DIMM 2
690 #define ACPI_PMTT_TYPE_RESERVED 3 /* 0x03-0xFF are reserved */
692 /* Values for Flags field above */
694 #define ACPI_PMTT_TOP_LEVEL 0x0001
695 #define ACPI_PMTT_PHYSICAL 0x0002
696 #define ACPI_PMTT_MEMORY_TYPE 0x000C
700 * PMTT subtables, correspond to Type in acpi_pmtt_header
704 /* 0: Socket Structure */
706 typedef struct acpi_pmtt_socket
708 ACPI_PMTT_HEADER Header;
709 UINT16 SocketId;
710 UINT16 Reserved;
712 } ACPI_PMTT_SOCKET;
715 /* 1: Memory Controller subtable */
717 typedef struct acpi_pmtt_controller
719 ACPI_PMTT_HEADER Header;
720 UINT32 ReadLatency;
721 UINT32 WriteLatency;
722 UINT32 ReadBandwidth;
723 UINT32 WriteBandwidth;
724 UINT16 AccessWidth;
725 UINT16 Alignment;
726 UINT16 Reserved;
727 UINT16 DomainCount;
729 } ACPI_PMTT_CONTROLLER;
731 /* 1a: Proximity Domain substructure */
733 typedef struct acpi_pmtt_domain
735 UINT32 ProximityDomain;
737 } ACPI_PMTT_DOMAIN;
740 /* 2: Physical Component Identifier (DIMM) */
742 typedef struct acpi_pmtt_physical_component
744 ACPI_PMTT_HEADER Header;
745 UINT16 ComponentId;
746 UINT16 Reserved;
747 UINT32 MemorySize;
748 UINT32 BiosHandle;
750 } ACPI_PMTT_PHYSICAL_COMPONENT;
753 /*******************************************************************************
755 * RASF - RAS Feature Table (ACPI 5.0)
756 * Version 1
758 ******************************************************************************/
760 typedef struct acpi_table_rasf
762 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
763 UINT8 ChannelId[12];
765 } ACPI_TABLE_RASF;
767 /* RASF Platform Communication Channel Shared Memory Region */
769 typedef struct acpi_rasf_shared_memory
771 UINT32 Signature;
772 UINT16 Command;
773 UINT16 Status;
774 UINT16 Version;
775 UINT8 Capabilities[16];
776 UINT8 SetCapabilities[16];
777 UINT16 NumParameterBlocks;
778 UINT32 SetCapabilitiesStatus;
780 } ACPI_RASF_SHARED_MEMORY;
782 /* RASF Parameter Block Structure Header */
784 typedef struct acpi_rasf_parameter_block
786 UINT16 Type;
787 UINT16 Version;
788 UINT16 Length;
790 } ACPI_RASF_PARAMETER_BLOCK;
792 /* RASF Parameter Block Structure for PATROL_SCRUB */
794 typedef struct acpi_rasf_patrol_scrub_parameter
796 ACPI_RASF_PARAMETER_BLOCK Header;
797 UINT16 PatrolScrubCommand;
798 UINT64 RequestedAddressRange[2];
799 UINT64 ActualAddressRange[2];
800 UINT16 Flags;
801 UINT8 RequestedSpeed;
803 } ACPI_RASF_PATROL_SCRUB_PARAMETER;
805 /* Masks for Flags and Speed fields above */
807 #define ACPI_RASF_SCRUBBER_RUNNING 1
808 #define ACPI_RASF_SPEED (7<<1)
809 #define ACPI_RASF_SPEED_SLOW (0<<1)
810 #define ACPI_RASF_SPEED_MEDIUM (4<<1)
811 #define ACPI_RASF_SPEED_FAST (7<<1)
813 /* Channel Commands */
815 enum AcpiRasfCommands
817 ACPI_RASF_EXECUTE_RASF_COMMAND = 1
820 /* Platform RAS Capabilities */
822 enum AcpiRasfCapabiliities
824 ACPI_HW_PATROL_SCRUB_SUPPORTED = 0,
825 ACPI_SW_PATROL_SCRUB_EXPOSED = 1
828 /* Patrol Scrub Commands */
830 enum AcpiRasfPatrolScrubCommands
832 ACPI_RASF_GET_PATROL_PARAMETERS = 1,
833 ACPI_RASF_START_PATROL_SCRUBBER = 2,
834 ACPI_RASF_STOP_PATROL_SCRUBBER = 3
837 /* Channel Command flags */
839 #define ACPI_RASF_GENERATE_SCI (1<<15)
841 /* Status values */
843 enum AcpiRasfStatus
845 ACPI_RASF_SUCCESS = 0,
846 ACPI_RASF_NOT_VALID = 1,
847 ACPI_RASF_NOT_SUPPORTED = 2,
848 ACPI_RASF_BUSY = 3,
849 ACPI_RASF_FAILED = 4,
850 ACPI_RASF_ABORTED = 5,
851 ACPI_RASF_INVALID_DATA = 6
854 /* Status flags */
856 #define ACPI_RASF_COMMAND_COMPLETE (1)
857 #define ACPI_RASF_SCI_DOORBELL (1<<1)
858 #define ACPI_RASF_ERROR (1<<2)
859 #define ACPI_RASF_STATUS (0x1F<<3)
862 /*******************************************************************************
864 * STAO - Status Override Table (_STA override) - ACPI 6.0
865 * Version 1
867 * Conforms to "ACPI Specification for Status Override Table"
868 * 6 January 2015
870 ******************************************************************************/
872 typedef struct acpi_table_stao
874 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
875 UINT8 IgnoreUart;
877 } ACPI_TABLE_STAO;
880 /*******************************************************************************
882 * WPBT - Windows Platform Environment Table (ACPI 6.0)
883 * Version 1
885 * Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011
887 ******************************************************************************/
889 typedef struct acpi_table_wpbt
891 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
892 UINT32 HandoffSize;
893 UINT64 HandoffAddress;
894 UINT8 Layout;
895 UINT8 Type;
896 UINT16 ArgumentsLength;
898 } ACPI_TABLE_WPBT;
901 /*******************************************************************************
903 * XENV - Xen Environment Table (ACPI 6.0)
904 * Version 1
906 * Conforms to "ACPI Specification for Xen Environment Table" 4 January 2015
908 ******************************************************************************/
910 typedef struct acpi_table_xenv
912 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
913 UINT64 GrantTableAddress;
914 UINT64 GrantTableSize;
915 UINT32 EventInterrupt;
916 UINT8 EventFlags;
918 } ACPI_TABLE_XENV;
921 /* Reset to default packing */
923 #pragma pack()
925 #endif /* __ACTBL3_H__ */