mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
Move irq-msi-lib.h into include/linux/irqchip, making it available to compilation units outside of drivers/irqchip. This requires some churn in drivers to fetch it from the new location, generated using this script: git grep -l -w \"irq-msi-lib.h\" | \ xargs sed -i -e 's:"irq-msi-lib.h":\<linux/irqchip/irq-msi-lib.h\>:' Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250513172819.2216709-2-maz@kernel.org
28 lines
740 B
C
28 lines
740 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
// Copyright (C) 2022 Linutronix GmbH
|
|
// Copyright (C) 2022 Intel
|
|
|
|
#ifndef _IRQCHIP_IRQ_MSI_LIB_H
|
|
#define _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 /* _IRQCHIP_IRQ_MSI_LIB_H */
|