mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-03 19:24:02 +08:00
add map/unmap_single_attr and map/unmap_sg_attr to struct dma_mapping_ops
This adds map/unmap_single_attr and map/unmap_sg_attr to struct dma_mapping_ops. This enables us to move the dma operations in struct ia64_machine_vector to struct dma_mapping_ops. Note that we will remove map/unmap_sg and map/umap_single. This is a preparation of struct dma_mapping_ops unification. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
fdbc0450df
commit
e751ab3382
@ -20,6 +20,13 @@ struct dma_mapping_ops {
|
|||||||
size_t size, int direction);
|
size_t size, int direction);
|
||||||
void (*unmap_single)(struct device *dev, dma_addr_t addr,
|
void (*unmap_single)(struct device *dev, dma_addr_t addr,
|
||||||
size_t size, int direction);
|
size_t size, int direction);
|
||||||
|
dma_addr_t (*map_single_attrs)(struct device *dev, void *cpu_addr,
|
||||||
|
size_t size, int direction,
|
||||||
|
struct dma_attrs *attrs);
|
||||||
|
void (*unmap_single_attrs)(struct device *dev,
|
||||||
|
dma_addr_t dma_addr,
|
||||||
|
size_t size, int direction,
|
||||||
|
struct dma_attrs *attrs);
|
||||||
void (*sync_single_for_cpu)(struct device *hwdev,
|
void (*sync_single_for_cpu)(struct device *hwdev,
|
||||||
dma_addr_t dma_handle, size_t size,
|
dma_addr_t dma_handle, size_t size,
|
||||||
int direction);
|
int direction);
|
||||||
@ -43,6 +50,13 @@ struct dma_mapping_ops {
|
|||||||
void (*unmap_sg)(struct device *hwdev,
|
void (*unmap_sg)(struct device *hwdev,
|
||||||
struct scatterlist *sg, int nents,
|
struct scatterlist *sg, int nents,
|
||||||
int direction);
|
int direction);
|
||||||
|
int (*map_sg_attrs)(struct device *dev,
|
||||||
|
struct scatterlist *sg, int nents,
|
||||||
|
int direction, struct dma_attrs *attrs);
|
||||||
|
void (*unmap_sg_attrs)(struct device *dev,
|
||||||
|
struct scatterlist *sg, int nents,
|
||||||
|
int direction,
|
||||||
|
struct dma_attrs *attrs);
|
||||||
int (*dma_supported_op)(struct device *hwdev, u64 mask);
|
int (*dma_supported_op)(struct device *hwdev, u64 mask);
|
||||||
int is_phys;
|
int is_phys;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user