Просмотр исходного кода

qcacmn: Add paddr support for 32-bit host arch

Add support for 32-bit host architecture where dma_addr_t
is 32 bits and  bus addresses are of 64 bits on MAC and IPA.

Change-Id: Icd976b42391e83a7ad15081e1feb0462b93c682f
CRs-Fixed: 2014038
Orhan K AKYILDIZ 8 лет назад
Родитель
Сommit
bcc3c4e149
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      dp/inc/cdp_txrx_cmn.h

+ 17 - 0
dp/inc/cdp_txrx_cmn.h

@@ -245,6 +245,23 @@ cdp_data_tx_cb_set(ol_txrx_soc_handle soc, struct cdp_vdev *data_vdev,
 /******************************************************************************
  * Statistics and Debugging Interface (C Inteface)
  *****************************************************************************/
+/**
+ * External Device physical address types
+ *
+ * Currently, both MAC and IPA uController use the same size addresses
+ * and descriptors are exchanged between these two depending on the mode.
+ *
+ * Rationale: qdf_dma_addr_t is the type used internally on the host for DMA
+ *            operations. However, external device physical address sizes
+ *            may be different from host-specific physical address sizes.
+ *            This calls for the following definitions for target devices
+ *            (MAC, IPA uc).
+ */
+#if HTT_PADDR64
+typedef uint64_t target_paddr_t;
+#else
+typedef uint32_t target_paddr_t;
+#endif /*HTT_PADDR64 */
 
 static inline int
 cdp_aggr_cfg(ol_txrx_soc_handle soc, struct cdp_vdev *vdev,