diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-11-25 00:25:49 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-12-05 19:21:01 +0100 |
commit | ebca4396ee18521e9e5d435a15e5d0ab2eb6b009 (patch) | |
tree | 45d3ed90e5fc503c9a59af9c283da250c9532d43 /kernel | |
parent | b78780d93b068706d04f8f2f02bd08db5da01479 (diff) | |
download | lwn-ebca4396ee18521e9e5d435a15e5d0ab2eb6b009.tar.gz lwn-ebca4396ee18521e9e5d435a15e5d0ab2eb6b009.zip |
genirq/msi: Provide data structs for per device domains
Provide struct msi_domain_template which contains a bundle of struct
irq_chip, struct msi_domain_ops and struct msi_domain_info and a name
field.
This template is used by MSI device domain implementations to provide the
domain specific functionality, feature bits etc.
When a MSI domain is created the template is duplicated in the core code
so that it can be modified per instance. That means templates can be
marked const at the MSI device domain code.
The template is a bundle to avoid several allocations and duplications
of the involved structures.
The name field is used to construct the final domain and chip name via:
$PREFIX$NAME-$DEVNAME
where prefix is the optional prefix of the MSI parent domain, $NAME is the
provided name in template::chip and the device name so that the domain
is properly identified. On x86 this results for PCI/MSI in:
PCI-MSI-0000:3d:00.1 or IR-PCI-MSIX-0000:3d:00.1
depending on the domain type and the availability of remapping.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124232325.442499757@linutronix.de
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions