summaryrefslogtreecommitdiffstats
path: root/sys/x86/include/acpica_machdep.h
diff options
context:
space:
mode:
authorroyger <royger@FreeBSD.org>2014-08-04 08:58:50 +0000
committerroyger <royger@FreeBSD.org>2014-08-04 08:58:50 +0000
commitafa7324d1a48870891af54639720591577af719c (patch)
treee52a505b72845388fd192da477732b428ec61d25 /sys/x86/include/acpica_machdep.h
parent668dd4b0cbdb6a2f5f99e82eb2a9bae2988794aa (diff)
downloadFreeBSD-src-afa7324d1a48870891af54639720591577af719c.zip
FreeBSD-src-afa7324d1a48870891af54639720591577af719c.tar.gz
x86/madt: make the interrupt override parser a public function
Split a portion of the code in madt_parse_interrupt_override to a separate function, that is public and can be used from other code. This will be needed by the Xen port, since FreeBSD needs to parse the interrupt overrides and notify Xen about them. This commit should not introduce any functional change. Sponsored by: Citrix Systems R&D Reviewed by: jhb, gibbs x86/acpica/madt.c: - Introduce madt_parse_interrupt_values() that parses the intr information from ACPI and returns the triggering and the polarity. This is a subset of the functionality that used to be part of madt_parse_interrupt_override(). - Make madt_found_sci_override a global variable that can be used from other files. x86/include/acpica_machdep.h: - Prototype of madt_parse_interrupt_values. - Extern declaration of madt_found_sci_override.
Diffstat (limited to 'sys/x86/include/acpica_machdep.h')
-rw-r--r--sys/x86/include/acpica_machdep.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/x86/include/acpica_machdep.h b/sys/x86/include/acpica_machdep.h
index 4743786..46080c0 100644
--- a/sys/x86/include/acpica_machdep.h
+++ b/sys/x86/include/acpica_machdep.h
@@ -69,11 +69,18 @@ int acpi_release_global_lock(volatile uint32_t *);
(Acq) = acpi_release_global_lock(&((GLptr)->GlobalLock)); \
} while (0)
+enum intr_trigger;
+enum intr_polarity;
+
void acpi_SetDefaultIntrModel(int model);
void acpi_cpu_c1(void);
void *acpi_map_table(vm_paddr_t pa, const char *sig);
void acpi_unmap_table(void *table);
vm_paddr_t acpi_find_table(const char *sig);
+void madt_parse_interrupt_values(void *entry,
+ enum intr_trigger *trig, enum intr_polarity *pol);
+
+extern int madt_found_sci_override;
#endif /* _KERNEL */
OpenPOWER on IntegriCloud