diff options
Diffstat (limited to 'arch/sparc/include')
| -rw-r--r-- | arch/sparc/include/asm/pci.h | 2 | ||||
| -rw-r--r-- | arch/sparc/include/asm/pci_32.h | 14 | ||||
| -rw-r--r-- | arch/sparc/include/asm/pci_64.h | 14 |
3 files changed, 2 insertions, 28 deletions
diff --git a/arch/sparc/include/asm/pci.h b/arch/sparc/include/asm/pci.h index d9c031f9910f..5ce773eded12 100644 --- a/arch/sparc/include/asm/pci.h +++ b/arch/sparc/include/asm/pci.h | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | #include <asm/pci_32.h> | 6 | #include <asm/pci_32.h> |
| 7 | #endif | 7 | #endif |
| 8 | 8 | ||
| 9 | #include <linux/pci-dma.h> | ||
| 10 | |||
| 9 | #include <asm-generic/pci-dma-compat.h> | 11 | #include <asm-generic/pci-dma-compat.h> |
| 10 | 12 | ||
| 11 | #endif | 13 | #endif |
diff --git a/arch/sparc/include/asm/pci_32.h b/arch/sparc/include/asm/pci_32.h index e769f668a4b5..332ac9ab36bc 100644 --- a/arch/sparc/include/asm/pci_32.h +++ b/arch/sparc/include/asm/pci_32.h | |||
| @@ -32,20 +32,6 @@ static inline void pcibios_penalize_isa_irq(int irq, int active) | |||
| 32 | 32 | ||
| 33 | struct pci_dev; | 33 | struct pci_dev; |
| 34 | 34 | ||
| 35 | /* pci_unmap_{single,page} is not a nop, thus... */ | ||
| 36 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \ | ||
| 37 | dma_addr_t ADDR_NAME; | ||
| 38 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \ | ||
| 39 | __u32 LEN_NAME; | ||
| 40 | #define pci_unmap_addr(PTR, ADDR_NAME) \ | ||
| 41 | ((PTR)->ADDR_NAME) | ||
| 42 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) \ | ||
| 43 | (((PTR)->ADDR_NAME) = (VAL)) | ||
| 44 | #define pci_unmap_len(PTR, LEN_NAME) \ | ||
| 45 | ((PTR)->LEN_NAME) | ||
| 46 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) \ | ||
| 47 | (((PTR)->LEN_NAME) = (VAL)) | ||
| 48 | |||
| 49 | #ifdef CONFIG_PCI | 35 | #ifdef CONFIG_PCI |
| 50 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 36 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |
| 51 | enum pci_dma_burst_strategy *strat, | 37 | enum pci_dma_burst_strategy *strat, |
diff --git a/arch/sparc/include/asm/pci_64.h b/arch/sparc/include/asm/pci_64.h index b0576df6ec83..5312782f0b5e 100644 --- a/arch/sparc/include/asm/pci_64.h +++ b/arch/sparc/include/asm/pci_64.h | |||
| @@ -32,20 +32,6 @@ static inline void pcibios_penalize_isa_irq(int irq, int active) | |||
| 32 | */ | 32 | */ |
| 33 | #define PCI_DMA_BUS_IS_PHYS (0) | 33 | #define PCI_DMA_BUS_IS_PHYS (0) |
| 34 | 34 | ||
| 35 | /* pci_unmap_{single,page} is not a nop, thus... */ | ||
| 36 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \ | ||
| 37 | dma_addr_t ADDR_NAME; | ||
| 38 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \ | ||
| 39 | __u32 LEN_NAME; | ||
| 40 | #define pci_unmap_addr(PTR, ADDR_NAME) \ | ||
| 41 | ((PTR)->ADDR_NAME) | ||
| 42 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) \ | ||
| 43 | (((PTR)->ADDR_NAME) = (VAL)) | ||
| 44 | #define pci_unmap_len(PTR, LEN_NAME) \ | ||
| 45 | ((PTR)->LEN_NAME) | ||
| 46 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) \ | ||
| 47 | (((PTR)->LEN_NAME) = (VAL)) | ||
| 48 | |||
| 49 | /* PCI IOMMU mapping bypass support. */ | 35 | /* PCI IOMMU mapping bypass support. */ |
| 50 | 36 | ||
| 51 | /* PCI 64-bit addressing works for all slots on all controller | 37 | /* PCI 64-bit addressing works for all slots on all controller |
