cslr_mcdma.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /********************************************************************
  2. * Copyright (C) 2003-2012 Texas Instruments Incorporated.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. *
  11. * Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the
  14. * distribution.
  15. *
  16. * Neither the name of Texas Instruments Incorporated nor the names of
  17. * its contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. *
  32. */
  33. /*********************************************************************
  34. * file: cslr_mcdma.h
  35. *
  36. * Brief: This file contains the Register Description for mcdma
  37. *
  38. *********************************************************************/
  39. #ifndef CSLR_MCDMA_H_
  40. #define CSLR_MCDMA_H_
  41. #include <ti/csl/cslr.h>
  42. #include <ti/csl/tistdtypes.h>
  43. /* Minimum unit = 1 byte */
  44. /**************************************************************************\
  45. * Register Overlay Structure for MCDMA_CHANNEL_CONFIG_GROUP
  46. \**************************************************************************/
  47. typedef struct {
  48. volatile Uint32 SRC_ADDR_REG;
  49. volatile Uint32 DST_ADDR_REG;
  50. volatile Uint32 XFER_CTRL_REG;
  51. volatile Uint8 RSVD0[52];
  52. } CSL_McdmaMcdma_channel_config_groupRegs;
  53. /**************************************************************************\
  54. * Register Overlay Structure
  55. \**************************************************************************/
  56. typedef struct {
  57. CSL_McdmaMcdma_channel_config_groupRegs MCDMA_CHANNEL_CONFIG_GROUP[4];
  58. } CSL_McdmaRegs;
  59. /**************************************************************************\
  60. * Field Definition Macros
  61. \**************************************************************************/
  62. /* SRC_ADDR_REG */
  63. #define CSL_MCDMA_SRC_ADDR_REG_SRC_ADDRESS_MASK (0xFFFFFFFFu)
  64. #define CSL_MCDMA_SRC_ADDR_REG_SRC_ADDRESS_SHIFT (0x00000000u)
  65. #define CSL_MCDMA_SRC_ADDR_REG_SRC_ADDRESS_RESETVAL (0x00000000u)
  66. #define CSL_MCDMA_SRC_ADDR_REG_RESETVAL (0x00000000u)
  67. /* DST_ADDR_REG */
  68. #define CSL_MCDMA_DST_ADDR_REG_DST_ADDRESS_MASK (0xFFFFFFFFu)
  69. #define CSL_MCDMA_DST_ADDR_REG_DST_ADDRESS_SHIFT (0x00000000u)
  70. #define CSL_MCDMA_DST_ADDR_REG_DST_ADDRESS_RESETVAL (0x00000000u)
  71. #define CSL_MCDMA_DST_ADDR_REG_RESETVAL (0x00000000u)
  72. /* XFER_CTRL_REG */
  73. #define CSL_MCDMA_XFER_CTRL_REG_TRANSFER_LENGTH_MASK (0x0003FFFFu)
  74. #define CSL_MCDMA_XFER_CTRL_REG_TRANSFER_LENGTH_SHIFT (0x00000000u)
  75. #define CSL_MCDMA_XFER_CTRL_REG_TRANSFER_LENGTH_RESETVAL (0x00000000u)
  76. #define CSL_MCDMA_XFER_CTRL_REG_BURST_MODE_MASK (0x00300000u)
  77. #define CSL_MCDMA_XFER_CTRL_REG_BURST_MODE_SHIFT (0x00000014u)
  78. #define CSL_MCDMA_XFER_CTRL_REG_BURST_MODE_RESETVAL (0x00000000u)
  79. #define CSL_MCDMA_XFER_CTRL_REG_SRC_ADDR_MODE_MASK (0x00C00000u)
  80. #define CSL_MCDMA_XFER_CTRL_REG_SRC_ADDR_MODE_SHIFT (0x00000016u)
  81. #define CSL_MCDMA_XFER_CTRL_REG_SRC_ADDR_MODE_RESETVAL (0x00000000u)
  82. #define CSL_MCDMA_XFER_CTRL_REG_DST_ADDR_MODE_MASK (0x03000000u)
  83. #define CSL_MCDMA_XFER_CTRL_REG_DST_ADDR_MODE_SHIFT (0x00000018u)
  84. #define CSL_MCDMA_XFER_CTRL_REG_DST_ADDR_MODE_RESETVAL (0x00000000u)
  85. #define CSL_MCDMA_XFER_CTRL_REG_PRIORITY_MASK (0x1C000000u)
  86. #define CSL_MCDMA_XFER_CTRL_REG_PRIORITY_SHIFT (0x0000001Au)
  87. #define CSL_MCDMA_XFER_CTRL_REG_PRIORITY_RESETVAL (0x00000007u)
  88. #define CSL_MCDMA_XFER_CTRL_REG_ACTIVE_MASK (0x40000000u)
  89. #define CSL_MCDMA_XFER_CTRL_REG_ACTIVE_SHIFT (0x0000001Eu)
  90. #define CSL_MCDMA_XFER_CTRL_REG_ACTIVE_RESETVAL (0x00000000u)
  91. #define CSL_MCDMA_XFER_CTRL_REG_START_STOP_MASK (0x80000000u)
  92. #define CSL_MCDMA_XFER_CTRL_REG_START_STOP_SHIFT (0x0000001Fu)
  93. #define CSL_MCDMA_XFER_CTRL_REG_START_STOP_RESETVAL (0x00000000u)
  94. #define CSL_MCDMA_XFER_CTRL_REG_RESETVAL (0x1C000000u)
  95. #endif