diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-04-05 03:19:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-05-02 22:02:37 -0400 |
commit | c9953a73e92df11edd812d863ff741877ea9e58c (patch) | |
tree | 27262efa28f6c05e26bfd87ef03af4a81fda3d22 /include | |
parent | 17bbc12acdb23ffb9613e12ca974fafd31bfcb56 (diff) |
MSI: Add an arch_msi_check_device()
Add an arch_check_device(), which gives archs a chance to check the input
to pci_enable_msi/x. The arch might be interested in the value of nvec so
pass it in. Propagate the error value returned from the arch routine out
to the caller.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/msi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h index e38fe6822cb4..d2a200048b22 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h | |||
@@ -41,6 +41,7 @@ struct msi_desc { | |||
41 | */ | 41 | */ |
42 | int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc); | 42 | int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc); |
43 | void arch_teardown_msi_irq(unsigned int irq); | 43 | void arch_teardown_msi_irq(unsigned int irq); |
44 | extern int arch_msi_check_device(struct pci_dev* dev, int nvec, int type); | ||
44 | 45 | ||
45 | 46 | ||
46 | #endif /* LINUX_MSI_H */ | 47 | #endif /* LINUX_MSI_H */ |