diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-08-16 15:05:30 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-08-16 15:05:30 +0100 |
commit | 71abd26c352d6876f60050a2c624dc60e2ac01e3 (patch) | |
tree | 4d58dc321ccdee8e557e614dd0d183487c88b898 /xen/include/asm-x86/io_apic.h | |
parent | 94ea0622c5b88e5a0513cff512d90130f504cfbe (diff) | |
download | xen-71abd26c352d6876f60050a2c624dc60e2ac01e3.tar.gz xen-71abd26c352d6876f60050a2c624dc60e2ac01e3.tar.bz2 xen-71abd26c352d6876f60050a2c624dc60e2ac01e3.zip |
passthrough: don't use open coded IO-APIC accesses
This makes the respective functions quite a bit more legible.
Since this requires fiddling with __ioapic_{read,write}_entry()
anyway,
make them and their wrappers have their argument types match those of
__io_apic_{read,write}() (int -> unsigned int).
No functional change intended.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/asm-x86/io_apic.h')
-rw-r--r-- | xen/include/asm-x86/io_apic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/asm-x86/io_apic.h b/xen/include/asm-x86/io_apic.h index 4bbbbe79d3..066a00cd07 100644 --- a/xen/include/asm-x86/io_apic.h +++ b/xen/include/asm-x86/io_apic.h @@ -200,6 +200,12 @@ extern void ioapic_resume(void); extern void dump_ioapic_irq_info(void); +extern struct IO_APIC_route_entry __ioapic_read_entry( + unsigned int apic, unsigned int pin, bool_t raw); +void __ioapic_write_entry( + unsigned int apic, unsigned int pin, bool_t raw, + struct IO_APIC_route_entry); + extern struct IO_APIC_route_entry **alloc_ioapic_entries(void); extern void free_ioapic_entries(struct IO_APIC_route_entry **ioapic_entries); extern int save_IO_APIC_setup(struct IO_APIC_route_entry **ioapic_entries); |