ti-udma.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #ifndef __TI_UDMA_H
  7. #define __TI_UDMA_H
  8. /**
  9. * struct ti_udma_drv_packet_data - TI UDMA transfer specific data
  10. *
  11. * @pkt_type: Packet Type - specific for each DMA client HW
  12. * @dest_tag: Destination tag The source pointer.
  13. *
  14. * TI UDMA transfer specific data passed as part of DMA transfer to
  15. * the DMA client HW in UDMA descriptors.
  16. */
  17. struct ti_udma_drv_packet_data {
  18. u32 pkt_type;
  19. u32 dest_tag;
  20. };
  21. /**
  22. * struct ti_udma_drv_chan_cfg_data - TI UDMA per channel specific
  23. * configuration data
  24. *
  25. * @flow_id_base: Start index of flow ID allocated to this channel
  26. * @flow_id_cnt: Number of flows allocated for this channel starting at
  27. * flow_id_base
  28. *
  29. * TI UDMA channel specific data returned as part of dma_get_cfg() call
  30. * from the DMA client driver.
  31. */
  32. struct ti_udma_drv_chan_cfg_data {
  33. u32 flow_id_base;
  34. u32 flow_id_cnt;
  35. };
  36. /* TI UDMA specific flag IDs for dma_get_cfg() call */
  37. #define TI_UDMA_CHAN_PRIV_INFO 0
  38. #endif /* __TI_UDMA_H */