summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/acpi_table.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 12:45:14 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 11:27:18 +0800
commit9b3e6d4c1f86b27f320ef9c5857a9ef223b2b356 (patch)
treebc5d7f6eee15b38fe84723811d775609cbb9f6f9 /arch/x86/include/asm/acpi_table.h
parent350c7f52b93c5612dd3d53966bd54cb68b94d80b (diff)
downloadu-boot-9b3e6d4c1f86b27f320ef9c5857a9ef223b2b356.tar.gz
u-boot-9b3e6d4c1f86b27f320ef9c5857a9ef223b2b356.tar.xz
u-boot-9b3e6d4c1f86b27f320ef9c5857a9ef223b2b356.zip
x86: acpi: Add common Intel ACPI tables
Add various tables that are common to Intel CPUs. These functions can be used by arch-specific CPU code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm/acpi_table.h')
-rw-r--r--arch/x86/include/asm/acpi_table.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h
index 1b7ff50951..3245e44781 100644
--- a/arch/x86/include/asm/acpi_table.h
+++ b/arch/x86/include/asm/acpi_table.h
@@ -76,4 +76,26 @@ ulong write_acpi_tables(ulong start);
*/
ulong acpi_get_rsdp_addr(void);
+/**
+ * arch_read_sci_irq_select() - Read the system-control interrupt number
+ *
+ * @returns value of IRQ register in the PMC
+ */
+int arch_read_sci_irq_select(void);
+
+/**
+ * arch_write_sci_irq_select() - Set the system-control interrupt number
+ *
+ * @scis: New value for IRQ register in the PMC
+ */
+int arch_write_sci_irq_select(uint scis);
+
+/**
+ * arch_madt_sci_irq_polarity() - Return the priority to use for the MADT
+ *
+ * @sci: System-control interrupt number
+ * @return priority to use (MP_IRQ_POLARITY_...)
+ */
+int arch_madt_sci_irq_polarity(int sci);
+
#endif /* __ASM_ACPI_TABLE_H__ */