1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2018 Intel Corporation */
3 /* Copyright 2018 Google LLC. */
4 
5 #ifndef __IPU3_DMAMAP_H
6 #define __IPU3_DMAMAP_H
7 
8 struct imgu_device;
9 struct scatterlist;
10 
11 void *imgu_dmamap_alloc(struct imgu_device *imgu, struct imgu_css_map *map,
12 			size_t len);
13 void imgu_dmamap_free(struct imgu_device *imgu, struct imgu_css_map *map);
14 
15 int imgu_dmamap_map_sg(struct imgu_device *imgu, struct scatterlist *sglist,
16 		       int nents, struct imgu_css_map *map);
17 void imgu_dmamap_unmap(struct imgu_device *imgu, struct imgu_css_map *map);
18 
19 int imgu_dmamap_init(struct imgu_device *imgu);
20 void imgu_dmamap_exit(struct imgu_device *imgu);
21 
22 #endif
23