qcacmn: Add datapath layer changes for sdio bus (Part 4 - HIF SDIO)

Remove bus specific calls from data path layer.
Add sdio specific target address.
Add sdio bundling rates in datapath layer.
Fix rx data callback for UMP system.

CRs-Fixed: 969334
Change-Id: I0cd45479ca89b97455b4a9c71ce326646f38a5f3
This commit is contained in:
Poddar, Siddarth
2016-04-29 11:02:13 +05:30
committed by Vishwajith Upendra
parent e41943f3a8
commit 416b70695e
2 changed files with 11 additions and 3 deletions

View File

@@ -49,9 +49,12 @@ extern "C" {
#define HTC_TARGET_CREDIT_INTR_MASK 0xF0 #define HTC_TARGET_CREDIT_INTR_MASK 0xF0
#define HTC_MIN_MSG_PER_BUNDLE 2 #define HTC_MIN_MSG_PER_BUNDLE 2
#if defined(HIF_USB) #if defined(HIF_USB)
#define HTC_MAX_MSG_PER_BUNDLE 9 #define HTC_MAX_MSG_PER_BUNDLE_RX 11
#define HTC_MAX_MSG_PER_BUNDLE_TX 8
#else #else
#define HTC_MAX_MSG_PER_BUNDLE_RX 64
#define HTC_MAX_MSG_PER_BUNDLE 16 #define HTC_MAX_MSG_PER_BUNDLE 16
#define HTC_MAX_MSG_PER_BUNDLE_TX 32
#endif #endif
/* /*
* HTC_MAX_TX_BUNDLE_SEND_LIMIT - * HTC_MAX_TX_BUNDLE_SEND_LIMIT -
@@ -185,6 +188,10 @@ typedef struct _HTC_TARGET {
uint32_t TX_comp_cnt; uint32_t TX_comp_cnt;
uint8_t MaxMsgsPerHTCBundle; uint8_t MaxMsgsPerHTCBundle;
qdf_work_t queue_kicker; qdf_work_t queue_kicker;
#if defined(DEBUG_HL_LOGGING) && defined(CONFIG_HL_SUPPORT)
A_UINT32 rx_bundle_stats[HTC_MAX_MSG_PER_BUNDLE_RX];
A_UINT32 tx_bundle_stats[HTC_MAX_MSG_PER_BUNDLE_TX];
#endif
uint32_t con_mode; uint32_t con_mode;
} HTC_TARGET; } HTC_TARGET;

View File

@@ -329,9 +329,10 @@ static A_STATUS htc_send_bundled_netbuf(HTC_TARGET *target,
#endif #endif
status = hif_send_head(target->hif_dev, status = hif_send_head(target->hif_dev,
pEndpoint->UL_PipeID, pEndpoint->UL_PipeID,
pEndpoint->Id, data_len, bundleBuf, data_attr); pEndpoint->Id, data_len,
bundleBuf, data_attr);
if (status != A_OK) { if (status != A_OK) {
qdf_print("%s:hif_send_head failed(len=%d).\n", __FUNCTION__, qdf_print("%s:hif_send_head failed(len=%zu).\n", __func__,
data_len); data_len);
} }
return status; return status;