x86/msi: Provide msi message shadow structs
authorThomas Gleixner <tglx@linutronix.de>
Sat, 24 Oct 2020 21:35:12 +0000 (22:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Oct 2020 19:26:25 +0000 (20:26 +0100)
commit6285aa507366729c618d5295fb540b24a956088a
tree970e7b73b8bbe93afb22a0e4f44722cbb076c9c6
parent8073c1ac82c12aaf1b475a3ce5328d43b3eaa4ae
x86/msi: Provide msi message shadow structs

Create shadow structs with named bitfields for msi_msg data, address_lo and
address_hi and use them in the MSI message composer.

Provide a function to retrieve the destination ID. This could be inline,
but that'd create a circular header dependency.

[dwmw2: fix bitfields not all to be a union]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201024213535.443185-13-dwmw2@infradead.org
arch/x86/include/asm/msi.h
arch/x86/kernel/apic/apic.c