1 /******************************************************************************
3 * Name: actbl1.h - Additional ACPI table definitions
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2008, 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.
47 /*******************************************************************************
49 * Additional ACPI Tables
51 * These tables are not consumed directly by the ACPICA subsystem, but are
52 * included here to support device drivers and the AML disassembler.
54 ******************************************************************************/
57 * Values for description table header signatures. Useful because they make
58 * it more difficult to inadvertently type in the wrong signature.
60 #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
61 #define ACPI_SIG_BERT "BERT" /* Boot Error Record Table */
62 #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
63 #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */
64 #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
65 #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
66 #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */
67 #define ACPI_SIG_EINJ "EINJ" /* Error Injection table */
68 #define ACPI_SIG_ERST "ERST" /* Error Record Serialization Table */
69 #define ACPI_SIG_HEST "HEST" /* Hardware Error Source Table */
70 #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
71 #define ACPI_SIG_IBFT "IBFT" /* i_sCSI Boot Firmware Table */
72 #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */
73 #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
74 #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */
75 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
76 #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */
77 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
78 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
79 #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */
80 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
81 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
82 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
83 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource 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 u8 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.
97 /* Common Subtable header (used in MADT, SRAT, etc.) */
99 struct acpi_subtable_header
{
104 /* Common Subtable header for WHEA tables (EINJ, ERST, WDAT) */
106 struct acpi_whea_header
{
111 struct acpi_generic_address register_region
;
112 u64 value
; /* Value used with Read/Write register */
113 u64 mask
; /* Bitmask required for this register instruction */
116 /*******************************************************************************
118 * ASF - Alert Standard Format table (Signature "ASF!")
120 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
122 ******************************************************************************/
124 struct acpi_table_asf
{
125 struct acpi_table_header header
; /* Common ACPI table header */
128 /* ASF subtable header */
130 struct acpi_asf_header
{
136 /* Values for Type field above */
139 ACPI_ASF_TYPE_INFO
= 0,
140 ACPI_ASF_TYPE_ALERT
= 1,
141 ACPI_ASF_TYPE_CONTROL
= 2,
142 ACPI_ASF_TYPE_BOOT
= 3,
143 ACPI_ASF_TYPE_ADDRESS
= 4,
144 ACPI_ASF_TYPE_RESERVED
= 5
151 /* 0: ASF Information */
153 struct acpi_asf_info
{
154 struct acpi_asf_header header
;
156 u8 min_poll_interval
;
165 struct acpi_asf_alert
{
166 struct acpi_asf_header header
;
173 struct acpi_asf_alert_data
{
188 /* 2: ASF Remote Control */
190 struct acpi_asf_remote
{
191 struct acpi_asf_header header
;
197 struct acpi_asf_control_data
{
204 /* 3: ASF RMCP Boot Options */
206 struct acpi_asf_rmcp
{
207 struct acpi_asf_header header
;
219 struct acpi_asf_address
{
220 struct acpi_asf_header header
;
225 /*******************************************************************************
227 * BERT - Boot Error Record Table
229 ******************************************************************************/
231 struct acpi_table_bert
{
232 struct acpi_table_header header
; /* Common ACPI table header */
233 u32 region_length
; /* Length of the boot error region */
234 u64 address
; /* Physical addresss of the error region */
237 /* Boot Error Region */
239 struct acpi_bert_region
{
247 /* block_status Flags */
249 #define ACPI_BERT_UNCORRECTABLE (1)
250 #define ACPI_BERT_CORRECTABLE (2)
251 #define ACPI_BERT_MULTIPLE_UNCORRECTABLE (4)
252 #define ACPI_BERT_MULTIPLE_CORRECTABLE (8)
254 /*******************************************************************************
256 * BOOT - Simple Boot Flag Table
258 ******************************************************************************/
260 struct acpi_table_boot
{
261 struct acpi_table_header header
; /* Common ACPI table header */
262 u8 cmos_index
; /* Index in CMOS RAM for the boot register */
266 /*******************************************************************************
268 * CPEP - Corrected Platform Error Polling table
270 ******************************************************************************/
272 struct acpi_table_cpep
{
273 struct acpi_table_header header
; /* Common ACPI table header */
279 struct acpi_cpep_polling
{
282 u8 id
; /* Processor ID */
283 u8 eid
; /* Processor EID */
284 u32 interval
; /* Polling interval (msec) */
287 /*******************************************************************************
289 * DBGP - Debug Port table
291 ******************************************************************************/
293 struct acpi_table_dbgp
{
294 struct acpi_table_header header
; /* Common ACPI table header */
295 u8 type
; /* 0=full 16550, 1=subset of 16550 */
297 struct acpi_generic_address debug_port
;
300 /*******************************************************************************
302 * DMAR - DMA Remapping table
303 * From "Intel Virtualization Technology for Directed I/O", Sept. 2007
305 ******************************************************************************/
307 struct acpi_table_dmar
{
308 struct acpi_table_header header
; /* Common ACPI table header */
309 u8 width
; /* Host Address Width */
316 #define ACPI_DMAR_INTR_REMAP (1)
318 /* DMAR subtable header */
320 struct acpi_dmar_header
{
325 /* Values for subtable type in struct acpi_dmar_header */
327 enum acpi_dmar_type
{
328 ACPI_DMAR_TYPE_HARDWARE_UNIT
= 0,
329 ACPI_DMAR_TYPE_RESERVED_MEMORY
= 1,
330 ACPI_DMAR_TYPE_ATSR
= 2,
331 ACPI_DMAR_TYPE_RESERVED
= 3 /* 3 and greater are reserved */
334 struct acpi_dmar_device_scope
{
342 /* Values for entry_type in struct acpi_dmar_device_scope */
344 enum acpi_dmar_scope_type
{
345 ACPI_DMAR_SCOPE_TYPE_NOT_USED
= 0,
346 ACPI_DMAR_SCOPE_TYPE_ENDPOINT
= 1,
347 ACPI_DMAR_SCOPE_TYPE_BRIDGE
= 2,
348 ACPI_DMAR_SCOPE_TYPE_IOAPIC
= 3,
349 ACPI_DMAR_SCOPE_TYPE_HPET
= 4,
350 ACPI_DMAR_SCOPE_TYPE_RESERVED
= 5 /* 5 and greater are reserved */
353 struct acpi_dmar_pci_path
{
359 * DMAR Sub-tables, correspond to Type in struct acpi_dmar_header
362 /* 0: Hardware Unit Definition */
364 struct acpi_dmar_hardware_unit
{
365 struct acpi_dmar_header header
;
369 u64 address
; /* Register Base Address */
374 #define ACPI_DMAR_INCLUDE_ALL (1)
376 /* 1: Reserved Memory Defininition */
378 struct acpi_dmar_reserved_memory
{
379 struct acpi_dmar_header header
;
382 u64 base_address
; /* 4_k aligned base address */
383 u64 end_address
; /* 4_k aligned limit address */
388 #define ACPI_DMAR_ALLOW_ALL (1)
391 /* 2: Root Port ATS Capability Reporting Structure */
393 struct acpi_dmar_atsr
{
394 struct acpi_dmar_header header
;
402 #define ACPI_DMAR_ALL_PORTS (1)
404 /*******************************************************************************
406 * ECDT - Embedded Controller Boot Resources Table
408 ******************************************************************************/
410 struct acpi_table_ecdt
{
411 struct acpi_table_header header
; /* Common ACPI table header */
412 struct acpi_generic_address control
; /* Address of EC command/status register */
413 struct acpi_generic_address data
; /* Address of EC data register */
414 u32 uid
; /* Unique ID - must be same as the EC _UID method */
415 u8 gpe
; /* The GPE for the EC */
416 u8 id
[1]; /* Full namepath of the EC in the ACPI namespace */
419 /*******************************************************************************
421 * EINJ - Error Injection Table
423 ******************************************************************************/
425 struct acpi_table_einj
{
426 struct acpi_table_header header
; /* Common ACPI table header */
432 /* EINJ Injection Instruction Entries (actions) */
434 struct acpi_einj_entry
{
435 struct acpi_whea_header whea_header
; /* Common header for WHEA tables */
438 /* Values for Action field above */
440 enum acpi_einj_actions
{
441 ACPI_EINJ_BEGIN_OPERATION
= 0,
442 ACPI_EINJ_GET_TRIGGER_TABLE
= 1,
443 ACPI_EINJ_SET_ERROR_TYPE
= 2,
444 ACPI_EINJ_GET_ERROR_TYPE
= 3,
445 ACPI_EINJ_END_OPERATION
= 4,
446 ACPI_EINJ_EXECUTE_OPERATION
= 5,
447 ACPI_EINJ_CHECK_BUSY_STATUS
= 6,
448 ACPI_EINJ_GET_COMMAND_STATUS
= 7,
449 ACPI_EINJ_ACTION_RESERVED
= 8, /* 8 and greater are reserved */
450 ACPI_EINJ_TRIGGER_ERROR
= 0xFF /* Except for this value */
453 /* Values for Instruction field above */
455 enum acpi_einj_instructions
{
456 ACPI_EINJ_READ_REGISTER
= 0,
457 ACPI_EINJ_READ_REGISTER_VALUE
= 1,
458 ACPI_EINJ_WRITE_REGISTER
= 2,
459 ACPI_EINJ_WRITE_REGISTER_VALUE
= 3,
461 ACPI_EINJ_INSTRUCTION_RESERVED
= 5 /* 5 and greater are reserved */
464 /* EINJ Trigger Error Action Table */
466 struct acpi_einj_trigger
{
473 /*******************************************************************************
475 * ERST - Error Record Serialization Table
477 ******************************************************************************/
479 struct acpi_table_erst
{
480 struct acpi_table_header header
; /* Common ACPI table header */
486 /* ERST Serialization Entries (actions) */
488 struct acpi_erst_entry
{
489 struct acpi_whea_header whea_header
; /* Common header for WHEA tables */
492 /* Values for Action field above */
494 enum acpi_erst_actions
{
495 ACPI_ERST_BEGIN_WRITE_OPERATION
= 0,
496 ACPI_ERST_BEGIN_READ_OPERATION
= 1,
497 ACPI_ERST_BETGIN_CLEAR_OPERATION
= 2,
498 ACPI_ERST_END_OPERATION
= 3,
499 ACPI_ERST_SET_RECORD_OFFSET
= 4,
500 ACPI_ERST_EXECUTE_OPERATION
= 5,
501 ACPI_ERST_CHECK_BUSY_STATUS
= 6,
502 ACPI_ERST_GET_COMMAND_STATUS
= 7,
503 ACPI_ERST_GET_RECORD_IDENTIFIER
= 8,
504 ACPI_ERST_SET_RECORD_IDENTIFIER
= 9,
505 ACPI_ERST_GET_RECORD_COUNT
= 10,
506 ACPI_ERST_BEGIN_DUMMY_WRIITE
= 11,
507 ACPI_ERST_NOT_USED
= 12,
508 ACPI_ERST_GET_ERROR_RANGE
= 13,
509 ACPI_ERST_GET_ERROR_LENGTH
= 14,
510 ACPI_ERST_GET_ERROR_ATTRIBUTES
= 15,
511 ACPI_ERST_ACTION_RESERVED
= 16 /* 16 and greater are reserved */
514 /* Values for Instruction field above */
516 enum acpi_erst_instructions
{
517 ACPI_ERST_READ_REGISTER
= 0,
518 ACPI_ERST_READ_REGISTER_VALUE
= 1,
519 ACPI_ERST_WRITE_REGISTER
= 2,
520 ACPI_ERST_WRITE_REGISTER_VALUE
= 3,
522 ACPI_ERST_LOAD_VAR1
= 5,
523 ACPI_ERST_LOAD_VAR2
= 6,
524 ACPI_ERST_STORE_VAR1
= 7,
526 ACPI_ERST_SUBTRACT
= 9,
527 ACPI_ERST_ADD_VALUE
= 10,
528 ACPI_ERST_SUBTRACT_VALUE
= 11,
529 ACPI_ERST_STALL
= 12,
530 ACPI_ERST_STALL_WHILE_TRUE
= 13,
531 ACPI_ERST_SKIP_NEXT_IF_TRUE
= 14,
533 ACPI_ERST_SET_SRC_ADDRESS_BASE
= 16,
534 ACPI_ERST_SET_DST_ADDRESS_BASE
= 17,
535 ACPI_ERST_MOVE_DATA
= 18,
536 ACPI_ERST_INSTRUCTION_RESERVED
= 19 /* 19 and greater are reserved */
539 /*******************************************************************************
541 * HEST - Hardware Error Source Table
543 ******************************************************************************/
545 struct acpi_table_hest
{
546 struct acpi_table_header header
; /* Common ACPI table header */
547 u32 error_source_count
;
550 /* HEST subtable header */
552 struct acpi_hest_header
{
556 /* Values for Type field above for subtables */
558 enum acpi_hest_types
{
559 ACPI_HEST_TYPE_XPF_MACHINE_CHECK
= 0,
560 ACPI_HEST_TYPE_XPF_CORRECTED_MACHINE_CHECK
= 1,
561 ACPI_HEST_TYPE_XPF_UNUSED
= 2,
562 ACPI_HEST_TYPE_XPF_NON_MASKABLE_INTERRUPT
= 3,
563 ACPI_HEST_TYPE_IPF_CORRECTED_MACHINE_CHECK
= 4,
564 ACPI_HEST_TYPE_IPF_CORRECTED_PLATFORM_ERROR
= 5,
565 ACPI_HEST_TYPE_AER_ROOT_PORT
= 6,
566 ACPI_HEST_TYPE_AER_ENDPOINT
= 7,
567 ACPI_HEST_TYPE_AER_BRIDGE
= 8,
568 ACPI_HEST_TYPE_GENERIC_HARDWARE_ERROR_SOURCE
= 9,
569 ACPI_HEST_TYPE_RESERVED
= 10 /* 10 and greater are reserved */
576 /* XPF Machine Check Error Bank */
578 struct acpi_hest_xpf_error_bank
{
580 u8 clear_status_on_init
;
582 u8 config_write_enable
;
583 u32 control_register
;
584 u64 control_init_data
;
586 u32 address_register
;
590 /* Generic Error Status */
592 struct acpi_hest_generic_status
{
600 /* Generic Error Data */
602 struct acpi_hest_generic_data
{
608 u32 error_data_length
;
613 /* Common HEST structure for PCI/AER types below (6,7,8) */
615 struct acpi_hest_aer_common
{
617 u16 config_write_enable
;
620 u32 records_to_pre_allocate
;
621 u32 max_sections_per_record
;
627 u32 uncorrectable_error_mask
;
628 u32 uncorrectable_error_severity
;
629 u32 correctable_error_mask
;
630 u32 advanced_error_cababilities
;
633 /* Hardware Error Notification */
635 struct acpi_hest_notify
{
638 u16 config_write_enable
;
641 u32 polling_threshold_value
;
642 u32 polling_threshold_window
;
643 u32 error_threshold_value
;
644 u32 error_threshold_window
;
647 /* Values for Notify Type field above */
649 enum acpi_hest_notify_types
{
650 ACPI_HEST_NOTIFY_POLLED
= 0,
651 ACPI_HEST_NOTIFY_EXTERNAL
= 1,
652 ACPI_HEST_NOTIFY_LOCAL
= 2,
653 ACPI_HEST_NOTIFY_SCI
= 3,
654 ACPI_HEST_NOTIFY_NMI
= 4,
655 ACPI_HEST_NOTIFY_RESERVED
= 5 /* 5 and greater are reserved */
661 * From WHEA Design Document, 16 May 2007.
662 * Note: There is no subtable type 2 in this version of the document,
663 * and there are two different subtable type 3s.
666 /* 0: XPF Machine Check Exception */
668 struct acpi_hest_xpf_machine_check
{
669 struct acpi_hest_header header
;
671 u16 config_write_enable
;
674 u32 records_to_pre_allocate
;
675 u32 max_sections_per_record
;
676 u64 global_capability_data
;
677 u64 global_control_data
;
678 u8 num_hardware_banks
;
682 /* 1: XPF Corrected Machine Check */
684 struct acpi_table_hest_xpf_corrected
{
685 struct acpi_hest_header header
;
687 u16 config_write_enable
;
690 u32 records_to_pre_allocate
;
691 u32 max_sections_per_record
;
692 struct acpi_hest_notify notify
;
693 u8 num_hardware_banks
;
697 /* 3: XPF Non-Maskable Interrupt */
699 struct acpi_hest_xpf_nmi
{
700 struct acpi_hest_header header
;
703 u32 records_to_pre_allocate
;
704 u32 max_sections_per_record
;
705 u32 max_raw_data_length
;
708 /* 4: IPF Corrected Machine Check */
710 struct acpi_hest_ipf_corrected
{
711 struct acpi_hest_header header
;
716 /* 5: IPF Corrected Platform Error */
718 struct acpi_hest_ipf_corrected_platform
{
719 struct acpi_hest_header header
;
724 /* 6: PCI Express Root Port AER */
726 struct acpi_hest_aer_root
{
727 struct acpi_hest_header header
;
728 struct acpi_hest_aer_common aer
;
729 u32 root_error_command
;
732 /* 7: PCI Express AER (AER Endpoint) */
734 struct acpi_hest_aer
{
735 struct acpi_hest_header header
;
736 struct acpi_hest_aer_common aer
;
739 /* 8: PCI Express/PCI-X Bridge AER */
741 struct acpi_hest_aer_bridge
{
742 struct acpi_hest_header header
;
743 struct acpi_hest_aer_common aer
;
744 u32 secondary_uncorrectable_error_mask
;
745 u32 secondary_uncorrectable_error_severity
;
746 u32 secondary_advanced_capabilities
;
749 /* 9: Generic Hardware Error Source */
751 struct acpi_hest_generic
{
752 struct acpi_hest_header header
;
754 u16 related_source_id
;
755 u8 config_write_enable
;
757 u32 records_to_pre_allocate
;
758 u32 max_sections_per_record
;
759 u32 max_raw_data_length
;
760 struct acpi_generic_address error_status_address
;
761 struct acpi_hest_notify notify
;
762 u32 error_status_block_length
;
765 /*******************************************************************************
767 * HPET - High Precision Event Timer table
769 ******************************************************************************/
771 struct acpi_table_hpet
{
772 struct acpi_table_header header
; /* Common ACPI table header */
773 u32 id
; /* Hardware ID of event timer block */
774 struct acpi_generic_address address
; /* Address of event timer block */
775 u8 sequence
; /* HPET sequence number */
776 u16 minimum_tick
; /* Main counter min tick, periodic mode */
782 #define ACPI_HPET_PAGE_PROTECT (1) /* 00: No page protection */
783 #define ACPI_HPET_PAGE_PROTECT_4 (1<<1) /* 01: 4KB page protected */
784 #define ACPI_HPET_PAGE_PROTECT_64 (1<<2) /* 02: 64KB page protected */
786 /*! [End] no source code translation !*/
788 /*******************************************************************************
790 * IBFT - Boot Firmware Table
792 ******************************************************************************/
794 struct acpi_table_ibft
{
795 struct acpi_table_header header
; /* Common ACPI table header */
799 /* IBFT common subtable header */
801 struct acpi_ibft_header
{
809 /* Values for Type field above */
811 enum acpi_ibft_type
{
812 ACPI_IBFT_TYPE_NOT_USED
= 0,
813 ACPI_IBFT_TYPE_CONTROL
= 1,
814 ACPI_IBFT_TYPE_INITIATOR
= 2,
815 ACPI_IBFT_TYPE_NIC
= 3,
816 ACPI_IBFT_TYPE_TARGET
= 4,
817 ACPI_IBFT_TYPE_EXTENSIONS
= 5,
818 ACPI_IBFT_TYPE_RESERVED
= 6 /* 6 and greater are reserved */
823 struct acpi_ibft_control
{
824 struct acpi_ibft_header header
;
826 u16 initiator_offset
;
833 struct acpi_ibft_initiator
{
834 struct acpi_ibft_header header
;
837 u8 primary_server
[16];
838 u8 secondary_server
[16];
843 struct acpi_ibft_nic
{
844 struct acpi_ibft_header header
;
846 u8 subnet_mask_prefix
;
850 u8 secondary_dns
[16];
859 struct acpi_ibft_target
{
860 struct acpi_ibft_header header
;
861 u8 target_ip_address
[16];
862 u16 target_ip_socket
;
863 u8 target_boot_lun
[8];
866 u16 target_name_length
;
867 u16 target_name_offset
;
868 u16 chap_name_length
;
869 u16 chap_name_offset
;
870 u16 chap_secret_length
;
871 u16 chap_secret_offset
;
872 u16 reverse_chap_name_length
;
873 u16 reverse_chap_name_offset
;
874 u16 reverse_chap_secret_length
;
875 u16 reverse_chap_secret_offset
;
878 /*******************************************************************************
880 * MADT - Multiple APIC Description Table
882 ******************************************************************************/
884 struct acpi_table_madt
{
885 struct acpi_table_header header
; /* Common ACPI table header */
886 u32 address
; /* Physical address of local APIC */
892 #define ACPI_MADT_PCAT_COMPAT (1) /* 00: System also has dual 8259s */
894 /* Values for PCATCompat flag */
896 #define ACPI_MADT_DUAL_PIC 0
897 #define ACPI_MADT_MULTIPLE_APIC 1
899 /* Values for subtable type in struct acpi_subtable_header */
901 enum acpi_madt_type
{
902 ACPI_MADT_TYPE_LOCAL_APIC
= 0,
903 ACPI_MADT_TYPE_IO_APIC
= 1,
904 ACPI_MADT_TYPE_INTERRUPT_OVERRIDE
= 2,
905 ACPI_MADT_TYPE_NMI_SOURCE
= 3,
906 ACPI_MADT_TYPE_LOCAL_APIC_NMI
= 4,
907 ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE
= 5,
908 ACPI_MADT_TYPE_IO_SAPIC
= 6,
909 ACPI_MADT_TYPE_LOCAL_SAPIC
= 7,
910 ACPI_MADT_TYPE_INTERRUPT_SOURCE
= 8,
911 ACPI_MADT_TYPE_RESERVED
= 9 /* 9 and greater are reserved */
915 * MADT Sub-tables, correspond to Type in struct acpi_subtable_header
918 /* 0: Processor Local APIC */
920 struct acpi_madt_local_apic
{
921 struct acpi_subtable_header header
;
922 u8 processor_id
; /* ACPI processor id */
923 u8 id
; /* Processor's local APIC id */
929 struct acpi_madt_io_apic
{
930 struct acpi_subtable_header header
;
931 u8 id
; /* I/O APIC ID */
932 u8 reserved
; /* Reserved - must be zero */
933 u32 address
; /* APIC physical address */
934 u32 global_irq_base
; /* Global system interrupt where INTI lines start */
937 /* 2: Interrupt Override */
939 struct acpi_madt_interrupt_override
{
940 struct acpi_subtable_header header
;
941 u8 bus
; /* 0 - ISA */
942 u8 source_irq
; /* Interrupt source (IRQ) */
943 u32 global_irq
; /* Global system interrupt */
949 struct acpi_madt_nmi_source
{
950 struct acpi_subtable_header header
;
952 u32 global_irq
; /* Global system interrupt */
955 /* 4: Local APIC NMI */
957 struct acpi_madt_local_apic_nmi
{
958 struct acpi_subtable_header header
;
959 u8 processor_id
; /* ACPI processor id */
961 u8 lint
; /* LINTn to which NMI is connected */
964 /* 5: Address Override */
966 struct acpi_madt_local_apic_override
{
967 struct acpi_subtable_header header
;
968 u16 reserved
; /* Reserved, must be zero */
969 u64 address
; /* APIC physical address */
974 struct acpi_madt_io_sapic
{
975 struct acpi_subtable_header header
;
976 u8 id
; /* I/O SAPIC ID */
977 u8 reserved
; /* Reserved, must be zero */
978 u32 global_irq_base
; /* Global interrupt for SAPIC start */
979 u64 address
; /* SAPIC physical address */
984 struct acpi_madt_local_sapic
{
985 struct acpi_subtable_header header
;
986 u8 processor_id
; /* ACPI processor id */
987 u8 id
; /* SAPIC ID */
988 u8 eid
; /* SAPIC EID */
989 u8 reserved
[3]; /* Reserved, must be zero */
991 u32 uid
; /* Numeric UID - ACPI 3.0 */
992 char uid_string
[1]; /* String UID - ACPI 3.0 */
995 /* 8: Platform Interrupt Source */
997 struct acpi_madt_interrupt_source
{
998 struct acpi_subtable_header header
;
1000 u8 type
; /* 1=PMI, 2=INIT, 3=corrected */
1001 u8 id
; /* Processor ID */
1002 u8 eid
; /* Processor EID */
1003 u8 io_sapic_vector
; /* Vector value for PMI interrupts */
1004 u32 global_irq
; /* Global system interrupt */
1005 u32 flags
; /* Interrupt Source Flags */
1008 /* Flags field above */
1010 #define ACPI_MADT_CPEI_OVERRIDE (1)
1013 * Common flags fields for MADT subtables
1016 /* MADT Local APIC flags (lapic_flags) */
1018 #define ACPI_MADT_ENABLED (1) /* 00: Processor is usable if set */
1020 /* MADT MPS INTI flags (inti_flags) */
1022 #define ACPI_MADT_POLARITY_MASK (3) /* 00-01: Polarity of APIC I/O input signals */
1023 #define ACPI_MADT_TRIGGER_MASK (3<<2) /* 02-03: Trigger mode of APIC input signals */
1025 /* Values for MPS INTI flags */
1027 #define ACPI_MADT_POLARITY_CONFORMS 0
1028 #define ACPI_MADT_POLARITY_ACTIVE_HIGH 1
1029 #define ACPI_MADT_POLARITY_RESERVED 2
1030 #define ACPI_MADT_POLARITY_ACTIVE_LOW 3
1032 #define ACPI_MADT_TRIGGER_CONFORMS (0)
1033 #define ACPI_MADT_TRIGGER_EDGE (1<<2)
1034 #define ACPI_MADT_TRIGGER_RESERVED (2<<2)
1035 #define ACPI_MADT_TRIGGER_LEVEL (3<<2)
1037 /*******************************************************************************
1039 * MCFG - PCI Memory Mapped Configuration table and sub-table
1041 ******************************************************************************/
1043 struct acpi_table_mcfg
{
1044 struct acpi_table_header header
; /* Common ACPI table header */
1050 struct acpi_mcfg_allocation
{
1051 u64 address
; /* Base address, processor-relative */
1052 u16 pci_segment
; /* PCI segment group number */
1053 u8 start_bus_number
; /* Starting PCI Bus number */
1054 u8 end_bus_number
; /* Final PCI Bus number */
1058 /*******************************************************************************
1060 * SBST - Smart Battery Specification Table
1062 ******************************************************************************/
1064 struct acpi_table_sbst
{
1065 struct acpi_table_header header
; /* Common ACPI table header */
1071 /*******************************************************************************
1073 * SLIT - System Locality Distance Information Table
1075 ******************************************************************************/
1077 struct acpi_table_slit
{
1078 struct acpi_table_header header
; /* Common ACPI table header */
1080 u8 entry
[1]; /* Real size = localities^2 */
1083 /*******************************************************************************
1085 * SPCR - Serial Port Console Redirection table
1087 ******************************************************************************/
1089 struct acpi_table_spcr
{
1090 struct acpi_table_header header
; /* Common ACPI table header */
1091 u8 interface_type
; /* 0=full 16550, 1=subset of 16550 */
1093 struct acpi_generic_address serial_port
;
1113 /*******************************************************************************
1115 * SPMI - Server Platform Management Interface table
1117 ******************************************************************************/
1119 struct acpi_table_spmi
{
1120 struct acpi_table_header header
; /* Common ACPI table header */
1123 u16 spec_revision
; /* Version of IPMI */
1125 u8 gpe_number
; /* GPE assigned */
1129 struct acpi_generic_address ipmi_register
;
1136 /*******************************************************************************
1138 * SRAT - System Resource Affinity Table
1140 ******************************************************************************/
1142 struct acpi_table_srat
{
1143 struct acpi_table_header header
; /* Common ACPI table header */
1144 u32 table_revision
; /* Must be value '1' */
1145 u64 reserved
; /* Reserved, must be zero */
1148 /* Values for subtable type in struct acpi_subtable_header */
1150 enum acpi_srat_type
{
1151 ACPI_SRAT_TYPE_CPU_AFFINITY
= 0,
1152 ACPI_SRAT_TYPE_MEMORY_AFFINITY
= 1,
1153 ACPI_SRAT_TYPE_RESERVED
= 2
1156 /* SRAT sub-tables */
1158 struct acpi_srat_cpu_affinity
{
1159 struct acpi_subtable_header header
;
1160 u8 proximity_domain_lo
;
1164 u8 proximity_domain_hi
[3];
1165 u32 reserved
; /* Reserved, must be zero */
1170 #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
1172 struct acpi_srat_mem_affinity
{
1173 struct acpi_subtable_header header
;
1174 u32 proximity_domain
;
1175 u16 reserved
; /* Reserved, must be zero */
1180 u64 reserved2
; /* Reserved, must be zero */
1185 #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */
1186 #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
1187 #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */
1189 /*******************************************************************************
1191 * TCPA - Trusted Computing Platform Alliance table
1193 ******************************************************************************/
1195 struct acpi_table_tcpa
{
1196 struct acpi_table_header header
; /* Common ACPI table header */
1198 u32 max_log_length
; /* Maximum length for the event log area */
1199 u64 log_address
; /* Address of the event log area */
1202 /*******************************************************************************
1204 * UEFI - UEFI Boot optimization Table
1206 ******************************************************************************/
1208 struct acpi_table_uefi
{
1209 struct acpi_table_header header
; /* Common ACPI table header */
1210 u8 identifier
[16]; /* UUID identifier */
1211 u16 data_offset
; /* Offset of remaining data in table */
1215 /*******************************************************************************
1217 * WDAT - Watchdog Action Table
1219 ******************************************************************************/
1221 struct acpi_table_wdat
{
1222 struct acpi_table_header header
; /* Common ACPI table header */
1223 u32 header_length
; /* Watchdog Header Length */
1224 u16 pci_segment
; /* PCI Segment number */
1225 u8 pci_bus
; /* PCI Bus number */
1226 u8 pci_device
; /* PCI Device number */
1227 u8 pci_function
; /* PCI Function number */
1229 u32 timer_period
; /* Period of one timer count (msec) */
1230 u32 max_count
; /* Maximum counter value supported */
1231 u32 min_count
; /* Minimum counter value */
1234 u32 entries
; /* Number of watchdog entries that follow */
1237 /* WDAT Instruction Entries (actions) */
1239 struct acpi_wdat_entry
{
1240 struct acpi_whea_header whea_header
; /* Common header for WHEA tables */
1243 /* Values for Action field above */
1245 enum acpi_wdat_actions
{
1246 ACPI_WDAT_RESET
= 1,
1247 ACPI_WDAT_GET_CURRENT_COUNTDOWN
= 4,
1248 ACPI_WDAT_GET_COUNTDOWN
= 5,
1249 ACPI_WDAT_SET_COUNTDOWN
= 6,
1250 ACPI_WDAT_GET_RUNNING_STATE
= 8,
1251 ACPI_WDAT_SET_RUNNING_STATE
= 9,
1252 ACPI_WDAT_GET_STOPPED_STATE
= 10,
1253 ACPI_WDAT_SET_STOPPED_STATE
= 11,
1254 ACPI_WDAT_GET_REBOOT
= 16,
1255 ACPI_WDAT_SET_REBOOT
= 17,
1256 ACPI_WDAT_GET_SHUTDOWN
= 18,
1257 ACPI_WDAT_SET_SHUTDOWN
= 19,
1258 ACPI_WDAT_GET_STATUS
= 32,
1259 ACPI_WDAT_SET_STATUS
= 33,
1260 ACPI_WDAT_ACTION_RESERVED
= 34 /* 34 and greater are reserved */
1263 /* Values for Instruction field above */
1265 enum acpi_wdat_instructions
{
1266 ACPI_WDAT_READ_VALUE
= 0,
1267 ACPI_WDAT_READ_COUNTDOWN
= 1,
1268 ACPI_WDAT_WRITE_VALUE
= 2,
1269 ACPI_WDAT_WRITE_COUNTDOWN
= 3,
1270 ACPI_WDAT_INSTRUCTION_RESERVED
= 4, /* 4 and greater are reserved */
1271 ACPI_WDAT_PRESERVE_REGISTER
= 0x80 /* Except for this value */
1274 /*******************************************************************************
1276 * WDRT - Watchdog Resource Table
1278 ******************************************************************************/
1280 struct acpi_table_wdrt
{
1281 struct acpi_table_header header
; /* Common ACPI table header */
1282 u32 header_length
; /* Watchdog Header Length */
1283 u8 pci_segment
; /* PCI Segment number */
1284 u8 pci_bus
; /* PCI Bus number */
1285 u8 pci_device
; /* PCI Device number */
1286 u8 pci_function
; /* PCI Function number */
1287 u32 timer_period
; /* Period of one timer count (msec) */
1288 u32 max_count
; /* Maximum counter value supported */
1289 u32 min_count
; /* Minimum counter value */
1292 u32 entries
; /* Number of watchdog entries that follow */
1297 #define ACPI_WDRT_TIMER_ENABLED (1) /* 00: Timer enabled */
1299 /* Reset to default packing */
1303 #endif /* __ACTBL1_H__ */