1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com 4 * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> 5 */ 6 7 #ifndef __TI_UDMA_H 8 #define __TI_UDMA_H 9 10 /** 11 * struct ti_udma_drv_packet_data - TI UDMA transfer specific data 12 * 13 * @pkt_type: Packet Type - specific for each DMA client HW 14 * @dest_tag: Destination tag The source pointer. 15 * 16 * TI UDMA transfer specific data passed as part of DMA transfer to 17 * the DMA client HW in UDMA descriptors. 18 */ 19 struct ti_udma_drv_packet_data { 20 u32 pkt_type; 21 u32 dest_tag; 22 }; 23 24 /** 25 * struct ti_udma_drv_chan_cfg_data - TI UDMA per channel specific 26 * configuration data 27 * 28 * @flow_id_base: Start index of flow ID allocated to this channel 29 * @flow_id_cnt: Number of flows allocated for this channel starting at 30 * flow_id_base 31 * 32 * TI UDMA channel specific data returned as part of dma_get_cfg() call 33 * from the DMA client driver. 34 */ 35 struct ti_udma_drv_chan_cfg_data { 36 u32 flow_id_base; 37 u32 flow_id_cnt; 38 }; 39 40 /* TI UDMA specific flag IDs for dma_get_cfg() call */ 41 #define TI_UDMA_CHAN_PRIV_INFO 0 42 43 #endif /* __TI_UDMA_H */ 44