x86/IO-APIC: consolidate / complete #define-s
authorJan Beulich <jbeulich@suse.com>
Wed, 3 Apr 2019 08:15:20 +0000 (10:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Apr 2019 08:15:20 +0000 (10:15 +0200)
commit839aca83f456d2ed879a8a6d395dd476c2d3ed9d
tree1301d11809509f89277036df07486e96002d456d
parent74f299bbd7d5cc52325b5866c17b44dd0bd1c5a2
x86/IO-APIC: consolidate / complete #define-s

Drop redundant ones from apic.h. Add delivery mode mask. Use them in
place of open coded hex numbers.

Take the opportunity and modify a helper function's parameters to be
just unsigned int. Also drop the bogus double underscore from its name,
as it and all its callers get touched anyway.

No functional change.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/io_apic.c
xen/include/asm-x86/apic.h
xen/include/asm-x86/io_apic.h