cslr_iva_hd.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /********************************************************************
  2. * Copyright (C) 2013-2014 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. #ifndef CSLR_IVAHD_H_
  34. #define CSLR_IVAHD_H_
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. #include <ti/csl/cslr.h>
  40. #include <ti/csl/tistdtypes.h>
  41. /**************************************************************************
  42. * Register Overlay Structure for __ALL__
  43. **************************************************************************/
  44. typedef struct {
  45. volatile Uint64 COMPONENT;
  46. volatile Uint8 RSVD0[8];
  47. volatile Uint64 NETWORK;
  48. volatile Uint8 RSVD1[88];
  49. volatile Uint64 INITID_READBACK;
  50. } CSL_IvaHdRegs;
  51. /**************************************************************************
  52. * Register Macros
  53. **************************************************************************/
  54. /* Component identification */
  55. #define CSL_IVAHD_COMPONENT (0x0U)
  56. /* Interconnect identification */
  57. #define CSL_IVAHD_NETWORK (0x10U)
  58. /* Initiator ID read-back */
  59. #define CSL_IVAHD_INITID_READBACK (0x70U)
  60. /**************************************************************************
  61. * Field Definition Macros
  62. **************************************************************************/
  63. /* COMPONENT */
  64. #define CSL_IVAHD_COMPONENT_REV_MASK (0x0000FFFFU)
  65. #define CSL_IVAHD_COMPONENT_REV_SHIFT (0U)
  66. #define CSL_IVAHD_COMPONENT_REV_RESETVAL (0x00006333U)
  67. #define CSL_IVAHD_COMPONENT_REV_MAX (0x0000ffffU)
  68. #define CSL_IVAHD_COMPONENT_CODE_MASK (0xFFFF0000U)
  69. #define CSL_IVAHD_COMPONENT_CODE_SHIFT (16U)
  70. #define CSL_IVAHD_COMPONENT_CODE_RESETVAL (0x00002000U)
  71. #define CSL_IVAHD_COMPONENT_CODE_MAX (0x0000ffffU)
  72. #define CSL_IVAHD_COMPONENT_RESETVAL (0x20006333U)
  73. /* NETWORK */
  74. #define CSL_IVAHD_NETWORK_REV_MASK (0xFFFF00000000U)
  75. #define CSL_IVAHD_NETWORK_REV_SHIFT (32U)
  76. #define CSL_IVAHD_NETWORK_REV_RESETVAL (0x00000000U)
  77. #define CSL_IVAHD_NETWORK_REV_MAX (0x0000ffffU)
  78. #define CSL_IVAHD_NETWORK_ID_MASK (0xFFFF000000000000U)
  79. #define CSL_IVAHD_NETWORK_ID_SHIFT (48U)
  80. #define CSL_IVAHD_NETWORK_ID_RESETVAL (0x00000000U)
  81. #define CSL_IVAHD_NETWORK_ID_MAX (0x0000ffffU)
  82. #define CSL_IVAHD_NETWORK_RESETVAL (0x00000000U)
  83. /* INITID_READBACK */
  84. #define CSL_IVAHD_INITID_READBACK_INITID_MASK (0x000000FFU)
  85. #define CSL_IVAHD_INITID_READBACK_INITID_SHIFT (0U)
  86. #define CSL_IVAHD_INITID_READBACK_INITID_RESETVAL (0x00000000U)
  87. #define CSL_IVAHD_INITID_READBACK_INITID_MAX (0x000000ffU)
  88. #define CSL_IVAHD_INITID_READBACK_RESETVAL (0x00000000U)
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92. #endif