qca6290def.c 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /*
  2. * Copyright (c) 2016 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. #if defined(QCA6290_HEADERS_DEF)
  19. #undef UMAC
  20. #define WLAN_HEADERS 1
  21. #include "lithium_top_reg.h"
  22. #define MISSING 0
  23. #define SOC_RESET_CONTROL_OFFSET MISSING
  24. #define GPIO_PIN0_OFFSET MISSING
  25. #define GPIO_PIN1_OFFSET MISSING
  26. #define GPIO_PIN0_CONFIG_MASK MISSING
  27. #define GPIO_PIN1_CONFIG_MASK MISSING
  28. #define LOCAL_SCRATCH_OFFSET 0x18
  29. #define GPIO_PIN10_OFFSET MISSING
  30. #define GPIO_PIN11_OFFSET MISSING
  31. #define GPIO_PIN12_OFFSET MISSING
  32. #define GPIO_PIN13_OFFSET MISSING
  33. #define MBOX_BASE_ADDRESS MISSING
  34. #define INT_STATUS_ENABLE_ERROR_LSB MISSING
  35. #define INT_STATUS_ENABLE_ERROR_MASK MISSING
  36. #define INT_STATUS_ENABLE_CPU_LSB MISSING
  37. #define INT_STATUS_ENABLE_CPU_MASK MISSING
  38. #define INT_STATUS_ENABLE_COUNTER_LSB MISSING
  39. #define INT_STATUS_ENABLE_COUNTER_MASK MISSING
  40. #define INT_STATUS_ENABLE_MBOX_DATA_LSB MISSING
  41. #define INT_STATUS_ENABLE_MBOX_DATA_MASK MISSING
  42. #define ERROR_STATUS_ENABLE_RX_UNDERFLOW_LSB MISSING
  43. #define ERROR_STATUS_ENABLE_RX_UNDERFLOW_MASK MISSING
  44. #define ERROR_STATUS_ENABLE_TX_OVERFLOW_LSB MISSING
  45. #define ERROR_STATUS_ENABLE_TX_OVERFLOW_MASK MISSING
  46. #define COUNTER_INT_STATUS_ENABLE_BIT_LSB MISSING
  47. #define COUNTER_INT_STATUS_ENABLE_BIT_MASK MISSING
  48. #define INT_STATUS_ENABLE_ADDRESS MISSING
  49. #define CPU_INT_STATUS_ENABLE_BIT_LSB MISSING
  50. #define CPU_INT_STATUS_ENABLE_BIT_MASK MISSING
  51. #define HOST_INT_STATUS_ADDRESS MISSING
  52. #define CPU_INT_STATUS_ADDRESS MISSING
  53. #define ERROR_INT_STATUS_ADDRESS MISSING
  54. #define ERROR_INT_STATUS_WAKEUP_MASK MISSING
  55. #define ERROR_INT_STATUS_WAKEUP_LSB MISSING
  56. #define ERROR_INT_STATUS_RX_UNDERFLOW_MASK MISSING
  57. #define ERROR_INT_STATUS_RX_UNDERFLOW_LSB MISSING
  58. #define ERROR_INT_STATUS_TX_OVERFLOW_MASK MISSING
  59. #define ERROR_INT_STATUS_TX_OVERFLOW_LSB MISSING
  60. #define COUNT_DEC_ADDRESS MISSING
  61. #define HOST_INT_STATUS_CPU_MASK MISSING
  62. #define HOST_INT_STATUS_CPU_LSB MISSING
  63. #define HOST_INT_STATUS_ERROR_MASK MISSING
  64. #define HOST_INT_STATUS_ERROR_LSB MISSING
  65. #define HOST_INT_STATUS_COUNTER_MASK MISSING
  66. #define HOST_INT_STATUS_COUNTER_LSB MISSING
  67. #define RX_LOOKAHEAD_VALID_ADDRESS MISSING
  68. #define WINDOW_DATA_ADDRESS MISSING
  69. #define WINDOW_READ_ADDR_ADDRESS MISSING
  70. #define WINDOW_WRITE_ADDR_ADDRESS MISSING
  71. /* GPIO Register */
  72. #define GPIO_ENABLE_W1TS_LOW_ADDRESS MISSING
  73. #define GPIO_PIN0_CONFIG_LSB MISSING
  74. #define GPIO_PIN0_PAD_PULL_LSB MISSING
  75. #define GPIO_PIN0_PAD_PULL_MASK MISSING
  76. /* SI reg */
  77. #define SI_CONFIG_ERR_INT_MASK MISSING
  78. #define SI_CONFIG_ERR_INT_LSB MISSING
  79. #define RTC_SOC_BASE_ADDRESS MISSING
  80. #define RTC_WMAC_BASE_ADDRESS MISSING
  81. #define SOC_CORE_BASE_ADDRESS MISSING
  82. #define WLAN_MAC_BASE_ADDRESS MISSING
  83. #define GPIO_BASE_ADDRESS MISSING
  84. #define ANALOG_INTF_BASE_ADDRESS MISSING
  85. #define CE0_BASE_ADDRESS MISSING
  86. #define CE1_BASE_ADDRESS MISSING
  87. #define CE_COUNT 12
  88. #define CE_WRAPPER_BASE_ADDRESS MISSING
  89. #define SI_BASE_ADDRESS MISSING
  90. #define DRAM_BASE_ADDRESS MISSING
  91. #define WLAN_SYSTEM_SLEEP_DISABLE_LSB MISSING
  92. #define WLAN_SYSTEM_SLEEP_DISABLE_MASK MISSING
  93. #define CLOCK_CONTROL_OFFSET MISSING
  94. #define CLOCK_CONTROL_SI0_CLK_MASK MISSING
  95. #define RESET_CONTROL_SI0_RST_MASK MISSING
  96. #define WLAN_RESET_CONTROL_OFFSET MISSING
  97. #define WLAN_RESET_CONTROL_COLD_RST_MASK MISSING
  98. #define WLAN_RESET_CONTROL_WARM_RST_MASK MISSING
  99. #define CPU_CLOCK_OFFSET MISSING
  100. #define CPU_CLOCK_STANDARD_LSB MISSING
  101. #define CPU_CLOCK_STANDARD_MASK MISSING
  102. #define LPO_CAL_ENABLE_LSB MISSING
  103. #define LPO_CAL_ENABLE_MASK MISSING
  104. #define WLAN_SYSTEM_SLEEP_OFFSET MISSING
  105. #define SOC_CHIP_ID_ADDRESS MISSING
  106. #define SOC_CHIP_ID_REVISION_MASK MISSING
  107. #define SOC_CHIP_ID_REVISION_LSB MISSING
  108. #define SOC_CHIP_ID_REVISION_MSB MISSING
  109. #define FW_IND_EVENT_PENDING MISSING
  110. #define FW_IND_INITIALIZED MISSING
  111. #define MSDU_LINK_EXT_3_TCP_OVER_IPV4_CHECKSUM_EN_MASK MISSING
  112. #define MSDU_LINK_EXT_3_TCP_OVER_IPV6_CHECKSUM_EN_MASK MISSING
  113. #define MSDU_LINK_EXT_3_UDP_OVER_IPV4_CHECKSUM_EN_MASK MISSING
  114. #define MSDU_LINK_EXT_3_UDP_OVER_IPV6_CHECKSUM_EN_MASK MISSING
  115. #define MSDU_LINK_EXT_3_TCP_OVER_IPV4_CHECKSUM_EN_LSB MISSING
  116. #define MSDU_LINK_EXT_3_TCP_OVER_IPV6_CHECKSUM_EN_LSB MISSING
  117. #define MSDU_LINK_EXT_3_UDP_OVER_IPV4_CHECKSUM_EN_LSB MISSING
  118. #define MSDU_LINK_EXT_3_UDP_OVER_IPV6_CHECKSUM_EN_LSB MISSING
  119. #define SR_WR_INDEX_ADDRESS MISSING
  120. #define DST_WATERMARK_ADDRESS MISSING
  121. #define DST_WR_INDEX_ADDRESS MISSING
  122. #define SRC_WATERMARK_ADDRESS MISSING
  123. #define SRC_WATERMARK_LOW_MASK MISSING
  124. #define SRC_WATERMARK_HIGH_MASK MISSING
  125. #define DST_WATERMARK_LOW_MASK MISSING
  126. #define DST_WATERMARK_HIGH_MASK MISSING
  127. #define CURRENT_SRRI_ADDRESS MISSING
  128. #define CURRENT_DRRI_ADDRESS MISSING
  129. #define HOST_IS_SRC_RING_HIGH_WATERMARK_MASK MISSING
  130. #define HOST_IS_SRC_RING_LOW_WATERMARK_MASK MISSING
  131. #define HOST_IS_DST_RING_HIGH_WATERMARK_MASK MISSING
  132. #define HOST_IS_DST_RING_LOW_WATERMARK_MASK MISSING
  133. #define HOST_IS_ADDRESS MISSING
  134. #define MISC_IS_ADDRESS MISSING
  135. #define HOST_IS_COPY_COMPLETE_MASK MISSING
  136. #define CE_WRAPPER_BASE_ADDRESS MISSING
  137. #define CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS MISSING
  138. #define CE_DDR_ADDRESS_FOR_RRI_LOW MISSING
  139. #define CE_DDR_ADDRESS_FOR_RRI_HIGH MISSING
  140. #define HOST_IE_ADDRESS UMAC_CE_COMMON_CE_HOST_IE_0
  141. #define HOST_IE_ADDRESS_2 UMAC_CE_COMMON_CE_HOST_IE_1
  142. #define HOST_IE_COPY_COMPLETE_MASK MISSING
  143. #define SR_BA_ADDRESS MISSING
  144. #define SR_BA_ADDRESS_HIGH MISSING
  145. #define SR_SIZE_ADDRESS MISSING
  146. #define CE_CTRL1_ADDRESS MISSING
  147. #define CE_CTRL1_DMAX_LENGTH_MASK MISSING
  148. #define DR_BA_ADDRESS MISSING
  149. #define DR_BA_ADDRESS_HIGH MISSING
  150. #define DR_SIZE_ADDRESS MISSING
  151. #define CE_CMD_REGISTER MISSING
  152. #define CE_MSI_ADDRESS MISSING
  153. #define CE_MSI_ADDRESS_HIGH MISSING
  154. #define CE_MSI_DATA MISSING
  155. #define CE_MSI_ENABLE_BIT MISSING
  156. #define MISC_IE_ADDRESS MISSING
  157. #define MISC_IS_AXI_ERR_MASK MISSING
  158. #define MISC_IS_DST_ADDR_ERR_MASK MISSING
  159. #define MISC_IS_SRC_LEN_ERR_MASK MISSING
  160. #define MISC_IS_DST_MAX_LEN_VIO_MASK MISSING
  161. #define MISC_IS_DST_RING_OVERFLOW_MASK MISSING
  162. #define MISC_IS_SRC_RING_OVERFLOW_MASK MISSING
  163. #define SRC_WATERMARK_LOW_LSB MISSING
  164. #define SRC_WATERMARK_HIGH_LSB MISSING
  165. #define DST_WATERMARK_LOW_LSB MISSING
  166. #define DST_WATERMARK_HIGH_LSB MISSING
  167. #define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK MISSING
  168. #define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB MISSING
  169. #define CE_CTRL1_DMAX_LENGTH_LSB MISSING
  170. #define CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK MISSING
  171. #define CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK MISSING
  172. #define CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB MISSING
  173. #define CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB MISSING
  174. #define CE_CTRL1_IDX_UPD_EN_MASK MISSING
  175. #define CE_WRAPPER_DEBUG_OFFSET MISSING
  176. #define CE_WRAPPER_DEBUG_SEL_MSB MISSING
  177. #define CE_WRAPPER_DEBUG_SEL_LSB MISSING
  178. #define CE_WRAPPER_DEBUG_SEL_MASK MISSING
  179. #define CE_DEBUG_OFFSET MISSING
  180. #define CE_DEBUG_SEL_MSB MISSING
  181. #define CE_DEBUG_SEL_LSB MISSING
  182. #define CE_DEBUG_SEL_MASK MISSING
  183. #define CE0_BASE_ADDRESS MISSING
  184. #define CE1_BASE_ADDRESS MISSING
  185. #define A_WIFI_APB_3_A_WCMN_APPS_CE_INTR_ENABLES MISSING
  186. #define A_WIFI_APB_3_A_WCMN_APPS_CE_INTR_STATUS MISSING
  187. #define QCA6290_BOARD_DATA_SZ MISSING
  188. #define QCA6290_BOARD_EXT_DATA_SZ MISSING
  189. #define MY_TARGET_DEF QCA6290_TARGETdef
  190. #define MY_HOST_DEF QCA6290_HOSTdef
  191. #define MY_CEREG_DEF QCA6290_CE_TARGETdef
  192. #define MY_TARGET_BOARD_DATA_SZ QCA6290_BOARD_DATA_SZ
  193. #define MY_TARGET_BOARD_EXT_DATA_SZ QCA6290_BOARD_EXT_DATA_SZ
  194. #include "targetdef.h"
  195. #include "hostdef.h"
  196. #else
  197. #include "common_drv.h"
  198. #include "targetdef.h"
  199. #include "hostdef.h"
  200. struct targetdef_s *QCA6290_TARGETdef;
  201. struct hostdef_s *QCA6290_HOSTdef;
  202. #endif /*QCA6290_HEADERS_DEF */