ce.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. /*
  2. * Copyright (c) 2005-2011 Atheros Communications Inc.
  3. * Copyright (c) 2011-2013 Qualcomm Atheros, Inc.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef _CE_H_
  18. #define _CE_H_
  19. #include "hif.h"
  20. /* Maximum number of Copy Engine's supported */
  21. #define CE_COUNT_MAX 8
  22. #define CE_HTT_H2T_MSG_SRC_NENTRIES 2048
  23. /* Descriptor rings must be aligned to this boundary */
  24. #define CE_DESC_RING_ALIGN 8
  25. #define CE_SENDLIST_ITEMS_MAX 12
  26. #define CE_SEND_FLAG_GATHER 0x00010000
  27. /*
  28. * Copy Engine support: low-level Target-side Copy Engine API.
  29. * This is a hardware access layer used by code that understands
  30. * how to use copy engines.
  31. */
  32. struct ath10k_ce_pipe;
  33. #define CE_DESC_FLAGS_GATHER (1 << 0)
  34. #define CE_DESC_FLAGS_BYTE_SWAP (1 << 1)
  35. #define CE_DESC_FLAGS_META_DATA_MASK 0xFFFC
  36. #define CE_DESC_FLAGS_META_DATA_LSB 3
  37. struct ce_desc {
  38. __le32 addr;
  39. __le16 nbytes;
  40. __le16 flags; /* %CE_DESC_FLAGS_ */
  41. };
  42. /* Copy Engine Ring internal state */
  43. struct ce_ring_state {
  44. /* Number of entries in this ring; must be power of 2 */
  45. unsigned int nentries;
  46. unsigned int nentries_mask;
  47. /*
  48. * For dest ring, this is the next index to be processed
  49. * by software after it was/is received into.
  50. *
  51. * For src ring, this is the last descriptor that was sent
  52. * and completion processed by software.
  53. *
  54. * Regardless of src or dest ring, this is an invariant
  55. * (modulo ring size):
  56. * write index >= read index >= sw_index
  57. */
  58. unsigned int sw_index;
  59. /* cached copy */
  60. unsigned int write_index;
  61. /*
  62. * For src ring, this is the next index not yet processed by HW.
  63. * This is a cached copy of the real HW index (read index), used
  64. * for avoiding reading the HW index register more often than
  65. * necessary.
  66. * This extends the invariant:
  67. * write index >= read index >= hw_index >= sw_index
  68. *
  69. * For dest ring, this is currently unused.
  70. */
  71. /* cached copy */
  72. unsigned int hw_index;
  73. /* Start of DMA-coherent area reserved for descriptors */
  74. /* Host address space */
  75. void *base_addr_owner_space_unaligned;
  76. /* CE address space */
  77. u32 base_addr_ce_space_unaligned;
  78. /*
  79. * Actual start of descriptors.
  80. * Aligned to descriptor-size boundary.
  81. * Points into reserved DMA-coherent area, above.
  82. */
  83. /* Host address space */
  84. void *base_addr_owner_space;
  85. /* CE address space */
  86. u32 base_addr_ce_space;
  87. /*
  88. * Start of shadow copy of descriptors, within regular memory.
  89. * Aligned to descriptor-size boundary.
  90. */
  91. void *shadow_base_unaligned;
  92. struct ce_desc *shadow_base;
  93. void **per_transfer_context;
  94. };
  95. struct ath10k_ce_pipe {
  96. struct ath10k *ar;
  97. unsigned int id;
  98. unsigned int attr_flags;
  99. u32 ctrl_addr;
  100. void (*send_cb) (struct ath10k_ce_pipe *ce_state,
  101. void *per_transfer_send_context,
  102. u32 buffer,
  103. unsigned int nbytes,
  104. unsigned int transfer_id);
  105. void (*recv_cb) (struct ath10k_ce_pipe *ce_state,
  106. void *per_transfer_recv_context,
  107. u32 buffer,
  108. unsigned int nbytes,
  109. unsigned int transfer_id,
  110. unsigned int flags);
  111. unsigned int src_sz_max;
  112. struct ce_ring_state *src_ring;
  113. struct ce_ring_state *dest_ring;
  114. };
  115. struct ce_sendlist_item {
  116. /* e.g. buffer or desc list */
  117. dma_addr_t data;
  118. union {
  119. /* simple buffer */
  120. unsigned int nbytes;
  121. /* Rx descriptor list */
  122. unsigned int ndesc;
  123. } u;
  124. /* externally-specified flags; OR-ed with internal flags */
  125. u32 flags;
  126. };
  127. struct ce_sendlist {
  128. unsigned int num_items;
  129. struct ce_sendlist_item item[CE_SENDLIST_ITEMS_MAX];
  130. };
  131. /* Copy Engine settable attributes */
  132. struct ce_attr;
  133. /*==================Send====================*/
  134. /* ath10k_ce_send flags */
  135. #define CE_SEND_FLAG_BYTE_SWAP 1
  136. /*
  137. * Queue a source buffer to be sent to an anonymous destination buffer.
  138. * ce - which copy engine to use
  139. * buffer - address of buffer
  140. * nbytes - number of bytes to send
  141. * transfer_id - arbitrary ID; reflected to destination
  142. * flags - CE_SEND_FLAG_* values
  143. * Returns 0 on success; otherwise an error status.
  144. *
  145. * Note: If no flags are specified, use CE's default data swap mode.
  146. *
  147. * Implementation note: pushes 1 buffer to Source ring
  148. */
  149. int ath10k_ce_send(struct ath10k_ce_pipe *ce_state,
  150. void *per_transfer_send_context,
  151. u32 buffer,
  152. unsigned int nbytes,
  153. /* 14 bits */
  154. unsigned int transfer_id,
  155. unsigned int flags);
  156. void ath10k_ce_send_cb_register(struct ath10k_ce_pipe *ce_state,
  157. void (*send_cb)(struct ath10k_ce_pipe *ce_state,
  158. void *transfer_context,
  159. u32 buffer,
  160. unsigned int nbytes,
  161. unsigned int transfer_id),
  162. int disable_interrupts);
  163. /* Append a simple buffer (address/length) to a sendlist. */
  164. void ath10k_ce_sendlist_buf_add(struct ce_sendlist *sendlist,
  165. u32 buffer,
  166. unsigned int nbytes,
  167. /* OR-ed with internal flags */
  168. u32 flags);
  169. /*
  170. * Queue a "sendlist" of buffers to be sent using gather to a single
  171. * anonymous destination buffer
  172. * ce - which copy engine to use
  173. * sendlist - list of simple buffers to send using gather
  174. * transfer_id - arbitrary ID; reflected to destination
  175. * Returns 0 on success; otherwise an error status.
  176. *
  177. * Implemenation note: Pushes multiple buffers with Gather to Source ring.
  178. */
  179. int ath10k_ce_sendlist_send(struct ath10k_ce_pipe *ce_state,
  180. void *per_transfer_send_context,
  181. struct ce_sendlist *sendlist,
  182. /* 14 bits */
  183. unsigned int transfer_id);
  184. /*==================Recv=======================*/
  185. /*
  186. * Make a buffer available to receive. The buffer must be at least of a
  187. * minimal size appropriate for this copy engine (src_sz_max attribute).
  188. * ce - which copy engine to use
  189. * per_transfer_recv_context - context passed back to caller's recv_cb
  190. * buffer - address of buffer in CE space
  191. * Returns 0 on success; otherwise an error status.
  192. *
  193. * Implemenation note: Pushes a buffer to Dest ring.
  194. */
  195. int ath10k_ce_recv_buf_enqueue(struct ath10k_ce_pipe *ce_state,
  196. void *per_transfer_recv_context,
  197. u32 buffer);
  198. void ath10k_ce_recv_cb_register(struct ath10k_ce_pipe *ce_state,
  199. void (*recv_cb)(struct ath10k_ce_pipe *ce_state,
  200. void *transfer_context,
  201. u32 buffer,
  202. unsigned int nbytes,
  203. unsigned int transfer_id,
  204. unsigned int flags));
  205. /* recv flags */
  206. /* Data is byte-swapped */
  207. #define CE_RECV_FLAG_SWAPPED 1
  208. /*
  209. * Supply data for the next completed unprocessed receive descriptor.
  210. * Pops buffer from Dest ring.
  211. */
  212. int ath10k_ce_completed_recv_next(struct ath10k_ce_pipe *ce_state,
  213. void **per_transfer_contextp,
  214. u32 *bufferp,
  215. unsigned int *nbytesp,
  216. unsigned int *transfer_idp,
  217. unsigned int *flagsp);
  218. /*
  219. * Supply data for the next completed unprocessed send descriptor.
  220. * Pops 1 completed send buffer from Source ring.
  221. */
  222. int ath10k_ce_completed_send_next(struct ath10k_ce_pipe *ce_state,
  223. void **per_transfer_contextp,
  224. u32 *bufferp,
  225. unsigned int *nbytesp,
  226. unsigned int *transfer_idp);
  227. /*==================CE Engine Initialization=======================*/
  228. /* Initialize an instance of a CE */
  229. struct ath10k_ce_pipe *ath10k_ce_init(struct ath10k *ar,
  230. unsigned int ce_id,
  231. const struct ce_attr *attr);
  232. /*==================CE Engine Shutdown=======================*/
  233. /*
  234. * Support clean shutdown by allowing the caller to revoke
  235. * receive buffers. Target DMA must be stopped before using
  236. * this API.
  237. */
  238. int ath10k_ce_revoke_recv_next(struct ath10k_ce_pipe *ce_state,
  239. void **per_transfer_contextp,
  240. u32 *bufferp);
  241. /*
  242. * Support clean shutdown by allowing the caller to cancel
  243. * pending sends. Target DMA must be stopped before using
  244. * this API.
  245. */
  246. int ath10k_ce_cancel_send_next(struct ath10k_ce_pipe *ce_state,
  247. void **per_transfer_contextp,
  248. u32 *bufferp,
  249. unsigned int *nbytesp,
  250. unsigned int *transfer_idp);
  251. void ath10k_ce_deinit(struct ath10k_ce_pipe *ce_state);
  252. /*==================CE Interrupt Handlers====================*/
  253. void ath10k_ce_per_engine_service_any(struct ath10k *ar);
  254. void ath10k_ce_per_engine_service(struct ath10k *ar, unsigned int ce_id);
  255. void ath10k_ce_disable_interrupts(struct ath10k *ar);
  256. /* ce_attr.flags values */
  257. /* Use NonSnooping PCIe accesses? */
  258. #define CE_ATTR_NO_SNOOP 1
  259. /* Byte swap data words */
  260. #define CE_ATTR_BYTE_SWAP_DATA 2
  261. /* Swizzle descriptors? */
  262. #define CE_ATTR_SWIZZLE_DESCRIPTORS 4
  263. /* no interrupt on copy completion */
  264. #define CE_ATTR_DIS_INTR 8
  265. /* Attributes of an instance of a Copy Engine */
  266. struct ce_attr {
  267. /* CE_ATTR_* values */
  268. unsigned int flags;
  269. /* #entries in source ring - Must be a power of 2 */
  270. unsigned int src_nentries;
  271. /*
  272. * Max source send size for this CE.
  273. * This is also the minimum size of a destination buffer.
  274. */
  275. unsigned int src_sz_max;
  276. /* #entries in destination ring - Must be a power of 2 */
  277. unsigned int dest_nentries;
  278. };
  279. /*
  280. * When using sendlist_send to transfer multiple buffer fragments, the
  281. * transfer context of each fragment, except last one, will be filled
  282. * with CE_SENDLIST_ITEM_CTXT. ce_completed_send will return success for
  283. * each fragment done with send and the transfer context would be
  284. * CE_SENDLIST_ITEM_CTXT. Upper layer could use this to identify the
  285. * status of a send completion.
  286. */
  287. #define CE_SENDLIST_ITEM_CTXT ((void *)0xcecebeef)
  288. #define SR_BA_ADDRESS 0x0000
  289. #define SR_SIZE_ADDRESS 0x0004
  290. #define DR_BA_ADDRESS 0x0008
  291. #define DR_SIZE_ADDRESS 0x000c
  292. #define CE_CMD_ADDRESS 0x0018
  293. #define CE_CTRL1_DST_RING_BYTE_SWAP_EN_MSB 17
  294. #define CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB 17
  295. #define CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK 0x00020000
  296. #define CE_CTRL1_DST_RING_BYTE_SWAP_EN_SET(x) \
  297. (((0 | (x)) << CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB) & \
  298. CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK)
  299. #define CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MSB 16
  300. #define CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB 16
  301. #define CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK 0x00010000
  302. #define CE_CTRL1_SRC_RING_BYTE_SWAP_EN_GET(x) \
  303. (((x) & CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK) >> \
  304. CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB)
  305. #define CE_CTRL1_SRC_RING_BYTE_SWAP_EN_SET(x) \
  306. (((0 | (x)) << CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB) & \
  307. CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK)
  308. #define CE_CTRL1_DMAX_LENGTH_MSB 15
  309. #define CE_CTRL1_DMAX_LENGTH_LSB 0
  310. #define CE_CTRL1_DMAX_LENGTH_MASK 0x0000ffff
  311. #define CE_CTRL1_DMAX_LENGTH_GET(x) \
  312. (((x) & CE_CTRL1_DMAX_LENGTH_MASK) >> CE_CTRL1_DMAX_LENGTH_LSB)
  313. #define CE_CTRL1_DMAX_LENGTH_SET(x) \
  314. (((0 | (x)) << CE_CTRL1_DMAX_LENGTH_LSB) & CE_CTRL1_DMAX_LENGTH_MASK)
  315. #define CE_CTRL1_ADDRESS 0x0010
  316. #define CE_CTRL1_HW_MASK 0x0007ffff
  317. #define CE_CTRL1_SW_MASK 0x0007ffff
  318. #define CE_CTRL1_HW_WRITE_MASK 0x00000000
  319. #define CE_CTRL1_SW_WRITE_MASK 0x0007ffff
  320. #define CE_CTRL1_RSTMASK 0xffffffff
  321. #define CE_CTRL1_RESET 0x00000080
  322. #define CE_CMD_HALT_STATUS_MSB 3
  323. #define CE_CMD_HALT_STATUS_LSB 3
  324. #define CE_CMD_HALT_STATUS_MASK 0x00000008
  325. #define CE_CMD_HALT_STATUS_GET(x) \
  326. (((x) & CE_CMD_HALT_STATUS_MASK) >> CE_CMD_HALT_STATUS_LSB)
  327. #define CE_CMD_HALT_STATUS_SET(x) \
  328. (((0 | (x)) << CE_CMD_HALT_STATUS_LSB) & CE_CMD_HALT_STATUS_MASK)
  329. #define CE_CMD_HALT_STATUS_RESET 0
  330. #define CE_CMD_HALT_MSB 0
  331. #define CE_CMD_HALT_MASK 0x00000001
  332. #define HOST_IE_COPY_COMPLETE_MSB 0
  333. #define HOST_IE_COPY_COMPLETE_LSB 0
  334. #define HOST_IE_COPY_COMPLETE_MASK 0x00000001
  335. #define HOST_IE_COPY_COMPLETE_GET(x) \
  336. (((x) & HOST_IE_COPY_COMPLETE_MASK) >> HOST_IE_COPY_COMPLETE_LSB)
  337. #define HOST_IE_COPY_COMPLETE_SET(x) \
  338. (((0 | (x)) << HOST_IE_COPY_COMPLETE_LSB) & HOST_IE_COPY_COMPLETE_MASK)
  339. #define HOST_IE_COPY_COMPLETE_RESET 0
  340. #define HOST_IE_ADDRESS 0x002c
  341. #define HOST_IS_DST_RING_LOW_WATERMARK_MASK 0x00000010
  342. #define HOST_IS_DST_RING_HIGH_WATERMARK_MASK 0x00000008
  343. #define HOST_IS_SRC_RING_LOW_WATERMARK_MASK 0x00000004
  344. #define HOST_IS_SRC_RING_HIGH_WATERMARK_MASK 0x00000002
  345. #define HOST_IS_COPY_COMPLETE_MASK 0x00000001
  346. #define HOST_IS_ADDRESS 0x0030
  347. #define MISC_IE_ADDRESS 0x0034
  348. #define MISC_IS_AXI_ERR_MASK 0x00000400
  349. #define MISC_IS_DST_ADDR_ERR_MASK 0x00000200
  350. #define MISC_IS_SRC_LEN_ERR_MASK 0x00000100
  351. #define MISC_IS_DST_MAX_LEN_VIO_MASK 0x00000080
  352. #define MISC_IS_DST_RING_OVERFLOW_MASK 0x00000040
  353. #define MISC_IS_SRC_RING_OVERFLOW_MASK 0x00000020
  354. #define MISC_IS_ADDRESS 0x0038
  355. #define SR_WR_INDEX_ADDRESS 0x003c
  356. #define DST_WR_INDEX_ADDRESS 0x0040
  357. #define CURRENT_SRRI_ADDRESS 0x0044
  358. #define CURRENT_DRRI_ADDRESS 0x0048
  359. #define SRC_WATERMARK_LOW_MSB 31
  360. #define SRC_WATERMARK_LOW_LSB 16
  361. #define SRC_WATERMARK_LOW_MASK 0xffff0000
  362. #define SRC_WATERMARK_LOW_GET(x) \
  363. (((x) & SRC_WATERMARK_LOW_MASK) >> SRC_WATERMARK_LOW_LSB)
  364. #define SRC_WATERMARK_LOW_SET(x) \
  365. (((0 | (x)) << SRC_WATERMARK_LOW_LSB) & SRC_WATERMARK_LOW_MASK)
  366. #define SRC_WATERMARK_LOW_RESET 0
  367. #define SRC_WATERMARK_HIGH_MSB 15
  368. #define SRC_WATERMARK_HIGH_LSB 0
  369. #define SRC_WATERMARK_HIGH_MASK 0x0000ffff
  370. #define SRC_WATERMARK_HIGH_GET(x) \
  371. (((x) & SRC_WATERMARK_HIGH_MASK) >> SRC_WATERMARK_HIGH_LSB)
  372. #define SRC_WATERMARK_HIGH_SET(x) \
  373. (((0 | (x)) << SRC_WATERMARK_HIGH_LSB) & SRC_WATERMARK_HIGH_MASK)
  374. #define SRC_WATERMARK_HIGH_RESET 0
  375. #define SRC_WATERMARK_ADDRESS 0x004c
  376. #define DST_WATERMARK_LOW_LSB 16
  377. #define DST_WATERMARK_LOW_MASK 0xffff0000
  378. #define DST_WATERMARK_LOW_SET(x) \
  379. (((0 | (x)) << DST_WATERMARK_LOW_LSB) & DST_WATERMARK_LOW_MASK)
  380. #define DST_WATERMARK_LOW_RESET 0
  381. #define DST_WATERMARK_HIGH_MSB 15
  382. #define DST_WATERMARK_HIGH_LSB 0
  383. #define DST_WATERMARK_HIGH_MASK 0x0000ffff
  384. #define DST_WATERMARK_HIGH_GET(x) \
  385. (((x) & DST_WATERMARK_HIGH_MASK) >> DST_WATERMARK_HIGH_LSB)
  386. #define DST_WATERMARK_HIGH_SET(x) \
  387. (((0 | (x)) << DST_WATERMARK_HIGH_LSB) & DST_WATERMARK_HIGH_MASK)
  388. #define DST_WATERMARK_HIGH_RESET 0
  389. #define DST_WATERMARK_ADDRESS 0x0050
  390. static inline u32 ath10k_ce_base_address(unsigned int ce_id)
  391. {
  392. return CE0_BASE_ADDRESS + (CE1_BASE_ADDRESS - CE0_BASE_ADDRESS) * ce_id;
  393. }
  394. #define CE_WATERMARK_MASK (HOST_IS_SRC_RING_LOW_WATERMARK_MASK | \
  395. HOST_IS_SRC_RING_HIGH_WATERMARK_MASK | \
  396. HOST_IS_DST_RING_LOW_WATERMARK_MASK | \
  397. HOST_IS_DST_RING_HIGH_WATERMARK_MASK)
  398. #define CE_ERROR_MASK (MISC_IS_AXI_ERR_MASK | \
  399. MISC_IS_DST_ADDR_ERR_MASK | \
  400. MISC_IS_SRC_LEN_ERR_MASK | \
  401. MISC_IS_DST_MAX_LEN_VIO_MASK | \
  402. MISC_IS_DST_RING_OVERFLOW_MASK | \
  403. MISC_IS_SRC_RING_OVERFLOW_MASK)
  404. #define CE_SRC_RING_TO_DESC(baddr, idx) \
  405. (&(((struct ce_desc *)baddr)[idx]))
  406. #define CE_DEST_RING_TO_DESC(baddr, idx) \
  407. (&(((struct ce_desc *)baddr)[idx]))
  408. /* Ring arithmetic (modulus number of entries in ring, which is a pwr of 2). */
  409. #define CE_RING_DELTA(nentries_mask, fromidx, toidx) \
  410. (((int)(toidx)-(int)(fromidx)) & (nentries_mask))
  411. #define CE_RING_IDX_INCR(nentries_mask, idx) (((idx) + 1) & (nentries_mask))
  412. #define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB 8
  413. #define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK 0x0000ff00
  414. #define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_GET(x) \
  415. (((x) & CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK) >> \
  416. CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB)
  417. #define CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS 0x0000
  418. #define CE_INTERRUPT_SUMMARY(ar) \
  419. CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_GET( \
  420. ath10k_pci_read32((ar), CE_WRAPPER_BASE_ADDRESS + \
  421. CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS))
  422. #endif /* _CE_H_ */