ce.h 16 KB

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