calculationStandardDeviation.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. *
  3. * include/linux/coh901318.h
  4. *
  5. *
  6. * Copyright (C) 2007-2009 ST-Ericsson
  7. * License terms: GNU General Public License (GPL) version 2
  8. * DMA driver for COH 901 318
  9. * Author: Per Friden <per.friden@stericsson.com>
  10. */
  11. #ifndef COH901318_H
  12. #define COH901318_H
  13. #include <linux/device.h>
  14. #include <linux/dmaengine.h>
  15. #define MAX_DMA_PACKET_SIZE_SHIFT 11
  16. #define MAX_DMA_PACKET_SIZE (1 << MAX_DMA_PACKET_SIZE_SHIFT)
  17. /**
  18. * struct coh901318_lli - linked list item for DMAC
  19. * @control: control settings for DMAC
  20. * @src_addr: transfer source address
  21. * @dst_addr: transfer destination address
  22. * @link_addr: physical address to next lli
  23. * @virt_link_addr: virtual address of next lli (only used by pool_free)
  24. * @phy_this: physical address of current lli (only used by pool_free)
  25. */
  26. struct coh901318_lli {
  27. u32 control;
  28. dma_addr_t src_addr;
  29. dma_addr_t dst_addr;
  30. dma_addr_t link_addr;
  31. void *virt_link_addr;
  32. dma_addr_t phy_this;
  33. };
  34. /**
  35. * struct coh901318_params - parameters for DMAC configuration
  36. * @config: DMA config register
  37. * @ctrl_lli_last: DMA control register for the last lli in the list
  38. * @ctrl_lli: DMA control register for an lli
  39. * @ctrl_lli_chained: DMA control register for a chained lli
  40. */
  41. struct coh901318_params {
  42. u32 config;
  43. u32 ctrl_lli_last;
  44. u32 ctrl_lli;
  45. u32 ctrl_lli_chained;
  46. };
  47. /**
  48. * struct coh_dma_channel - dma channel base
  49. * @name: ascii name of dma channel