|
@@ -157,7 +157,7 @@ static void octeon_dma_sync_sg_for_device(struct device *dev,
|
|
}
|
|
}
|
|
|
|
|
|
static void *octeon_dma_alloc_coherent(struct device *dev, size_t size,
|
|
static void *octeon_dma_alloc_coherent(struct device *dev, size_t size,
|
|
- dma_addr_t *dma_handle, gfp_t gfp)
|
|
|
|
|
|
+ dma_addr_t *dma_handle, gfp_t gfp, struct dma_attrs *attrs)
|
|
{
|
|
{
|
|
void *ret;
|
|
void *ret;
|
|
|
|
|
|
@@ -192,7 +192,7 @@ static void *octeon_dma_alloc_coherent(struct device *dev, size_t size,
|
|
}
|
|
}
|
|
|
|
|
|
static void octeon_dma_free_coherent(struct device *dev, size_t size,
|
|
static void octeon_dma_free_coherent(struct device *dev, size_t size,
|
|
- void *vaddr, dma_addr_t dma_handle)
|
|
|
|
|
|
+ void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs)
|
|
{
|
|
{
|
|
int order = get_order(size);
|
|
int order = get_order(size);
|
|
|
|
|
|
@@ -240,8 +240,8 @@ EXPORT_SYMBOL(dma_to_phys);
|
|
|
|
|
|
static struct octeon_dma_map_ops octeon_linear_dma_map_ops = {
|
|
static struct octeon_dma_map_ops octeon_linear_dma_map_ops = {
|
|
.dma_map_ops = {
|
|
.dma_map_ops = {
|
|
- .alloc_coherent = octeon_dma_alloc_coherent,
|
|
|
|
- .free_coherent = octeon_dma_free_coherent,
|
|
|
|
|
|
+ .alloc = octeon_dma_alloc_coherent,
|
|
|
|
+ .free = octeon_dma_free_coherent,
|
|
.map_page = octeon_dma_map_page,
|
|
.map_page = octeon_dma_map_page,
|
|
.unmap_page = swiotlb_unmap_page,
|
|
.unmap_page = swiotlb_unmap_page,
|
|
.map_sg = octeon_dma_map_sg,
|
|
.map_sg = octeon_dma_map_sg,
|
|
@@ -325,8 +325,8 @@ void __init plat_swiotlb_setup(void)
|
|
#ifdef CONFIG_PCI
|
|
#ifdef CONFIG_PCI
|
|
static struct octeon_dma_map_ops _octeon_pci_dma_map_ops = {
|
|
static struct octeon_dma_map_ops _octeon_pci_dma_map_ops = {
|
|
.dma_map_ops = {
|
|
.dma_map_ops = {
|
|
- .alloc_coherent = octeon_dma_alloc_coherent,
|
|
|
|
- .free_coherent = octeon_dma_free_coherent,
|
|
|
|
|
|
+ .alloc = octeon_dma_alloc_coherent,
|
|
|
|
+ .free = octeon_dma_free_coherent,
|
|
.map_page = octeon_dma_map_page,
|
|
.map_page = octeon_dma_map_page,
|
|
.unmap_page = swiotlb_unmap_page,
|
|
.unmap_page = swiotlb_unmap_page,
|
|
.map_sg = octeon_dma_map_sg,
|
|
.map_sg = octeon_dma_map_sg,
|