瀏覽代碼

qcacld-3.0: Add ipa_uc_rx_ring_elem_t for 32-bit platform

ipa_uc_rx_ring_elem_t structure is platform specific and current
definition cannot be used on 32-bit ARM platform where IPA 3.5
is attached. Add IPA 3.5 and 32-bit ARM compatible structure to
avoid IPA crash when data traffic is running

Change-Id: Ia5c141c9405675a64f59ba4c09f1ffd911158c9b
CRs-Fixed: 2046905
wadesong 8 年之前
父節點
當前提交
1885d2c685
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      core/dp/htt/htt_types.h

+ 8 - 0
core/dp/htt/htt_types.h

@@ -176,11 +176,19 @@ struct htt_ipa_uc_rx_resource_t {
  * @vdev_id: virtual interface id
  * @rx_packet_leng: packet length
  */
+#if HTT_PADDR64
 struct ipa_uc_rx_ring_elem_t {
 	target_paddr_t rx_packet_paddr;
 	uint32_t vdev_id;
 	uint32_t rx_packet_leng;
 };
+#else
+struct ipa_uc_rx_ring_elem_t {
+	target_paddr_t rx_packet_paddr;
+	uint16_t vdev_id;
+	uint16_t rx_packet_leng;
+};
+#endif
 
 struct htt_tx_credit_t {
 	qdf_atomic_t bus_delta;