x86: Avoid magic number with ELCR register accesses
authorMaciej W. Rozycki <macro@orcam.me.uk>
Tue, 20 Jul 2021 03:28:09 +0000 (05:28 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Aug 2021 21:31:43 +0000 (23:31 +0200)
commitd25316616842b593de6f89ce2101f1af62f4d559
tree55ab729ffb9bed88aa3eb5abc5c2267ce492c936
parent0e8c6f56fab3af3ef9f78f486e198792d3af0fa1
x86: Avoid magic number with ELCR register accesses

Define PIC_ELCR1 and PIC_ELCR2 macros for accesses to the ELCR registers
implemented by many chipsets in their embedded 8259A PIC cores, avoiding
magic numbers that are difficult to handle, and complementing the macros
we already have for registers originally defined with discrete 8259A PIC
implementations.  No functional change.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2107200237300.9461@angie.orcam.me.uk
arch/x86/include/asm/i8259.h
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/apic/io_apic.c
arch/x86/kernel/apic/vector.c
arch/x86/kernel/i8259.c
arch/x86/kernel/mpparse.c
arch/x86/pci/irq.c