timb_dma.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * timb_dma.h timberdale FPGA DMA driver defines
  4. * Copyright (c) 2010 Intel Corporation
  5. */
  6. /* Supports:
  7. * Timberdale FPGA DMA engine
  8. */
  9. #ifndef _LINUX_TIMB_DMA_H
  10. #define _LINUX_TIMB_DMA_H
  11. /**
  12. * struct timb_dma_platform_data_channel - Description of each individual
  13. * DMA channel for the timberdale DMA driver
  14. * @rx: true if this channel handles data in the direction to
  15. * the CPU.
  16. * @bytes_per_line: Number of bytes per line, this is specific for channels
  17. * handling video data. For other channels this shall be left to 0.
  18. * @descriptors: Number of descriptors to allocate for this channel.
  19. * @descriptor_elements: Number of elements in each descriptor.
  20. *
  21. */
  22. struct timb_dma_platform_data_channel {
  23. bool rx;
  24. unsigned int bytes_per_line;
  25. unsigned int descriptors;
  26. unsigned int descriptor_elements;
  27. };
  28. /**
  29. * struct timb_dma_platform_data - Platform data of the timberdale DMA driver
  30. * @nr_channels: Number of defined channels in the channels array.
  31. * @channels: Definition of the each channel.
  32. *
  33. */
  34. struct timb_dma_platform_data {
  35. unsigned nr_channels;
  36. struct timb_dma_platform_data_channel channels[32];
  37. };
  38. #endif