diff options
author | Ahmed S. Darwish <darwi@linutronix.de> | 2022-11-11 16:55:01 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-11-17 17:15:21 +0300 |
commit | 897a0b6aa8c7ee0015e8d1f781e8e61069aafe16 (patch) | |
tree | faa2cfae3363768ea61e15098066247e071312c8 /drivers/pci/msi/msi.h | |
parent | be37b8428b7b7740bbbc29c17cfa2ee42b9e2d8b (diff) | |
download | linux-897a0b6aa8c7ee0015e8d1f781e8e61069aafe16.tar.xz |
PCI/MSI: Move pci_msi_enabled() to api.c
To disentangle the maze in msi.c, all exported device-driver MSI APIs are
now to be grouped in one file, api.c.
Move pci_msi_enabled() and make its kernel-doc comprehensive.
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20221111122015.271447896@linutronix.de
Diffstat (limited to 'drivers/pci/msi/msi.h')
-rw-r--r-- | drivers/pci/msi/msi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/msi/msi.h b/drivers/pci/msi/msi.h index 77e2587f7e4f..f3f4ede53171 100644 --- a/drivers/pci/msi/msi.h +++ b/drivers/pci/msi/msi.h @@ -84,6 +84,9 @@ static inline __attribute_const__ u32 msi_multi_mask(struct msi_desc *desc) return (1 << (1 << desc->pci.msi_attrib.multi_cap)) - 1; } +/* Subsystem variables */ +extern int pci_msi_enable; + /* MSI internal functions invoked from the public APIs */ void pci_msi_shutdown(struct pci_dev *dev); void pci_msix_shutdown(struct pci_dev *dev); |