qcacld-3.0: Replace HELIUMPLUS_PADDR64 with HELIUMPLUS
Replace HELIUMPLUS_PADDR64 preprocessor macro with already existing preprocessor macro HELIUMPLUS. Change-Id: I4f109fc939e12323565bc05c89cc51dff3f3a7f3 CRs-Fixed: 2006551
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
ef5ab1a603
commit
18d6b8c19b
1
Kbuild
1
Kbuild
@@ -1811,7 +1811,6 @@ CONFIG_64BIT_PADDR := y
|
|||||||
CONFIG_FEATURE_TSO := y
|
CONFIG_FEATURE_TSO := y
|
||||||
CONFIG_FEATURE_TSO_DEBUG := y
|
CONFIG_FEATURE_TSO_DEBUG := y
|
||||||
ifeq ($(CONFIG_HELIUMPLUS),y)
|
ifeq ($(CONFIG_HELIUMPLUS),y)
|
||||||
CDEFINES += -DHELIUMPLUS_PADDR64
|
|
||||||
CDEFINES += -DHELIUMPLUS
|
CDEFINES += -DHELIUMPLUS
|
||||||
CDEFINES += -DAR900B
|
CDEFINES += -DAR900B
|
||||||
ifeq ($(CONFIG_64BIT_PADDR),y)
|
ifeq ($(CONFIG_64BIT_PADDR),y)
|
||||||
|
@@ -323,10 +323,9 @@ htt_pdev_alloc(ol_txrx_pdev_handle txrx_pdev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
pdev->targetdef = htc_get_targetdef(htc_pdev);
|
pdev->targetdef = htc_get_targetdef(htc_pdev);
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
/* TODO: OKA: Remove hard-coding */
|
|
||||||
HTT_SET_WIFI_IP(pdev, 2, 0);
|
HTT_SET_WIFI_IP(pdev, 2, 0);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
if (NO_HTT_NEEDED)
|
if (NO_HTT_NEEDED)
|
||||||
goto success;
|
goto success;
|
||||||
@@ -519,12 +518,12 @@ A_STATUS htt_attach_target(htt_pdev_handle pdev)
|
|||||||
if (status != A_OK)
|
if (status != A_OK)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
/*
|
/*
|
||||||
* Send the frag_desc info to target.
|
* Send the frag_desc info to target.
|
||||||
*/
|
*/
|
||||||
htt_h2t_frag_desc_bank_cfg_msg(pdev);
|
htt_h2t_frag_desc_bank_cfg_msg(pdev);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||||
*
|
*
|
||||||
@@ -119,7 +119,7 @@ HTC_SEND_FULL_ACTION htt_h2t_full(void *context, HTC_PACKET *pkt)
|
|||||||
return HTC_SEND_FULL_KEEP;
|
return HTC_SEND_FULL_KEEP;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
A_STATUS htt_h2t_frag_desc_bank_cfg_msg(struct htt_pdev_t *pdev)
|
A_STATUS htt_h2t_frag_desc_bank_cfg_msg(struct htt_pdev_t *pdev)
|
||||||
{
|
{
|
||||||
A_STATUS rc = A_OK;
|
A_STATUS rc = A_OK;
|
||||||
@@ -210,7 +210,7 @@ A_STATUS htt_h2t_frag_desc_bank_cfg_msg(struct htt_pdev_t *pdev)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
A_STATUS htt_h2t_ver_req_msg(struct htt_pdev_t *pdev)
|
A_STATUS htt_h2t_ver_req_msg(struct htt_pdev_t *pdev)
|
||||||
{
|
{
|
||||||
|
@@ -482,10 +482,10 @@ void htt_h2t_send_complete(void *context, HTC_PACKET *pkt);
|
|||||||
|
|
||||||
A_STATUS htt_h2t_ver_req_msg(struct htt_pdev_t *pdev);
|
A_STATUS htt_h2t_ver_req_msg(struct htt_pdev_t *pdev);
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
A_STATUS
|
A_STATUS
|
||||||
htt_h2t_frag_desc_bank_cfg_msg(struct htt_pdev_t *pdev);
|
htt_h2t_frag_desc_bank_cfg_msg(struct htt_pdev_t *pdev);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
extern QDF_STATUS htt_h2t_rx_ring_cfg_msg_ll(struct htt_pdev_t *pdev);
|
extern QDF_STATUS htt_h2t_rx_ring_cfg_msg_ll(struct htt_pdev_t *pdev);
|
||||||
|
|
||||||
|
@@ -1027,10 +1027,10 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
|
|||||||
* Check if this MSDU completes a MPDU.
|
* Check if this MSDU completes a MPDU.
|
||||||
*/
|
*/
|
||||||
rx_desc = htt_rx_desc(msdu);
|
rx_desc = htt_rx_desc(msdu);
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
if (HTT_WIFI_IP(pdev, 2, 0))
|
if (HTT_WIFI_IP(pdev, 2, 0))
|
||||||
pad_bytes = rx_desc->msdu_end.l3_header_padding;
|
pad_bytes = rx_desc->msdu_end.l3_header_padding;
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
/*
|
/*
|
||||||
* Make the netbuf's data pointer point to the payload rather
|
* Make the netbuf's data pointer point to the payload rather
|
||||||
* than the descriptor.
|
* than the descriptor.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011, 2014-2016 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011, 2014-2017 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||||
*
|
*
|
||||||
@@ -625,7 +625,7 @@ void htt_tx_desc_frags_table_set(htt_pdev_handle pdev,
|
|||||||
((uint32_t *) htt_tx_desc) +
|
((uint32_t *) htt_tx_desc) +
|
||||||
HTT_TX_DESC_FRAGS_DESC_PADDR_OFFSET_DWORD;
|
HTT_TX_DESC_FRAGS_DESC_PADDR_OFFSET_DWORD;
|
||||||
if (reset) {
|
if (reset) {
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
*fragmentation_descr_field_ptr = frag_desc_paddr;
|
*fragmentation_descr_field_ptr = frag_desc_paddr;
|
||||||
#else
|
#else
|
||||||
*fragmentation_descr_field_ptr =
|
*fragmentation_descr_field_ptr =
|
||||||
|
@@ -177,7 +177,7 @@ struct htt_tx_credit_t {
|
|||||||
qdf_atomic_t target_delta;
|
qdf_atomic_t target_delta;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
/**
|
/**
|
||||||
* msdu_ext_frag_desc:
|
* msdu_ext_frag_desc:
|
||||||
* semantically, this is an array of 6 of 2-tuples of
|
* semantically, this is an array of 6 of 2-tuples of
|
||||||
@@ -216,7 +216,7 @@ struct msdu_ext_desc_t {
|
|||||||
u_int32_t frag_len5;
|
u_int32_t frag_len5;
|
||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct mon_channel
|
* struct mon_channel
|
||||||
@@ -259,12 +259,12 @@ struct htt_pdev_t {
|
|||||||
uint8_t major;
|
uint8_t major;
|
||||||
uint8_t minor;
|
uint8_t minor;
|
||||||
} tgt_ver;
|
} tgt_ver;
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
struct {
|
struct {
|
||||||
u_int8_t major;
|
u_int8_t major;
|
||||||
u_int8_t minor;
|
u_int8_t minor;
|
||||||
} wifi_ip_ver;
|
} wifi_ip_ver;
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
struct {
|
struct {
|
||||||
struct {
|
struct {
|
||||||
/*
|
/*
|
||||||
@@ -379,14 +379,14 @@ struct htt_pdev_t {
|
|||||||
uint32_t *freelist;
|
uint32_t *freelist;
|
||||||
qdf_dma_mem_context(memctx);
|
qdf_dma_mem_context(memctx);
|
||||||
} tx_descs;
|
} tx_descs;
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
struct {
|
struct {
|
||||||
int size; /* of each Fragment/MSDU-Ext descriptor */
|
int size; /* of each Fragment/MSDU-Ext descriptor */
|
||||||
int pool_elems;
|
int pool_elems;
|
||||||
struct qdf_mem_multi_page_t desc_pages;
|
struct qdf_mem_multi_page_t desc_pages;
|
||||||
qdf_dma_mem_context(memctx);
|
qdf_dma_mem_context(memctx);
|
||||||
} frag_descs;
|
} frag_descs;
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
int download_len;
|
int download_len;
|
||||||
void (*tx_send_complete_part2)(void *pdev, A_STATUS status,
|
void (*tx_send_complete_part2)(void *pdev, A_STATUS status,
|
||||||
@@ -424,12 +424,12 @@ struct htt_pdev_t {
|
|||||||
#define HTT_EPID_GET(_htt_pdev_hdl) \
|
#define HTT_EPID_GET(_htt_pdev_hdl) \
|
||||||
(((struct htt_pdev_t *)(_htt_pdev_hdl))->htc_tx_endpoint)
|
(((struct htt_pdev_t *)(_htt_pdev_hdl))->htc_tx_endpoint)
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
#define HTT_WIFI_IP(pdev, x, y) (((pdev)->wifi_ip_ver.major == (x)) && \
|
#define HTT_WIFI_IP(pdev, x, y) (((pdev)->wifi_ip_ver.major == (x)) && \
|
||||||
((pdev)->wifi_ip_ver.minor == (y)))
|
((pdev)->wifi_ip_ver.minor == (y)))
|
||||||
|
|
||||||
#define HTT_SET_WIFI_IP(pdev, x, y) (((pdev)->wifi_ip_ver.major = (x)) && \
|
#define HTT_SET_WIFI_IP(pdev, x, y) (((pdev)->wifi_ip_ver.major = (x)) && \
|
||||||
((pdev)->wifi_ip_ver.minor = (y)))
|
((pdev)->wifi_ip_ver.minor = (y)))
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
#endif /* _HTT_TYPES__H_ */
|
#endif /* _HTT_TYPES__H_ */
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2015 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2015, 2017 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||||
*
|
*
|
||||||
@@ -112,7 +112,7 @@ struct rx_msdu_start {
|
|||||||
tcp_only_ack:1, /* [15] */
|
tcp_only_ack:1, /* [15] */
|
||||||
sa_idx:11, /* [26:16] */
|
sa_idx:11, /* [26:16] */
|
||||||
reserved_2b:5; /* [31:27] */
|
reserved_2b:5; /* [31:27] */
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
volatile
|
volatile
|
||||||
uint32_t da_idx:11, /* [10:0] */
|
uint32_t da_idx:11, /* [10:0] */
|
||||||
da_is_bcast_mcast:1, /* [11] */
|
da_is_bcast_mcast:1, /* [11] */
|
||||||
@@ -120,7 +120,7 @@ struct rx_msdu_start {
|
|||||||
ip4_protocol_ip6_next_header:8, /* [23:16] */
|
ip4_protocol_ip6_next_header:8, /* [23:16] */
|
||||||
ring_mask:8; /* [31:24] */
|
ring_mask:8; /* [31:24] */
|
||||||
volatile uint32_t toeplitz_hash_2_or_4:32; /* [31:0] */
|
volatile uint32_t toeplitz_hash_2_or_4:32; /* [31:0] */
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rx_msdu_end {
|
struct rx_msdu_end {
|
||||||
@@ -152,7 +152,7 @@ struct rx_msdu_end {
|
|||||||
reserved_3a:3, /* [29:27] */
|
reserved_3a:3, /* [29:27] */
|
||||||
pre_delim_err:1, /* [30] */
|
pre_delim_err:1, /* [30] */
|
||||||
reserved_3b:1; /* [31] */
|
reserved_3b:1; /* [31] */
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
volatile uint32_t ipv6_options_crc:32;
|
volatile uint32_t ipv6_options_crc:32;
|
||||||
volatile uint32_t tcp_seq_number:32;
|
volatile uint32_t tcp_seq_number:32;
|
||||||
volatile uint32_t tcp_ack_number:32;
|
volatile uint32_t tcp_ack_number:32;
|
||||||
@@ -173,7 +173,7 @@ struct rx_msdu_end {
|
|||||||
volatile uint32_t rule_indication_63_32:32;
|
volatile uint32_t rule_indication_63_32:32;
|
||||||
volatile uint32_t rule_indication_95_64:32;
|
volatile uint32_t rule_indication_95_64:32;
|
||||||
volatile uint32_t rule_indication_127_96:32;
|
volatile uint32_t rule_indication_127_96:32;
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rx_mpdu_end {
|
struct rx_mpdu_end {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||||
*
|
*
|
||||||
@@ -371,7 +371,7 @@ void *htt_tx_desc_alloc(htt_pdev_handle pdev, qdf_dma_addr_t *paddr,
|
|||||||
*/
|
*/
|
||||||
void htt_tx_desc_free(htt_pdev_handle htt_pdev, void *htt_tx_desc);
|
void htt_tx_desc_free(htt_pdev_handle htt_pdev, void *htt_tx_desc);
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
/**
|
/**
|
||||||
* @brief Allocate TX frag descriptor
|
* @brief Allocate TX frag descriptor
|
||||||
* @details
|
* @details
|
||||||
@@ -392,7 +392,7 @@ static inline int htt_tx_frag_alloc(htt_pdev_handle pdev,
|
|||||||
*frag_ptr = NULL;
|
*frag_ptr = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
#if defined(CONFIG_HL_SUPPORT)
|
#if defined(CONFIG_HL_SUPPORT)
|
||||||
|
|
||||||
@@ -598,7 +598,7 @@ htt_tx_desc_num_frags(htt_pdev_handle pdev, void *desc, uint32_t num_frags)
|
|||||||
* Set the element after the valid frag elems to 0x0,
|
* Set the element after the valid frag elems to 0x0,
|
||||||
* to terminate the list of fragments.
|
* to terminate the list of fragments.
|
||||||
*/
|
*/
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
if (HTT_WIFI_IP(pdev, 2, 0)) {
|
if (HTT_WIFI_IP(pdev, 2, 0)) {
|
||||||
struct msdu_ext_frag_desc *fdesc;
|
struct msdu_ext_frag_desc *fdesc;
|
||||||
|
|
||||||
@@ -611,10 +611,10 @@ htt_tx_desc_num_frags(htt_pdev_handle pdev, void *desc, uint32_t num_frags)
|
|||||||
*((u_int32_t *)
|
*((u_int32_t *)
|
||||||
(((char *) desc) + HTT_TX_DESC_LEN + num_frags * 8)) = 0;
|
(((char *) desc) + HTT_TX_DESC_LEN + num_frags * 8)) = 0;
|
||||||
}
|
}
|
||||||
#else /* ! HELIUMPLUS_PADDR64 */
|
#else /* ! HELIUMPLUS */
|
||||||
*((uint32_t *)
|
*((uint32_t *)
|
||||||
(((char *)desc) + HTT_TX_DESC_LEN + num_frags * 8)) = 0;
|
(((char *)desc) + HTT_TX_DESC_LEN + num_frags * 8)) = 0;
|
||||||
#endif /* HELIUMPLUS_PADDR64 */
|
#endif /* HELIUMPLUS */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* checksum offload flags for hw */
|
/* checksum offload flags for hw */
|
||||||
@@ -649,7 +649,7 @@ htt_tx_desc_frag(htt_pdev_handle pdev,
|
|||||||
int frag_num, qdf_dma_addr_t frag_phys_addr, uint16_t frag_len)
|
int frag_num, qdf_dma_addr_t frag_phys_addr, uint16_t frag_len)
|
||||||
{
|
{
|
||||||
uint32_t *word32;
|
uint32_t *word32;
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
uint64_t *word64;
|
uint64_t *word64;
|
||||||
|
|
||||||
if (HTT_WIFI_IP(pdev, 2, 0)) {
|
if (HTT_WIFI_IP(pdev, 2, 0)) {
|
||||||
@@ -685,7 +685,7 @@ htt_tx_desc_frag(htt_pdev_handle pdev,
|
|||||||
/* For Helium+, this block cannot exist */
|
/* For Helium+, this block cannot exist */
|
||||||
QDF_ASSERT(0);
|
QDF_ASSERT(0);
|
||||||
}
|
}
|
||||||
#else /* !defined(HELIUMPLUS_PADDR64) */
|
#else /* !defined(HELIUMPLUS) */
|
||||||
{
|
{
|
||||||
uint64_t u64 = (uint64_t)frag_phys_addr;
|
uint64_t u64 = (uint64_t)frag_phys_addr;
|
||||||
uint32_t u32l = (u64 & 0xffffffff);
|
uint32_t u32l = (u64 & 0xffffffff);
|
||||||
@@ -698,7 +698,7 @@ htt_tx_desc_frag(htt_pdev_handle pdev,
|
|||||||
word32++;
|
word32++;
|
||||||
*word32 = (u32h << 16) | frag_len;
|
*word32 = (u32h << 16) | frag_len;
|
||||||
}
|
}
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
}
|
}
|
||||||
|
|
||||||
void htt_tx_desc_frags_table_set(htt_pdev_handle pdev,
|
void htt_tx_desc_frags_table_set(htt_pdev_handle pdev,
|
||||||
|
@@ -495,7 +495,7 @@ ol_tx_prepare_ll_fast(struct ol_txrx_pdev_t *pdev,
|
|||||||
num_frags = (num_frags > QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS)
|
num_frags = (num_frags > QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS)
|
||||||
? QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS
|
? QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS
|
||||||
: num_frags;
|
: num_frags;
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
/*
|
/*
|
||||||
* Use num_frags - 1, since 1 frag is used to store
|
* Use num_frags - 1, since 1 frag is used to store
|
||||||
* the HTT/HTC descriptor
|
* the HTT/HTC descriptor
|
||||||
@@ -503,10 +503,10 @@ ol_tx_prepare_ll_fast(struct ol_txrx_pdev_t *pdev,
|
|||||||
*/
|
*/
|
||||||
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_frag_desc,
|
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_frag_desc,
|
||||||
num_frags - 1);
|
num_frags - 1);
|
||||||
#else /* ! defined(HELIUMPLUSPADDR64) */
|
#else /* ! defined(HELIUMPLUS) */
|
||||||
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_tx_desc,
|
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_tx_desc,
|
||||||
num_frags-1);
|
num_frags-1);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
if (msdu_info->tso_info.is_tso) {
|
if (msdu_info->tso_info.is_tso) {
|
||||||
htt_tx_desc_fill_tso_info(pdev->htt_pdev,
|
htt_tx_desc_fill_tso_info(pdev->htt_pdev,
|
||||||
tx_desc->htt_frag_desc, &msdu_info->tso_info);
|
tx_desc->htt_frag_desc, &msdu_info->tso_info);
|
||||||
@@ -526,7 +526,7 @@ ol_tx_prepare_ll_fast(struct ol_txrx_pdev_t *pdev,
|
|||||||
frag_len -=
|
frag_len -=
|
||||||
sizeof(struct htt_tx_msdu_desc_ext_t);
|
sizeof(struct htt_tx_msdu_desc_ext_t);
|
||||||
}
|
}
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_frag_desc,
|
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_frag_desc,
|
||||||
i - 1, frag_paddr, frag_len);
|
i - 1, frag_paddr, frag_len);
|
||||||
#if defined(HELIUMPLUS_DEBUG)
|
#if defined(HELIUMPLUS_DEBUG)
|
||||||
@@ -535,10 +535,10 @@ ol_tx_prepare_ll_fast(struct ol_txrx_pdev_t *pdev,
|
|||||||
i-1, frag_paddr, frag_len);
|
i-1, frag_paddr, frag_len);
|
||||||
ol_txrx_dump_pkt(netbuf, frag_paddr, 64);
|
ol_txrx_dump_pkt(netbuf, frag_paddr, 64);
|
||||||
#endif /* HELIUMPLUS_DEBUG */
|
#endif /* HELIUMPLUS_DEBUG */
|
||||||
#else /* ! defined(HELIUMPLUSPADDR64) */
|
#else /* ! defined(HELIUMPLUS) */
|
||||||
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_tx_desc,
|
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_tx_desc,
|
||||||
i - 1, frag_paddr, frag_len);
|
i - 1, frag_paddr, frag_len);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1424,10 +1424,10 @@ ol_txrx_mgmt_tx_desc_alloc(
|
|||||||
* specifying the fragment table to the FW, specify just the
|
* specifying the fragment table to the FW, specify just the
|
||||||
* address of the initial fragment.
|
* address of the initial fragment.
|
||||||
*/
|
*/
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
/* ol_txrx_dump_frag_desc("ol_txrx_mgmt_send(): after ol_tx_desc_ll",
|
/* ol_txrx_dump_frag_desc("ol_txrx_mgmt_send(): after ol_tx_desc_ll",
|
||||||
tx_desc); */
|
tx_desc); */
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
if (tx_desc) {
|
if (tx_desc) {
|
||||||
/*
|
/*
|
||||||
* Following the call to ol_tx_desc_ll, frag 0 is the
|
* Following the call to ol_tx_desc_ll, frag 0 is the
|
||||||
@@ -1439,11 +1439,11 @@ ol_txrx_mgmt_tx_desc_alloc(
|
|||||||
tx_desc->htt_tx_desc,
|
tx_desc->htt_tx_desc,
|
||||||
qdf_nbuf_get_frag_paddr(tx_mgmt_frm, 1),
|
qdf_nbuf_get_frag_paddr(tx_mgmt_frm, 1),
|
||||||
0, 0);
|
0, 0);
|
||||||
#if defined(HELIUMPLUS_PADDR64) && defined(HELIUMPLUS_DEBUG)
|
#if defined(HELIUMPLUS) && defined(HELIUMPLUS_DEBUG)
|
||||||
ol_txrx_dump_frag_desc(
|
ol_txrx_dump_frag_desc(
|
||||||
"after htt_tx_desc_frags_table_set",
|
"after htt_tx_desc_frags_table_set",
|
||||||
tx_desc);
|
tx_desc);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
}
|
}
|
||||||
|
|
||||||
return tx_desc;
|
return tx_desc;
|
||||||
@@ -1733,7 +1733,7 @@ ol_txrx_mgmt_tx_cb_set(struct cdp_pdev *ppdev,
|
|||||||
pdev->tx_mgmt.callbacks[type].ctxt = ctxt;
|
pdev->tx_mgmt.callbacks[type].ctxt = ctxt;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
void ol_txrx_dump_frag_desc(char *msg, struct ol_tx_desc_t *tx_desc)
|
void ol_txrx_dump_frag_desc(char *msg, struct ol_tx_desc_t *tx_desc)
|
||||||
{
|
{
|
||||||
uint32_t *frag_ptr_i_p;
|
uint32_t *frag_ptr_i_p;
|
||||||
@@ -1771,7 +1771,7 @@ void ol_txrx_dump_frag_desc(char *msg, struct ol_tx_desc_t *tx_desc)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif /* HELIUMPLUS_PADDR64 */
|
#endif /* HELIUMPLUS */
|
||||||
|
|
||||||
int
|
int
|
||||||
ol_txrx_mgmt_send_ext(struct cdp_vdev *pvdev,
|
ol_txrx_mgmt_send_ext(struct cdp_vdev *pvdev,
|
||||||
|
@@ -196,7 +196,7 @@ static inline void ol_tso_num_seg_list_deinit(struct ol_txrx_pdev_t *pdev)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
void ol_txrx_dump_frag_desc(char *msg, struct ol_tx_desc_t *tx_desc);
|
void ol_txrx_dump_frag_desc(char *msg, struct ol_tx_desc_t *tx_desc);
|
||||||
#else
|
#else
|
||||||
static inline
|
static inline
|
||||||
|
@@ -552,7 +552,7 @@ struct ol_tx_desc_t *ol_tx_desc_ll(struct ol_txrx_pdev_t *pdev,
|
|||||||
num_frags = (num_frags > QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS)
|
num_frags = (num_frags > QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS)
|
||||||
? QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS
|
? QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS
|
||||||
: num_frags;
|
: num_frags;
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
/*
|
/*
|
||||||
* Use num_frags - 1, since 1 frag is used to store
|
* Use num_frags - 1, since 1 frag is used to store
|
||||||
* the HTT/HTC descriptor
|
* the HTT/HTC descriptor
|
||||||
@@ -560,10 +560,10 @@ struct ol_tx_desc_t *ol_tx_desc_ll(struct ol_txrx_pdev_t *pdev,
|
|||||||
*/
|
*/
|
||||||
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_frag_desc,
|
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_frag_desc,
|
||||||
num_frags - 1);
|
num_frags - 1);
|
||||||
#else /* ! defined(HELIUMPLUSPADDR64) */
|
#else /* ! defined(HELIUMPLUS) */
|
||||||
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_tx_desc,
|
htt_tx_desc_num_frags(pdev->htt_pdev, tx_desc->htt_tx_desc,
|
||||||
num_frags - 1);
|
num_frags - 1);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
|
|
||||||
if (msdu_info->tso_info.is_tso) {
|
if (msdu_info->tso_info.is_tso) {
|
||||||
htt_tx_desc_fill_tso_info(pdev->htt_pdev,
|
htt_tx_desc_fill_tso_info(pdev->htt_pdev,
|
||||||
@@ -581,7 +581,7 @@ struct ol_tx_desc_t *ol_tx_desc_ll(struct ol_txrx_pdev_t *pdev,
|
|||||||
#endif
|
#endif
|
||||||
frag_len = qdf_nbuf_get_frag_len(netbuf, i);
|
frag_len = qdf_nbuf_get_frag_len(netbuf, i);
|
||||||
frag_paddr = qdf_nbuf_get_frag_paddr(netbuf, i);
|
frag_paddr = qdf_nbuf_get_frag_paddr(netbuf, i);
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_frag_desc, i - 1,
|
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_frag_desc, i - 1,
|
||||||
frag_paddr, frag_len);
|
frag_paddr, frag_len);
|
||||||
#if defined(HELIUMPLUS_DEBUG)
|
#if defined(HELIUMPLUS_DEBUG)
|
||||||
@@ -590,10 +590,10 @@ struct ol_tx_desc_t *ol_tx_desc_ll(struct ol_txrx_pdev_t *pdev,
|
|||||||
i-1, frag_vaddr, frag_paddr, frag_len);
|
i-1, frag_vaddr, frag_paddr, frag_len);
|
||||||
ol_txrx_dump_pkt(netbuf, frag_paddr, 64);
|
ol_txrx_dump_pkt(netbuf, frag_paddr, 64);
|
||||||
#endif /* HELIUMPLUS_DEBUG */
|
#endif /* HELIUMPLUS_DEBUG */
|
||||||
#else /* ! defined(HELIUMPLUSPADDR64) */
|
#else /* ! defined(HELIUMPLUS) */
|
||||||
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_tx_desc, i - 1,
|
htt_tx_desc_frag(pdev->htt_pdev, tx_desc->htt_tx_desc, i - 1,
|
||||||
frag_paddr, frag_len);
|
frag_paddr, frag_len);
|
||||||
#endif /* defined(HELIUMPLUS_PADDR64) */
|
#endif /* defined(HELIUMPLUS) */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -704,7 +704,7 @@ void ol_tx_desc_frame_free_nonstd(struct ol_txrx_pdev_t *pdev,
|
|||||||
(tx_desc->pkt_type != ol_tx_frm_freed)) {
|
(tx_desc->pkt_type != ol_tx_frm_freed)) {
|
||||||
qdf_dma_addr_t frag_desc_paddr = 0;
|
qdf_dma_addr_t frag_desc_paddr = 0;
|
||||||
|
|
||||||
#if defined(HELIUMPLUS_PADDR64)
|
#if defined(HELIUMPLUS)
|
||||||
frag_desc_paddr = tx_desc->htt_frag_desc_paddr;
|
frag_desc_paddr = tx_desc->htt_frag_desc_paddr;
|
||||||
/* FIX THIS -
|
/* FIX THIS -
|
||||||
* The FW currently has trouble using the host's fragments
|
* The FW currently has trouble using the host's fragments
|
||||||
@@ -720,7 +720,7 @@ void ol_tx_desc_frame_free_nonstd(struct ol_txrx_pdev_t *pdev,
|
|||||||
__func__, __LINE__, tx_desc->id,
|
__func__, __LINE__, tx_desc->id,
|
||||||
frag_desc_paddr);
|
frag_desc_paddr);
|
||||||
#endif /* HELIUMPLUS_DEBUG */
|
#endif /* HELIUMPLUS_DEBUG */
|
||||||
#endif /* HELIUMPLUS_PADDR64 */
|
#endif /* HELIUMPLUS */
|
||||||
htt_tx_desc_frags_table_set(pdev->htt_pdev,
|
htt_tx_desc_frags_table_set(pdev->htt_pdev,
|
||||||
tx_desc->htt_tx_desc, 0,
|
tx_desc->htt_tx_desc, 0,
|
||||||
frag_desc_paddr, 1);
|
frag_desc_paddr, 1);
|
||||||
|
Reference in New Issue
Block a user