mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
f1139f905b
The upcoming support for multiple MSI domains per device requires storage for the MSI descriptors and in a second step storage for the irqdomain pointers. Move the xarray into a separate data structure msi_dev_domain and create an array with size 1 in msi_device_data, which can be expanded later when the support for per device domains is implemented. 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/20221124230313.864887773@linutronix.de
23 lines
517 B
C
23 lines
517 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef LINUX_MSI_API_H
|
|
#define LINUX_MSI_API_H
|
|
|
|
/*
|
|
* APIs which are relevant for device driver code for allocating and
|
|
* freeing MSI interrupts and querying the associations between
|
|
* hardware/software MSI indices and the Linux interrupt number.
|
|
*/
|
|
|
|
struct device;
|
|
|
|
/*
|
|
* Per device interrupt domain related constants.
|
|
*/
|
|
enum msi_domain_ids {
|
|
MSI_DEFAULT_DOMAIN,
|
|
MSI_MAX_DEVICE_IRQDOMAINS,
|
|
};
|
|
|
|
unsigned int msi_get_virq(struct device *dev, unsigned int index);
|
|
|
|
#endif
|