genirq/msi: Allow shadow declarations of msi_msg:: $member
authorThomas Gleixner <tglx@linutronix.de>
Sat, 24 Oct 2020 21:35:11 +0000 (22:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Oct 2020 19:26:25 +0000 (20:26 +0100)
commit8073c1ac82c12aaf1b475a3ce5328d43b3eaa4ae
tree8aff60f5703ddc61bec57f57e5d0b99fd3e89aec
parent3d7295eb3003aea9f89de35304b3a88ae4d5036b
genirq/msi: Allow shadow declarations of msi_msg:: $member

Architectures like x86 have their MSI messages in various bits of the data,
address_lo and address_hi field. Composing or decomposing these messages
with bitmasks and shifts is possible, but unreadable gunk.

Allow architectures to provide an architecture specific representation for
each member of msi_msg. Provide empty defaults for each and stick them into
an 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-12-dwmw2@infradead.org
include/asm-generic/msi.h
include/linux/msi.h