/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright 2018-2020 Broadcom. */ #ifndef BCM_VK_SG_H #define BCM_VK_SG_H #include <linux/dma-mapping.h> struct bcm_vk_dma { … }; struct _vk_data { … } __packed; /* * Scatter-gather DMA buffer API. * * These functions provide a simple way to create a page list and a * scatter-gather list from userspace address and map the memory * for DMA operation. */ int bcm_vk_sg_alloc(struct device *dev, struct bcm_vk_dma *dma, int dir, struct _vk_data *vkdata, int num); int bcm_vk_sg_free(struct device *dev, struct bcm_vk_dma *dma, int num, int *proc_cnt); #endif