Merge remote-tracking branch 'remotes/powerpc/topic/xive' into kvm-ppc-next
[linux/fpc-iii.git] / arch / c6x / include / asm / dma-mapping.h
blobaca9f755e4f8e6564088069eeeafd62e8c9ff8dd
1 /*
2 * Port on Texas Instruments TMS320C6x architecture
4 * Copyright (C) 2004, 2009, 2010, 2011 Texas Instruments Incorporated
5 * Author: Aurelien Jacquiot <aurelien.jacquiot@ti.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef _ASM_C6X_DMA_MAPPING_H
13 #define _ASM_C6X_DMA_MAPPING_H
16 * DMA errors are defined by all-bits-set in the DMA address.
18 #define DMA_ERROR_CODE ~0
20 extern const struct dma_map_ops c6x_dma_ops;
22 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
24 return &c6x_dma_ops;
27 extern void coherent_mem_init(u32 start, u32 size);
28 void *c6x_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle,
29 gfp_t gfp, unsigned long attrs);
30 void c6x_dma_free(struct device *dev, size_t size, void *vaddr,
31 dma_addr_t dma_handle, unsigned long attrs);
33 #endif /* _ASM_C6X_DMA_MAPPING_H */