diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-11-25 02:24:14 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-12-05 21:20:58 +0300 |
commit | 6b6941f6653ec8017e3822b55bb9eae245f0ed99 (patch) | |
tree | 528b7993314c59149a253001765bb3b1899e7b53 /include/linux/msi_api.h | |
parent | 6a9fc4190ca23fcf327de666e1a98dbdcdd2d210 (diff) | |
download | linux-6b6941f6653ec8017e3822b55bb9eae245f0ed99.tar.xz |
genirq/msi: Create msi_api.h
Create a API header for MSI specific functions which are relevant to device
drivers.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124230313.632679220@linutronix.de
Diffstat (limited to 'include/linux/msi_api.h')
-rw-r--r-- | include/linux/msi_api.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/msi_api.h b/include/linux/msi_api.h new file mode 100644 index 000000000000..57d27cfcde2d --- /dev/null +++ b/include/linux/msi_api.h @@ -0,0 +1,15 @@ +/* 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; + +unsigned int msi_get_virq(struct device *dev, unsigned int index); + +#endif |