mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 07:44:21 +08:00
496436f4a5
Add the prerequisites for DEVICE MSI into the shared select() and child domain init function. These domains are really trivial and just provide a custom irq chip callback to write the MSI message. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> Signed-off-by: Shivamurthy Shastri <shivamurthy.shastri@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240623142235.085171290@linutronix.de
28 lines
764 B
C
28 lines
764 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
// Copyright (C) 2022 Linutronix GmbH
|
|
// Copyright (C) 2022 Intel
|
|
|
|
#ifndef _DRIVERS_IRQCHIP_IRQ_MSI_LIB_H
|
|
#define _DRIVERS_IRQCHIP_IRQ_MSI_LIB_H
|
|
|
|
#include <linux/bits.h>
|
|
#include <linux/irqdomain.h>
|
|
#include <linux/msi.h>
|
|
|
|
#ifdef CONFIG_PCI_MSI
|
|
#define MATCH_PCI_MSI BIT(DOMAIN_BUS_PCI_MSI)
|
|
#else
|
|
#define MATCH_PCI_MSI (0)
|
|
#endif
|
|
|
|
#define MATCH_PLATFORM_MSI BIT(DOMAIN_BUS_PLATFORM_MSI)
|
|
|
|
int msi_lib_irq_domain_select(struct irq_domain *d, struct irq_fwspec *fwspec,
|
|
enum irq_domain_bus_token bus_token);
|
|
|
|
bool msi_lib_init_dev_msi_info(struct device *dev, struct irq_domain *domain,
|
|
struct irq_domain *real_parent,
|
|
struct msi_domain_info *info);
|
|
|
|
#endif /* _DRIVERS_IRQCHIP_IRQ_MSI_LIB_H */
|