ipu3-dmamap.h (680B)
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 8struct imgu_device; 9struct scatterlist; 10 11void *imgu_dmamap_alloc(struct imgu_device *imgu, struct imgu_css_map *map, 12 size_t len); 13void imgu_dmamap_free(struct imgu_device *imgu, struct imgu_css_map *map); 14 15int imgu_dmamap_map_sg(struct imgu_device *imgu, struct scatterlist *sglist, 16 int nents, struct imgu_css_map *map); 17void imgu_dmamap_unmap(struct imgu_device *imgu, struct imgu_css_map *map); 18 19int imgu_dmamap_init(struct imgu_device *imgu); 20void imgu_dmamap_exit(struct imgu_device *imgu); 21 22#endif