]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86/madt: make the interrupt override parser a public function
authorroyger <royger@FreeBSD.org>
Mon, 4 Aug 2014 08:58:50 +0000 (08:58 +0000)
committerroyger <royger@FreeBSD.org>
Mon, 4 Aug 2014 08:58:50 +0000 (08:58 +0000)
commitafa7324d1a48870891af54639720591577af719c
treee52a505b72845388fd192da477732b428ec61d25
parent668dd4b0cbdb6a2f5f99e82eb2a9bae2988794aa
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.
sys/x86/acpica/madt.c
sys/x86/include/acpica_machdep.h