mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
c9eb6172c3
After we removed all the dead wood it turns out only two architectures actually implement dma_cache_sync as a real op: mips and parisc. Add a cache_sync method to struct dma_map_ops and implement it for the mips defualt DMA ops, and the parisc pa11 ops. Note that arm, arc and openrisc support DMA_ATTR_NON_CONSISTENT, but never provided a functional dma_cache_sync implementations, which seems somewhat odd. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
29 lines
765 B
C
29 lines
765 B
C
/*
|
|
* Implements the generic device dma API for microblaze and the pci
|
|
*
|
|
* Copyright (C) 2009-2010 Michal Simek <monstr@monstr.eu>
|
|
* Copyright (C) 2009-2010 PetaLogix
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General
|
|
* Public License. See the file COPYING in the main directory of this
|
|
* archive for more details.
|
|
*
|
|
* This file is base on powerpc and x86 dma-mapping.h versions
|
|
* Copyright (C) 2004 IBM
|
|
*/
|
|
|
|
#ifndef _ASM_MICROBLAZE_DMA_MAPPING_H
|
|
#define _ASM_MICROBLAZE_DMA_MAPPING_H
|
|
|
|
/*
|
|
* Available generic sets of operations
|
|
*/
|
|
extern const struct dma_map_ops dma_direct_ops;
|
|
|
|
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
|
{
|
|
return &dma_direct_ops;
|
|
}
|
|
|
|
#endif /* _ASM_MICROBLAZE_DMA_MAPPING_H */
|