1 #ifndef _PARISC_DMA_MAPPING_H
2 #define _PARISC_DMA_MAPPING_H
5 #include <asm/cacheflush.h>
6 #include <asm/scatterlist.h>
81 return hppa_dma_ops->
map_single(dev, ptr, size, direction);
88 hppa_dma_ops->
unmap_single(dev, dma_addr, size, direction);
95 return hppa_dma_ops->
map_sg(dev, sg, nents, direction);
102 hppa_dma_ops->
unmap_sg(dev, sg, nhwentries, direction);
138 unsigned long offset,
size_t size,
147 unsigned long offset,
size_t size,
196 parisc_walk_tree(
struct device *dev)
202 for(otherdev = dev->
parent; otherdev;
203 otherdev = otherdev->
parent) {
213 #define GET_IOC(dev) (HBA_DATA(parisc_walk_tree(dev))->iommu)
216 #ifdef CONFIG_IOMMU_CCIO
224 unsigned long min,
unsigned long max,
unsigned long align);
226 #define ccio_get_iommu(dev) NULL
227 #define ccio_request_resource(dev, res) insert_resource(&iomem_resource, res)
228 #define ccio_allocate_resource(dev, res, size, min, max, align) \
229 allocate_resource(&iomem_resource, res, size, min, max, \
233 #ifdef CONFIG_IOMMU_SBA
239 #define dma_mapping_error(dev, x) 0