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
304 ******************************************************************************/
306 struct acpi_table_dmar
{
307 struct acpi_table_header header
; /* Common ACPI table header */
308 u8 width
; /* Host Address Width */
313 /* DMAR subtable header */
315 struct acpi_dmar_header
{
320 /* Values for subtable type in struct acpi_dmar_header */
322 enum acpi_dmar_type
{
323 ACPI_DMAR_TYPE_HARDWARE_UNIT
= 0,
324 ACPI_DMAR_TYPE_RESERVED_MEMORY
= 1,
325 ACPI_DMAR_TYPE_ATSR
= 2,
326 ACPI_DMAR_TYPE_RESERVED
= 3 /* 3 and greater are reserved */
329 struct acpi_dmar_device_scope
{
337 /* Values for entry_type in struct acpi_dmar_device_scope */
339 enum acpi_dmar_scope_type
{
340 ACPI_DMAR_SCOPE_TYPE_NOT_USED
= 0,
341 ACPI_DMAR_SCOPE_TYPE_ENDPOINT
= 1,
342 ACPI_DMAR_SCOPE_TYPE_BRIDGE
= 2,
343 ACPI_DMAR_SCOPE_TYPE_IOAPIC
= 3,
344 ACPI_DMAR_SCOPE_TYPE_HPET
= 4,
345 ACPI_DMAR_SCOPE_TYPE_RESERVED
= 5 /* 5 and greater are reserved */
348 struct acpi_dmar_pci_path
{
354 * DMAR Sub-tables, correspond to Type in struct acpi_dmar_header
357 /* 0: Hardware Unit Definition */
359 struct acpi_dmar_hardware_unit
{
360 struct acpi_dmar_header header
;
364 u64 address
; /* Register Base Address */
369 #define ACPI_DMAR_INCLUDE_ALL (1)
371 /* 1: Reserved Memory Defininition */
373 struct acpi_dmar_reserved_memory
{
374 struct acpi_dmar_header header
;
377 u64 base_address
; /* 4_k aligned base address */
378 u64 end_address
; /* 4_k aligned limit address */
383 #define ACPI_DMAR_ALLOW_ALL (1)
385 /*******************************************************************************
387 * ECDT - Embedded Controller Boot Resources Table
389 ******************************************************************************/
391 struct acpi_table_ecdt
{
392 struct acpi_table_header header
; /* Common ACPI table header */
393 struct acpi_generic_address control
; /* Address of EC command/status register */
394 struct acpi_generic_address data
; /* Address of EC data register */
395 u32 uid
; /* Unique ID - must be same as the EC _UID method */
396 u8 gpe
; /* The GPE for the EC */
397 u8 id
[1]; /* Full namepath of the EC in the ACPI namespace */
400 /*******************************************************************************
402 * EINJ - Error Injection Table
404 ******************************************************************************/
406 struct acpi_table_einj
{
407 struct acpi_table_header header
; /* Common ACPI table header */
413 /* EINJ Injection Instruction Entries (actions) */
415 struct acpi_einj_entry
{
416 struct acpi_whea_header whea_header
; /* Common header for WHEA tables */
419 /* Values for Action field above */
421 enum acpi_einj_actions
{
422 ACPI_EINJ_BEGIN_OPERATION
= 0,
423 ACPI_EINJ_GET_TRIGGER_TABLE
= 1,
424 ACPI_EINJ_SET_ERROR_TYPE
= 2,
425 ACPI_EINJ_GET_ERROR_TYPE
= 3,
426 ACPI_EINJ_END_OPERATION
= 4,
427 ACPI_EINJ_EXECUTE_OPERATION
= 5,
428 ACPI_EINJ_CHECK_BUSY_STATUS
= 6,
429 ACPI_EINJ_GET_COMMAND_STATUS
= 7,
430 ACPI_EINJ_ACTION_RESERVED
= 8, /* 8 and greater are reserved */
431 ACPI_EINJ_TRIGGER_ERROR
= 0xFF /* Except for this value */
434 /* Values for Instruction field above */
436 enum acpi_einj_instructions
{
437 ACPI_EINJ_READ_REGISTER
= 0,
438 ACPI_EINJ_READ_REGISTER_VALUE
= 1,
439 ACPI_EINJ_WRITE_REGISTER
= 2,
440 ACPI_EINJ_WRITE_REGISTER_VALUE
= 3,
442 ACPI_EINJ_INSTRUCTION_RESERVED
= 5 /* 5 and greater are reserved */
445 /* EINJ Trigger Error Action Table */
447 struct acpi_einj_trigger
{
454 /*******************************************************************************
456 * ERST - Error Record Serialization Table
458 ******************************************************************************/
460 struct acpi_table_erst
{
461 struct acpi_table_header header
; /* Common ACPI table header */
467 /* ERST Serialization Entries (actions) */
469 struct acpi_erst_entry
{
470 struct acpi_whea_header whea_header
; /* Common header for WHEA tables */
473 /* Values for Action field above */
475 enum acpi_erst_actions
{
476 ACPI_ERST_BEGIN_WRITE_OPERATION
= 0,
477 ACPI_ERST_BEGIN_READ_OPERATION
= 1,
478 ACPI_ERST_BETGIN_CLEAR_OPERATION
= 2,
479 ACPI_ERST_END_OPERATION
= 3,
480 ACPI_ERST_SET_RECORD_OFFSET
= 4,
481 ACPI_ERST_EXECUTE_OPERATION
= 5,
482 ACPI_ERST_CHECK_BUSY_STATUS
= 6,
483 ACPI_ERST_GET_COMMAND_STATUS
= 7,
484 ACPI_ERST_GET_RECORD_IDENTIFIER
= 8,
485 ACPI_ERST_SET_RECORD_IDENTIFIER
= 9,
486 ACPI_ERST_GET_RECORD_COUNT
= 10,
487 ACPI_ERST_BEGIN_DUMMY_WRIITE
= 11,
488 ACPI_ERST_NOT_USED
= 12,
489 ACPI_ERST_GET_ERROR_RANGE
= 13,
490 ACPI_ERST_GET_ERROR_LENGTH
= 14,
491 ACPI_ERST_GET_ERROR_ATTRIBUTES
= 15,
492 ACPI_ERST_ACTION_RESERVED
= 16 /* 16 and greater are reserved */
495 /* Values for Instruction field above */
497 enum acpi_erst_instructions
{
498 ACPI_ERST_READ_REGISTER
= 0,
499 ACPI_ERST_READ_REGISTER_VALUE
= 1,
500 ACPI_ERST_WRITE_REGISTER
= 2,
501 ACPI_ERST_WRITE_REGISTER_VALUE
= 3,
503 ACPI_ERST_LOAD_VAR1
= 5,
504 ACPI_ERST_LOAD_VAR2
= 6,
505 ACPI_ERST_STORE_VAR1
= 7,
507 ACPI_ERST_SUBTRACT
= 9,
508 ACPI_ERST_ADD_VALUE
= 10,
509 ACPI_ERST_SUBTRACT_VALUE
= 11,
510 ACPI_ERST_STALL
= 12,
511 ACPI_ERST_STALL_WHILE_TRUE
= 13,
512 ACPI_ERST_SKIP_NEXT_IF_TRUE
= 14,
514 ACPI_ERST_SET_SRC_ADDRESS_BASE
= 16,
515 ACPI_ERST_SET_DST_ADDRESS_BASE
= 17,
516 ACPI_ERST_MOVE_DATA
= 18,
517 ACPI_ERST_INSTRUCTION_RESERVED
= 19 /* 19 and greater are reserved */
520 /*******************************************************************************
522 * HEST - Hardware Error Source Table
524 ******************************************************************************/
526 struct acpi_table_hest
{
527 struct acpi_table_header header
; /* Common ACPI table header */
528 u32 error_source_count
;
531 /* HEST subtable header */
533 struct acpi_hest_header
{
537 /* Values for Type field above for subtables */
539 enum acpi_hest_types
{
540 ACPI_HEST_TYPE_XPF_MACHINE_CHECK
= 0,
541 ACPI_HEST_TYPE_XPF_CORRECTED_MACHINE_CHECK
= 1,
542 ACPI_HEST_TYPE_XPF_UNUSED
= 2,
543 ACPI_HEST_TYPE_XPF_NON_MASKABLE_INTERRUPT
= 3,
544 ACPI_HEST_TYPE_IPF_CORRECTED_MACHINE_CHECK
= 4,
545 ACPI_HEST_TYPE_IPF_CORRECTED_PLATFORM_ERROR
= 5,
546 ACPI_HEST_TYPE_AER_ROOT_PORT
= 6,
547 ACPI_HEST_TYPE_AER_ENDPOINT
= 7,
548 ACPI_HEST_TYPE_AER_BRIDGE
= 8,
549 ACPI_HEST_TYPE_GENERIC_HARDWARE_ERROR_SOURCE
= 9,
550 ACPI_HEST_TYPE_RESERVED
= 10 /* 10 and greater are reserved */
557 /* XPF Machine Check Error Bank */
559 struct acpi_hest_xpf_error_bank
{
561 u8 clear_status_on_init
;
563 u8 config_write_enable
;
564 u32 control_register
;
565 u64 control_init_data
;
567 u32 address_register
;
571 /* Generic Error Status */
573 struct acpi_hest_generic_status
{
581 /* Generic Error Data */
583 struct acpi_hest_generic_data
{
589 u32 error_data_length
;
594 /* Common HEST structure for PCI/AER types below (6,7,8) */
596 struct acpi_hest_aer_common
{
598 u16 config_write_enable
;
601 u32 records_to_pre_allocate
;
602 u32 max_sections_per_record
;
608 u32 uncorrectable_error_mask
;
609 u32 uncorrectable_error_severity
;
610 u32 correctable_error_mask
;
611 u32 advanced_error_cababilities
;
614 /* Hardware Error Notification */
616 struct acpi_hest_notify
{
619 u16 config_write_enable
;
622 u32 polling_threshold_value
;
623 u32 polling_threshold_window
;
624 u32 error_threshold_value
;
625 u32 error_threshold_window
;
628 /* Values for Notify Type field above */
630 enum acpi_hest_notify_types
{
631 ACPI_HEST_NOTIFY_POLLED
= 0,
632 ACPI_HEST_NOTIFY_EXTERNAL
= 1,
633 ACPI_HEST_NOTIFY_LOCAL
= 2,
634 ACPI_HEST_NOTIFY_SCI
= 3,
635 ACPI_HEST_NOTIFY_NMI
= 4,
636 ACPI_HEST_NOTIFY_RESERVED
= 5 /* 5 and greater are reserved */
642 * From WHEA Design Document, 16 May 2007.
643 * Note: There is no subtable type 2 in this version of the document,
644 * and there are two different subtable type 3s.
647 /* 0: XPF Machine Check Exception */
649 struct acpi_hest_xpf_machine_check
{
650 struct acpi_hest_header header
;
652 u16 config_write_enable
;
655 u32 records_to_pre_allocate
;
656 u32 max_sections_per_record
;
657 u64 global_capability_data
;
658 u64 global_control_data
;
659 u8 num_hardware_banks
;
663 /* 1: XPF Corrected Machine Check */
665 struct acpi_table_hest_xpf_corrected
{
666 struct acpi_hest_header header
;
668 u16 config_write_enable
;
671 u32 records_to_pre_allocate
;
672 u32 max_sections_per_record
;
673 struct acpi_hest_notify notify
;
674 u8 num_hardware_banks
;
678 /* 3: XPF Non-Maskable Interrupt */
680 struct acpi_hest_xpf_nmi
{
681 struct acpi_hest_header header
;
684 u32 records_to_pre_allocate
;
685 u32 max_sections_per_record
;
686 u32 max_raw_data_length
;
689 /* 4: IPF Corrected Machine Check */
691 struct acpi_hest_ipf_corrected
{
692 struct acpi_hest_header header
;
697 /* 5: IPF Corrected Platform Error */
699 struct acpi_hest_ipf_corrected_platform
{
700 struct acpi_hest_header header
;
705 /* 6: PCI Express Root Port AER */
707 struct acpi_hest_aer_root
{
708 struct acpi_hest_header header
;
709 struct acpi_hest_aer_common aer
;
710 u32 root_error_command
;
713 /* 7: PCI Express AER (AER Endpoint) */
715 struct acpi_hest_aer
{
716 struct acpi_hest_header header
;
717 struct acpi_hest_aer_common aer
;
720 /* 8: PCI Express/PCI-X Bridge AER */
722 struct acpi_hest_aer_bridge
{
723 struct acpi_hest_header header
;
724 struct acpi_hest_aer_common aer
;
725 u32 secondary_uncorrectable_error_mask
;
726 u32 secondary_uncorrectable_error_severity
;
727 u32 secondary_advanced_capabilities
;
730 /* 9: Generic Hardware Error Source */
732 struct acpi_hest_generic
{
733 struct acpi_hest_header header
;
735 u16 related_source_id
;
736 u8 config_write_enable
;
738 u32 records_to_pre_allocate
;
739 u32 max_sections_per_record
;
740 u32 max_raw_data_length
;
741 struct acpi_generic_address error_status_address
;
742 struct acpi_hest_notify notify
;
743 u32 error_status_block_length
;
746 /*******************************************************************************
748 * HPET - High Precision Event Timer table
750 ******************************************************************************/
752 struct acpi_table_hpet
{
753 struct acpi_table_header header
; /* Common ACPI table header */
754 u32 id
; /* Hardware ID of event timer block */
755 struct acpi_generic_address address
; /* Address of event timer block */
756 u8 sequence
; /* HPET sequence number */
757 u16 minimum_tick
; /* Main counter min tick, periodic mode */
763 #define ACPI_HPET_PAGE_PROTECT (1) /* 00: No page protection */
764 #define ACPI_HPET_PAGE_PROTECT_4 (1<<1) /* 01: 4KB page protected */
765 #define ACPI_HPET_PAGE_PROTECT_64 (1<<2) /* 02: 64KB page protected */
767 /*! [End] no source code translation !*/
769 /*******************************************************************************
771 * IBFT - Boot Firmware Table
773 ******************************************************************************/
775 struct acpi_table_ibft
{
776 struct acpi_table_header header
; /* Common ACPI table header */
780 /* IBFT common subtable header */
782 struct acpi_ibft_header
{
790 /* Values for Type field above */
792 enum acpi_ibft_type
{
793 ACPI_IBFT_TYPE_NOT_USED
= 0,
794 ACPI_IBFT_TYPE_CONTROL
= 1,
795 ACPI_IBFT_TYPE_INITIATOR
= 2,
796 ACPI_IBFT_TYPE_NIC
= 3,
797 ACPI_IBFT_TYPE_TARGET
= 4,
798 ACPI_IBFT_TYPE_EXTENSIONS
= 5,
799 ACPI_IBFT_TYPE_RESERVED
= 6 /* 6 and greater are reserved */
804 struct acpi_ibft_control
{
805 struct acpi_ibft_header header
;
807 u16 initiator_offset
;
814 struct acpi_ibft_initiator
{
815 struct acpi_ibft_header header
;
818 u8 primary_server
[16];
819 u8 secondary_server
[16];
824 struct acpi_ibft_nic
{
825 struct acpi_ibft_header header
;
827 u8 subnet_mask_prefix
;
831 u8 secondary_dns
[16];
840 struct acpi_ibft_target
{
841 struct acpi_ibft_header header
;
842 u8 target_ip_address
[16];
843 u16 target_ip_socket
;
844 u8 target_boot_lun
[8];
847 u16 target_name_length
;
848 u16 target_name_offset
;
849 u16 chap_name_length
;
850 u16 chap_name_offset
;
851 u16 chap_secret_length
;
852 u16 chap_secret_offset
;
853 u16 reverse_chap_name_length
;
854 u16 reverse_chap_name_offset
;
855 u16 reverse_chap_secret_length
;
856 u16 reverse_chap_secret_offset
;
859 /*******************************************************************************
861 * MADT - Multiple APIC Description Table
863 ******************************************************************************/
865 struct acpi_table_madt
{
866 struct acpi_table_header header
; /* Common ACPI table header */
867 u32 address
; /* Physical address of local APIC */
873 #define ACPI_MADT_PCAT_COMPAT (1) /* 00: System also has dual 8259s */
875 /* Values for PCATCompat flag */
877 #define ACPI_MADT_DUAL_PIC 0
878 #define ACPI_MADT_MULTIPLE_APIC 1
880 /* Values for subtable type in struct acpi_subtable_header */
882 enum acpi_madt_type
{
883 ACPI_MADT_TYPE_LOCAL_APIC
= 0,
884 ACPI_MADT_TYPE_IO_APIC
= 1,
885 ACPI_MADT_TYPE_INTERRUPT_OVERRIDE
= 2,
886 ACPI_MADT_TYPE_NMI_SOURCE
= 3,
887 ACPI_MADT_TYPE_LOCAL_APIC_NMI
= 4,
888 ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE
= 5,
889 ACPI_MADT_TYPE_IO_SAPIC
= 6,
890 ACPI_MADT_TYPE_LOCAL_SAPIC
= 7,
891 ACPI_MADT_TYPE_INTERRUPT_SOURCE
= 8,
892 ACPI_MADT_TYPE_RESERVED
= 9 /* 9 and greater are reserved */
896 * MADT Sub-tables, correspond to Type in struct acpi_subtable_header
899 /* 0: Processor Local APIC */
901 struct acpi_madt_local_apic
{
902 struct acpi_subtable_header header
;
903 u8 processor_id
; /* ACPI processor id */
904 u8 id
; /* Processor's local APIC id */
910 struct acpi_madt_io_apic
{
911 struct acpi_subtable_header header
;
912 u8 id
; /* I/O APIC ID */
913 u8 reserved
; /* Reserved - must be zero */
914 u32 address
; /* APIC physical address */
915 u32 global_irq_base
; /* Global system interrupt where INTI lines start */
918 /* 2: Interrupt Override */
920 struct acpi_madt_interrupt_override
{
921 struct acpi_subtable_header header
;
922 u8 bus
; /* 0 - ISA */
923 u8 source_irq
; /* Interrupt source (IRQ) */
924 u32 global_irq
; /* Global system interrupt */
930 struct acpi_madt_nmi_source
{
931 struct acpi_subtable_header header
;
933 u32 global_irq
; /* Global system interrupt */
936 /* 4: Local APIC NMI */
938 struct acpi_madt_local_apic_nmi
{
939 struct acpi_subtable_header header
;
940 u8 processor_id
; /* ACPI processor id */
942 u8 lint
; /* LINTn to which NMI is connected */
945 /* 5: Address Override */
947 struct acpi_madt_local_apic_override
{
948 struct acpi_subtable_header header
;
949 u16 reserved
; /* Reserved, must be zero */
950 u64 address
; /* APIC physical address */
955 struct acpi_madt_io_sapic
{
956 struct acpi_subtable_header header
;
957 u8 id
; /* I/O SAPIC ID */
958 u8 reserved
; /* Reserved, must be zero */
959 u32 global_irq_base
; /* Global interrupt for SAPIC start */
960 u64 address
; /* SAPIC physical address */
965 struct acpi_madt_local_sapic
{
966 struct acpi_subtable_header header
;
967 u8 processor_id
; /* ACPI processor id */
968 u8 id
; /* SAPIC ID */
969 u8 eid
; /* SAPIC EID */
970 u8 reserved
[3]; /* Reserved, must be zero */
972 u32 uid
; /* Numeric UID - ACPI 3.0 */
973 char uid_string
[1]; /* String UID - ACPI 3.0 */
976 /* 8: Platform Interrupt Source */
978 struct acpi_madt_interrupt_source
{
979 struct acpi_subtable_header header
;
981 u8 type
; /* 1=PMI, 2=INIT, 3=corrected */
982 u8 id
; /* Processor ID */
983 u8 eid
; /* Processor EID */
984 u8 io_sapic_vector
; /* Vector value for PMI interrupts */
985 u32 global_irq
; /* Global system interrupt */
986 u32 flags
; /* Interrupt Source Flags */
989 /* Flags field above */
991 #define ACPI_MADT_CPEI_OVERRIDE (1)
994 * Common flags fields for MADT subtables
997 /* MADT Local APIC flags (lapic_flags) */
999 #define ACPI_MADT_ENABLED (1) /* 00: Processor is usable if set */
1001 /* MADT MPS INTI flags (inti_flags) */
1003 #define ACPI_MADT_POLARITY_MASK (3) /* 00-01: Polarity of APIC I/O input signals */
1004 #define ACPI_MADT_TRIGGER_MASK (3<<2) /* 02-03: Trigger mode of APIC input signals */
1006 /* Values for MPS INTI flags */
1008 #define ACPI_MADT_POLARITY_CONFORMS 0
1009 #define ACPI_MADT_POLARITY_ACTIVE_HIGH 1
1010 #define ACPI_MADT_POLARITY_RESERVED 2
1011 #define ACPI_MADT_POLARITY_ACTIVE_LOW 3
1013 #define ACPI_MADT_TRIGGER_CONFORMS (0)
1014 #define ACPI_MADT_TRIGGER_EDGE (1<<2)
1015 #define ACPI_MADT_TRIGGER_RESERVED (2<<2)
1016 #define ACPI_MADT_TRIGGER_LEVEL (3<<2)
1018 /*******************************************************************************
1020 * MCFG - PCI Memory Mapped Configuration table and sub-table
1022 ******************************************************************************/
1024 struct acpi_table_mcfg
{
1025 struct acpi_table_header header
; /* Common ACPI table header */
1031 struct acpi_mcfg_allocation
{
1032 u64 address
; /* Base address, processor-relative */
1033 u16 pci_segment
; /* PCI segment group number */
1034 u8 start_bus_number
; /* Starting PCI Bus number */
1035 u8 end_bus_number
; /* Final PCI Bus number */
1039 /*******************************************************************************
1041 * SBST - Smart Battery Specification Table
1043 ******************************************************************************/
1045 struct acpi_table_sbst
{
1046 struct acpi_table_header header
; /* Common ACPI table header */
1052 /*******************************************************************************
1054 * SLIT - System Locality Distance Information Table
1056 ******************************************************************************/
1058 struct acpi_table_slit
{
1059 struct acpi_table_header header
; /* Common ACPI table header */
1061 u8 entry
[1]; /* Real size = localities^2 */
1064 /*******************************************************************************
1066 * SPCR - Serial Port Console Redirection table
1068 ******************************************************************************/
1070 struct acpi_table_spcr
{
1071 struct acpi_table_header header
; /* Common ACPI table header */
1072 u8 interface_type
; /* 0=full 16550, 1=subset of 16550 */
1074 struct acpi_generic_address serial_port
;
1094 /*******************************************************************************
1096 * SPMI - Server Platform Management Interface table
1098 ******************************************************************************/
1100 struct acpi_table_spmi
{
1101 struct acpi_table_header header
; /* Common ACPI table header */
1104 u16 spec_revision
; /* Version of IPMI */
1106 u8 gpe_number
; /* GPE assigned */
1110 struct acpi_generic_address ipmi_register
;
1117 /*******************************************************************************
1119 * SRAT - System Resource Affinity Table
1121 ******************************************************************************/
1123 struct acpi_table_srat
{
1124 struct acpi_table_header header
; /* Common ACPI table header */
1125 u32 table_revision
; /* Must be value '1' */
1126 u64 reserved
; /* Reserved, must be zero */
1129 /* Values for subtable type in struct acpi_subtable_header */
1131 enum acpi_srat_type
{
1132 ACPI_SRAT_TYPE_CPU_AFFINITY
= 0,
1133 ACPI_SRAT_TYPE_MEMORY_AFFINITY
= 1,
1134 ACPI_SRAT_TYPE_RESERVED
= 2
1137 /* SRAT sub-tables */
1139 struct acpi_srat_cpu_affinity
{
1140 struct acpi_subtable_header header
;
1141 u8 proximity_domain_lo
;
1145 u8 proximity_domain_hi
[3];
1146 u32 reserved
; /* Reserved, must be zero */
1151 #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
1153 struct acpi_srat_mem_affinity
{
1154 struct acpi_subtable_header header
;
1155 u32 proximity_domain
;
1156 u16 reserved
; /* Reserved, must be zero */
1159 u32 memory_type
; /* See acpi_address_range_id */
1161 u64 reserved1
; /* Reserved, must be zero */
1166 #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */
1167 #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
1168 #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */
1170 /*******************************************************************************
1172 * TCPA - Trusted Computing Platform Alliance table
1174 ******************************************************************************/
1176 struct acpi_table_tcpa
{
1177 struct acpi_table_header header
; /* Common ACPI table header */
1179 u32 max_log_length
; /* Maximum length for the event log area */
1180 u64 log_address
; /* Address of the event log area */
1183 /*******************************************************************************
1185 * UEFI - UEFI Boot optimization Table
1187 ******************************************************************************/
1189 struct acpi_table_uefi
{
1190 struct acpi_table_header header
; /* Common ACPI table header */
1191 u8 identifier
[16]; /* UUID identifier */
1192 u16 data_offset
; /* Offset of remaining data in table */
1196 /*******************************************************************************
1198 * WDAT - Watchdog Action Table
1200 ******************************************************************************/
1202 struct acpi_table_wdat
{
1203 struct acpi_table_header header
; /* Common ACPI table header */
1204 u32 header_length
; /* Watchdog Header Length */
1205 u16 pci_segment
; /* PCI Segment number */
1206 u8 pci_bus
; /* PCI Bus number */
1207 u8 pci_device
; /* PCI Device number */
1208 u8 pci_function
; /* PCI Function number */
1210 u32 timer_period
; /* Period of one timer count (msec) */
1211 u32 max_count
; /* Maximum counter value supported */
1212 u32 min_count
; /* Minimum counter value */
1215 u32 entries
; /* Number of watchdog entries that follow */
1218 /* WDAT Instruction Entries (actions) */
1220 struct acpi_wdat_entry
{
1221 struct acpi_whea_header whea_header
; /* Common header for WHEA tables */
1224 /* Values for Action field above */
1226 enum acpi_wdat_actions
{
1227 ACPI_WDAT_RESET
= 1,
1228 ACPI_WDAT_GET_CURRENT_COUNTDOWN
= 4,
1229 ACPI_WDAT_GET_COUNTDOWN
= 5,
1230 ACPI_WDAT_SET_COUNTDOWN
= 6,
1231 ACPI_WDAT_GET_RUNNING_STATE
= 8,
1232 ACPI_WDAT_SET_RUNNING_STATE
= 9,
1233 ACPI_WDAT_GET_STOPPED_STATE
= 10,
1234 ACPI_WDAT_SET_STOPPED_STATE
= 11,
1235 ACPI_WDAT_GET_REBOOT
= 16,
1236 ACPI_WDAT_SET_REBOOT
= 17,
1237 ACPI_WDAT_GET_SHUTDOWN
= 18,
1238 ACPI_WDAT_SET_SHUTDOWN
= 19,
1239 ACPI_WDAT_GET_STATUS
= 32,
1240 ACPI_WDAT_SET_STATUS
= 33,
1241 ACPI_WDAT_ACTION_RESERVED
= 34 /* 34 and greater are reserved */
1244 /* Values for Instruction field above */
1246 enum acpi_wdat_instructions
{
1247 ACPI_WDAT_READ_VALUE
= 0,
1248 ACPI_WDAT_READ_COUNTDOWN
= 1,
1249 ACPI_WDAT_WRITE_VALUE
= 2,
1250 ACPI_WDAT_WRITE_COUNTDOWN
= 3,
1251 ACPI_WDAT_INSTRUCTION_RESERVED
= 4, /* 4 and greater are reserved */
1252 ACPI_WDAT_PRESERVE_REGISTER
= 0x80 /* Except for this value */
1255 /*******************************************************************************
1257 * WDRT - Watchdog Resource Table
1259 ******************************************************************************/
1261 struct acpi_table_wdrt
{
1262 struct acpi_table_header header
; /* Common ACPI table header */
1263 u32 header_length
; /* Watchdog Header Length */
1264 u8 pci_segment
; /* PCI Segment number */
1265 u8 pci_bus
; /* PCI Bus number */
1266 u8 pci_device
; /* PCI Device number */
1267 u8 pci_function
; /* PCI Function number */
1268 u32 timer_period
; /* Period of one timer count (msec) */
1269 u32 max_count
; /* Maximum counter value supported */
1270 u32 min_count
; /* Minimum counter value */
1273 u32 entries
; /* Number of watchdog entries that follow */
1278 #define ACPI_WDRT_TIMER_ENABLED (1) /* 00: Timer enabled */
1280 /* Reset to default packing */
1284 #endif /* __ACTBL1_H__ */