aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/dma.c')
-rw-r--r--arch/sparc/kernel/dma.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/sparc/kernel/dma.c b/arch/sparc/kernel/dma.c
index 524c32f97c55..473a3fc7ab5b 100644
--- a/arch/sparc/kernel/dma.c
+++ b/arch/sparc/kernel/dma.c
@@ -60,7 +60,8 @@ static void dma32_free_coherent(struct device *dev, size_t size,
60 60
61static dma_addr_t dma32_map_page(struct device *dev, struct page *page, 61static dma_addr_t dma32_map_page(struct device *dev, struct page *page,
62 unsigned long offset, size_t size, 62 unsigned long offset, size_t size,
63 enum dma_data_direction direction) 63 enum dma_data_direction direction,
64 struct dma_attrs *attrs)
64{ 65{
65#ifdef CONFIG_PCI 66#ifdef CONFIG_PCI
66 if (dev->bus == &pci_bus_type) 67 if (dev->bus == &pci_bus_type)
@@ -72,7 +73,8 @@ static dma_addr_t dma32_map_page(struct device *dev, struct page *page,
72} 73}
73 74
74static void dma32_unmap_page(struct device *dev, dma_addr_t dma_address, 75static void dma32_unmap_page(struct device *dev, dma_addr_t dma_address,
75 size_t size, enum dma_data_direction direction) 76 size_t size, enum dma_data_direction direction,
77 struct dma_attrs *attrs)
76{ 78{
77#ifdef CONFIG_PCI 79#ifdef CONFIG_PCI
78 if (dev->bus == &pci_bus_type) { 80 if (dev->bus == &pci_bus_type) {
@@ -85,7 +87,8 @@ static void dma32_unmap_page(struct device *dev, dma_addr_t dma_address,
85} 87}
86 88
87static int dma32_map_sg(struct device *dev, struct scatterlist *sg, 89static int dma32_map_sg(struct device *dev, struct scatterlist *sg,
88 int nents, enum dma_data_direction direction) 90 int nents, enum dma_data_direction direction,
91 struct dma_attrs *attrs)
89{ 92{
90#ifdef CONFIG_PCI 93#ifdef CONFIG_PCI
91 if (dev->bus == &pci_bus_type) 94 if (dev->bus == &pci_bus_type)
@@ -95,7 +98,8 @@ static int dma32_map_sg(struct device *dev, struct scatterlist *sg,
95} 98}
96 99
97void dma32_unmap_sg(struct device *dev, struct scatterlist *sg, 100void dma32_unmap_sg(struct device *dev, struct scatterlist *sg,
98 int nents, enum dma_data_direction direction) 101 int nents, enum dma_data_direction direction,
102 struct dma_attrs *attrs)
99{ 103{
100#ifdef CONFIG_PCI 104#ifdef CONFIG_PCI
101 if (dev->bus == &pci_bus_type) { 105 if (dev->bus == &pci_bus_type) {
@@ -161,7 +165,7 @@ static void dma32_sync_sg_for_device(struct device *dev,
161 BUG(); 165 BUG();
162} 166}
163 167
164static const struct dma_ops dma32_dma_ops = { 168static const struct dma_map_ops dma32_dma_ops = {
165 .alloc_coherent = dma32_alloc_coherent, 169 .alloc_coherent = dma32_alloc_coherent,
166 .free_coherent = dma32_free_coherent, 170 .free_coherent = dma32_free_coherent,
167 .map_page = dma32_map_page, 171 .map_page = dma32_map_page,
@@ -174,5 +178,5 @@ static const struct dma_ops dma32_dma_ops = {
174 .sync_sg_for_device = dma32_sync_sg_for_device, 178 .sync_sg_for_device = dma32_sync_sg_for_device,
175}; 179};
176 180
177const struct dma_ops *dma_ops = &dma32_dma_ops; 181const struct dma_map_ops *dma_ops = &dma32_dma_ops;
178EXPORT_SYMBOL(dma_ops); 182EXPORT_SYMBOL(dma_ops);