diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/pci.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-powerpc/pci.h b/include/asm-powerpc/pci.h index ac656ee6bb19..ebf31f1c5915 100644 --- a/include/asm-powerpc/pci.h +++ b/include/asm-powerpc/pci.h | |||
@@ -70,8 +70,11 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | |||
70 | */ | 70 | */ |
71 | #define PCI_DISABLE_MWI | 71 | #define PCI_DISABLE_MWI |
72 | 72 | ||
73 | #ifdef CONFIG_PCI | ||
73 | extern struct dma_mapping_ops *pci_dma_ops; | 74 | extern struct dma_mapping_ops *pci_dma_ops; |
74 | 75 | ||
76 | extern void set_pci_dma_ops(struct dma_mapping_ops *dma_ops); | ||
77 | |||
75 | /* For DAC DMA, we currently don't support it by default, but | 78 | /* For DAC DMA, we currently don't support it by default, but |
76 | * we let 64-bit platforms override this. | 79 | * we let 64-bit platforms override this. |
77 | */ | 80 | */ |
@@ -82,7 +85,6 @@ static inline int pci_dac_dma_supported(struct pci_dev *hwdev,u64 mask) | |||
82 | return 0; | 85 | return 0; |
83 | } | 86 | } |
84 | 87 | ||
85 | #ifdef CONFIG_PCI | ||
86 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 88 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |
87 | enum pci_dma_burst_strategy *strat, | 89 | enum pci_dma_burst_strategy *strat, |
88 | unsigned long *strategy_parameter) | 90 | unsigned long *strategy_parameter) |
@@ -99,6 +101,8 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev, | |||
99 | *strat = PCI_DMA_BURST_MULTIPLE; | 101 | *strat = PCI_DMA_BURST_MULTIPLE; |
100 | *strategy_parameter = cacheline_size; | 102 | *strategy_parameter = cacheline_size; |
101 | } | 103 | } |
104 | #else /* CONFIG_PCI */ | ||
105 | #define set_pci_dma_ops(d) | ||
102 | #endif | 106 | #endif |
103 | 107 | ||
104 | extern int pci_domain_nr(struct pci_bus *bus); | 108 | extern int pci_domain_nr(struct pci_bus *bus); |