diff options
Diffstat (limited to 'arch/x86/include/asm/pci.h')
-rw-r--r-- | arch/x86/include/asm/pci.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/x86/include/asm/pci.h b/arch/x86/include/asm/pci.h index d9e9e6c7ed32..7d7443283a9d 100644 --- a/arch/x86/include/asm/pci.h +++ b/arch/x86/include/asm/pci.h | |||
@@ -100,29 +100,6 @@ static inline void early_quirks(void) { } | |||
100 | extern void pci_iommu_alloc(void); | 100 | extern void pci_iommu_alloc(void); |
101 | 101 | ||
102 | #ifdef CONFIG_PCI_MSI | 102 | #ifdef CONFIG_PCI_MSI |
103 | /* MSI arch specific hooks */ | ||
104 | static inline int x86_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | ||
105 | { | ||
106 | return x86_msi.setup_msi_irqs(dev, nvec, type); | ||
107 | } | ||
108 | |||
109 | static inline void x86_teardown_msi_irqs(struct pci_dev *dev) | ||
110 | { | ||
111 | x86_msi.teardown_msi_irqs(dev); | ||
112 | } | ||
113 | |||
114 | static inline void x86_teardown_msi_irq(unsigned int irq) | ||
115 | { | ||
116 | x86_msi.teardown_msi_irq(irq); | ||
117 | } | ||
118 | static inline void x86_restore_msi_irqs(struct pci_dev *dev, int irq) | ||
119 | { | ||
120 | x86_msi.restore_msi_irqs(dev, irq); | ||
121 | } | ||
122 | #define arch_setup_msi_irqs x86_setup_msi_irqs | ||
123 | #define arch_teardown_msi_irqs x86_teardown_msi_irqs | ||
124 | #define arch_teardown_msi_irq x86_teardown_msi_irq | ||
125 | #define arch_restore_msi_irqs x86_restore_msi_irqs | ||
126 | /* implemented in arch/x86/kernel/apic/io_apic. */ | 103 | /* implemented in arch/x86/kernel/apic/io_apic. */ |
127 | struct msi_desc; | 104 | struct msi_desc; |
128 | int native_setup_msi_irqs(struct pci_dev *dev, int nvec, int type); | 105 | int native_setup_msi_irqs(struct pci_dev *dev, int nvec, int type); |
@@ -130,16 +107,9 @@ void native_teardown_msi_irq(unsigned int irq); | |||
130 | void native_restore_msi_irqs(struct pci_dev *dev, int irq); | 107 | void native_restore_msi_irqs(struct pci_dev *dev, int irq); |
131 | int setup_msi_irq(struct pci_dev *dev, struct msi_desc *msidesc, | 108 | int setup_msi_irq(struct pci_dev *dev, struct msi_desc *msidesc, |
132 | unsigned int irq_base, unsigned int irq_offset); | 109 | unsigned int irq_base, unsigned int irq_offset); |
133 | /* default to the implementation in drivers/lib/msi.c */ | ||
134 | #define HAVE_DEFAULT_MSI_TEARDOWN_IRQS | ||
135 | #define HAVE_DEFAULT_MSI_RESTORE_IRQS | ||
136 | void default_teardown_msi_irqs(struct pci_dev *dev); | ||
137 | void default_restore_msi_irqs(struct pci_dev *dev, int irq); | ||
138 | #else | 110 | #else |
139 | #define native_setup_msi_irqs NULL | 111 | #define native_setup_msi_irqs NULL |
140 | #define native_teardown_msi_irq NULL | 112 | #define native_teardown_msi_irq NULL |
141 | #define default_teardown_msi_irqs NULL | ||
142 | #define default_restore_msi_irqs NULL | ||
143 | #endif | 113 | #endif |
144 | 114 | ||
145 | #define PCI_DMA_BUS_IS_PHYS (dma_ops->is_phys) | 115 | #define PCI_DMA_BUS_IS_PHYS (dma_ops->is_phys) |