diff options
author | Jan Beulich <jbeulich@novell.com> | 2007-07-09 14:55:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 19:02:11 -0400 |
commit | caa5171622c8fef70fa20d2d74f4326866039df9 (patch) | |
tree | eee98d71a3d57db4fcadd6bcca2612b64c367083 /include/asm-x86_64 | |
parent | b7b095c154c50ee753832bbf78e8690c492fc8f6 (diff) |
PCI: remove pci_dac_dma_... APIs
Based on replies to a respective query, remove the pci_dac_dma_...() APIs
(except for pci_dac_dma_supported() on Alpha, where this function is used
in non-DAC PCI DMA code).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Jesse Barnes <jesse.barnes@intel.com>
Cc: Christoph Hellwig <hch@infradead.org>
Acked-by: David Miller <davem@davemloft.net>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r-- | include/asm-x86_64/pci.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/include/asm-x86_64/pci.h b/include/asm-x86_64/pci.h index d95c9e78fe1d..bda94fd5176f 100644 --- a/include/asm-x86_64/pci.h +++ b/include/asm-x86_64/pci.h | |||
@@ -54,14 +54,6 @@ extern int iommu_setup(char *opt); | |||
54 | 54 | ||
55 | #if defined(CONFIG_IOMMU) || defined(CONFIG_CALGARY_IOMMU) | 55 | #if defined(CONFIG_IOMMU) || defined(CONFIG_CALGARY_IOMMU) |
56 | 56 | ||
57 | /* | ||
58 | * x86-64 always supports DAC, but sometimes it is useful to force | ||
59 | * devices through the IOMMU to get automatic sg list merging. | ||
60 | * Optional right now. | ||
61 | */ | ||
62 | extern int iommu_sac_force; | ||
63 | #define pci_dac_dma_supported(pci_dev, mask) (!iommu_sac_force) | ||
64 | |||
65 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \ | 57 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \ |
66 | dma_addr_t ADDR_NAME; | 58 | dma_addr_t ADDR_NAME; |
67 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \ | 59 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \ |
@@ -78,8 +70,6 @@ extern int iommu_sac_force; | |||
78 | #else | 70 | #else |
79 | /* No IOMMU */ | 71 | /* No IOMMU */ |
80 | 72 | ||
81 | #define pci_dac_dma_supported(pci_dev, mask) 1 | ||
82 | |||
83 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) | 73 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) |
84 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) | 74 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) |
85 | #define pci_unmap_addr(PTR, ADDR_NAME) (0) | 75 | #define pci_unmap_addr(PTR, ADDR_NAME) (0) |
@@ -91,36 +81,6 @@ extern int iommu_sac_force; | |||
91 | 81 | ||
92 | #include <asm-generic/pci-dma-compat.h> | 82 | #include <asm-generic/pci-dma-compat.h> |
93 | 83 | ||
94 | static inline dma64_addr_t | ||
95 | pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, unsigned long offset, int direction) | ||
96 | { | ||
97 | return ((dma64_addr_t) page_to_phys(page) + | ||
98 | (dma64_addr_t) offset); | ||
99 | } | ||
100 | |||
101 | static inline struct page * | ||
102 | pci_dac_dma_to_page(struct pci_dev *pdev, dma64_addr_t dma_addr) | ||
103 | { | ||
104 | return virt_to_page(__va(dma_addr)); | ||
105 | } | ||
106 | |||
107 | static inline unsigned long | ||
108 | pci_dac_dma_to_offset(struct pci_dev *pdev, dma64_addr_t dma_addr) | ||
109 | { | ||
110 | return (dma_addr & ~PAGE_MASK); | ||
111 | } | ||
112 | |||
113 | static inline void | ||
114 | pci_dac_dma_sync_single_for_cpu(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len, int direction) | ||
115 | { | ||
116 | } | ||
117 | |||
118 | static inline void | ||
119 | pci_dac_dma_sync_single_for_device(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len, int direction) | ||
120 | { | ||
121 | flush_write_buffers(); | ||
122 | } | ||
123 | |||
124 | #ifdef CONFIG_PCI | 84 | #ifdef CONFIG_PCI |
125 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 85 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |
126 | enum pci_dma_burst_strategy *strat, | 86 | enum pci_dma_burst_strategy *strat, |