mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Provide the necessary constants for PCI/IMS support: - A new bus token for MSI irqdomain identification - A MSI feature flag for the MSI irqdomains to signal support - A secondary domain id The latter expands the device internal domain pointer storage array from 1 to 2 entries. That extra pointer is mostly unused today, but the alternative solutions would not be free either and would introduce more complexity all over the place. Trade the 8bytes for simplicity. 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/20221124232326.846169830@linutronix.de
31 lines
820 B
C
31 lines
820 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_IRQDOMAIN_DEFS_H
|
|
#define _LINUX_IRQDOMAIN_DEFS_H
|
|
|
|
/*
|
|
* Should several domains have the same device node, but serve
|
|
* different purposes (for example one domain is for PCI/MSI, and the
|
|
* other for wired IRQs), they can be distinguished using a
|
|
* bus-specific token. Most domains are expected to only carry
|
|
* DOMAIN_BUS_ANY.
|
|
*/
|
|
enum irq_domain_bus_token {
|
|
DOMAIN_BUS_ANY = 0,
|
|
DOMAIN_BUS_WIRED,
|
|
DOMAIN_BUS_GENERIC_MSI,
|
|
DOMAIN_BUS_PCI_MSI,
|
|
DOMAIN_BUS_PLATFORM_MSI,
|
|
DOMAIN_BUS_NEXUS,
|
|
DOMAIN_BUS_IPI,
|
|
DOMAIN_BUS_FSL_MC_MSI,
|
|
DOMAIN_BUS_TI_SCI_INTA_MSI,
|
|
DOMAIN_BUS_WAKEUP,
|
|
DOMAIN_BUS_VMD_MSI,
|
|
DOMAIN_BUS_PCI_DEVICE_MSI,
|
|
DOMAIN_BUS_PCI_DEVICE_MSIX,
|
|
DOMAIN_BUS_DMAR,
|
|
DOMAIN_BUS_AMDVI,
|
|
DOMAIN_BUS_PCI_DEVICE_IMS,
|
|
};
|
|
|
|
#endif /* _LINUX_IRQDOMAIN_DEFS_H */
|