]> www.infradead.org Git - users/dwmw2/linux.git/commit
genirq/msi: Allow shadow declarations of msi_msg::$member
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Oct 2020 20:27:33 +0000 (22:27 +0200)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 24 Oct 2020 21:26:03 +0000 (22:26 +0100)
commit2ed15b4f2fa3460251e53e331ef548d286e4effd
treea327b920cc4e58dad6d385855823c477b6dc3b16
parentc3a44abc8e7c5f8193c2c3697b64c49c6b6da8b9
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>
include/asm-generic/msi.h
include/linux/msi.h