|
@@ -115,8 +115,8 @@
|
|
|
#define UNIFIED_WBM_RELEASE_RING_6_TX_RATE_STATS_INFO_TX_RATE_STATS_LSB \
|
|
|
WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_PPDU_TRANSMISSION_TSF_LSB
|
|
|
|
|
|
-#include "hal_7850_tx.h"
|
|
|
-#include "hal_7850_rx.h"
|
|
|
+#include "hal_kiwi_tx.h"
|
|
|
+#include "hal_kiwi_rx.h"
|
|
|
|
|
|
#include "hal_be_rx_tlv.h"
|
|
|
|
|
@@ -125,20 +125,20 @@
|
|
|
|
|
|
#define LINK_DESC_SIZE (NUM_OF_DWORDS_RX_MSDU_LINK << 2)
|
|
|
|
|
|
-static uint32_t hal_get_link_desc_size_7850(void)
|
|
|
+static uint32_t hal_get_link_desc_size_kiwi(void)
|
|
|
{
|
|
|
return LINK_DESC_SIZE;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_dump_msdu_end_tlv_7850: dump RX msdu_end TLV in structured
|
|
|
+ * hal_rx_dump_msdu_end_tlv_kiwi: dump RX msdu_end TLV in structured
|
|
|
* human readable format.
|
|
|
* @ msdu_end: pointer the msdu_end TLV in pkt.
|
|
|
* @ dbg_level: log level.
|
|
|
*
|
|
|
* Return: void
|
|
|
*/
|
|
|
-static void hal_rx_dump_msdu_end_tlv_7850(void *msduend,
|
|
|
+static void hal_rx_dump_msdu_end_tlv_kiwi(void *msduend,
|
|
|
uint8_t dbg_level)
|
|
|
{
|
|
|
struct rx_msdu_end *msdu_end = (struct rx_msdu_end *)msduend;
|
|
@@ -440,7 +440,7 @@ static void hal_rx_dump_msdu_end_tlv_7850(void *msduend,
|
|
|
*
|
|
|
* Return: void
|
|
|
*/
|
|
|
-static inline void hal_rx_dump_pkt_hdr_tlv_7850(struct rx_pkt_tlvs *pkt_tlvs,
|
|
|
+static inline void hal_rx_dump_pkt_hdr_tlv_kiwi(struct rx_pkt_tlvs *pkt_tlvs,
|
|
|
uint8_t dbg_level)
|
|
|
{
|
|
|
struct rx_pkt_hdr_tlv *pkt_hdr_tlv = &pkt_tlvs->pkt_hdr_tlv;
|
|
@@ -463,7 +463,7 @@ static inline void hal_rx_dump_pkt_hdr_tlv_7850(struct rx_pkt_tlvs *pkt_tlvs,
|
|
|
*
|
|
|
* Return: void
|
|
|
*/
|
|
|
-static inline void hal_rx_dump_mpdu_start_tlv_7850(void *mpdustart,
|
|
|
+static inline void hal_rx_dump_mpdu_start_tlv_kiwi(void *mpdustart,
|
|
|
uint8_t dbg_level)
|
|
|
{
|
|
|
struct rx_mpdu_start *mpdu_start = (struct rx_mpdu_start *)mpdustart;
|
|
@@ -683,14 +683,14 @@ static inline void hal_rx_dump_mpdu_start_tlv_7850(void *mpdustart,
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_dump_pkt_tlvs_7850(): API to print RX Pkt TLVS for 7850
|
|
|
+ * hal_rx_dump_pkt_tlvs_kiwi(): API to print RX Pkt TLVS for kiwi
|
|
|
* @hal_soc_hdl: hal_soc handle
|
|
|
* @buf: pointer the pkt buffer
|
|
|
* @dbg_level: log level
|
|
|
*
|
|
|
* Return: void
|
|
|
*/
|
|
|
-static void hal_rx_dump_pkt_tlvs_7850(hal_soc_handle_t hal_soc_hdl,
|
|
|
+static void hal_rx_dump_pkt_tlvs_kiwi(hal_soc_handle_t hal_soc_hdl,
|
|
|
uint8_t *buf, uint8_t dbg_level)
|
|
|
{
|
|
|
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
|
|
@@ -698,13 +698,13 @@ static void hal_rx_dump_pkt_tlvs_7850(hal_soc_handle_t hal_soc_hdl,
|
|
|
struct rx_mpdu_start *mpdu_start =
|
|
|
&pkt_tlvs->mpdu_start_tlv.rx_mpdu_start;
|
|
|
|
|
|
- hal_rx_dump_msdu_end_tlv_7850(msdu_end, dbg_level);
|
|
|
- hal_rx_dump_mpdu_start_tlv_7850(mpdu_start, dbg_level);
|
|
|
- hal_rx_dump_pkt_hdr_tlv_7850(pkt_tlvs, dbg_level);
|
|
|
+ hal_rx_dump_msdu_end_tlv_kiwi(msdu_end, dbg_level);
|
|
|
+ hal_rx_dump_mpdu_start_tlv_kiwi(mpdu_start, dbg_level);
|
|
|
+ hal_rx_dump_pkt_hdr_tlv_kiwi(pkt_tlvs, dbg_level);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_tlv_populate_mpdu_desc_info_7850() - Populate the local mpdu_desc_info
|
|
|
+ * hal_rx_tlv_populate_mpdu_desc_info_kiwi() - Populate the local mpdu_desc_info
|
|
|
* elements from the rx tlvs
|
|
|
* @buf: start address of rx tlvs [Validated by caller]
|
|
|
* @mpdu_desc_info_hdl: Buffer to populate the mpdu_dsc_info
|
|
@@ -713,7 +713,7 @@ static void hal_rx_dump_pkt_tlvs_7850(hal_soc_handle_t hal_soc_hdl,
|
|
|
* Return: None
|
|
|
*/
|
|
|
static void
|
|
|
-hal_rx_tlv_populate_mpdu_desc_info_7850(uint8_t *buf,
|
|
|
+hal_rx_tlv_populate_mpdu_desc_info_kiwi(uint8_t *buf,
|
|
|
void *mpdu_desc_info_hdl)
|
|
|
{
|
|
|
struct hal_rx_mpdu_desc_info *mpdu_desc_info =
|
|
@@ -731,7 +731,7 @@ hal_rx_tlv_populate_mpdu_desc_info_7850(uint8_t *buf,
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_reo_status_get_header_7850 - Process reo desc info
|
|
|
+ * hal_reo_status_get_header_kiwi - Process reo desc info
|
|
|
* @d - Pointer to reo descriptior
|
|
|
* @b - tlv type info
|
|
|
* @h1 - Pointer to hal_reo_status_header where info to be stored
|
|
@@ -739,7 +739,7 @@ hal_rx_tlv_populate_mpdu_desc_info_7850(uint8_t *buf,
|
|
|
* Return - none.
|
|
|
*
|
|
|
*/
|
|
|
-static void hal_reo_status_get_header_7850(hal_ring_desc_t ring_desc, int b,
|
|
|
+static void hal_reo_status_get_header_kiwi(hal_ring_desc_t ring_desc, int b,
|
|
|
void *h1)
|
|
|
{
|
|
|
uint64_t *d = (uint64_t *)ring_desc;
|
|
@@ -835,42 +835,42 @@ static void hal_reo_status_get_header_7850(hal_ring_desc_t ring_desc, int b,
|
|
|
}
|
|
|
|
|
|
static
|
|
|
-void *hal_rx_msdu0_buffer_addr_lsb_7850(void *link_desc_va)
|
|
|
+void *hal_rx_msdu0_buffer_addr_lsb_kiwi(void *link_desc_va)
|
|
|
{
|
|
|
return (void *)HAL_RX_MSDU0_BUFFER_ADDR_LSB(link_desc_va);
|
|
|
}
|
|
|
|
|
|
static
|
|
|
-void *hal_rx_msdu_desc_info_ptr_get_7850(void *msdu0)
|
|
|
+void *hal_rx_msdu_desc_info_ptr_get_kiwi(void *msdu0)
|
|
|
{
|
|
|
return (void *)HAL_RX_MSDU_DESC_INFO_PTR_GET(msdu0);
|
|
|
}
|
|
|
|
|
|
static
|
|
|
-void *hal_ent_mpdu_desc_info_7850(void *ent_ring_desc)
|
|
|
+void *hal_ent_mpdu_desc_info_kiwi(void *ent_ring_desc)
|
|
|
{
|
|
|
return (void *)HAL_ENT_MPDU_DESC_INFO(ent_ring_desc);
|
|
|
}
|
|
|
|
|
|
static
|
|
|
-void *hal_dst_mpdu_desc_info_7850(void *dst_ring_desc)
|
|
|
+void *hal_dst_mpdu_desc_info_kiwi(void *dst_ring_desc)
|
|
|
{
|
|
|
return (void *)HAL_DST_MPDU_DESC_INFO(dst_ring_desc);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * hal_rx_get_tlv_7850(): API to get the tlv
|
|
|
+ * hal_rx_get_tlv_kiwi(): API to get the tlv
|
|
|
*
|
|
|
* @rx_tlv: TLV data extracted from the rx packet
|
|
|
* Return: uint8_t
|
|
|
*/
|
|
|
-static uint8_t hal_rx_get_tlv_7850(void *rx_tlv)
|
|
|
+static uint8_t hal_rx_get_tlv_kiwi(void *rx_tlv)
|
|
|
{
|
|
|
return HAL_RX_GET(rx_tlv, PHYRX_RSSI_LEGACY, RECEIVE_BANDWIDTH);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_proc_phyrx_other_receive_info_tlv_7850()
|
|
|
+ * hal_rx_proc_phyrx_other_receive_info_tlv_kiwi()
|
|
|
* - process other receive info TLV
|
|
|
* @rx_tlv_hdr: pointer to TLV header
|
|
|
* @ppdu_info: pointer to ppdu_info
|
|
@@ -878,7 +878,7 @@ static uint8_t hal_rx_get_tlv_7850(void *rx_tlv)
|
|
|
* Return: None
|
|
|
*/
|
|
|
static
|
|
|
-void hal_rx_proc_phyrx_other_receive_info_tlv_7850(void *rx_tlv_hdr,
|
|
|
+void hal_rx_proc_phyrx_other_receive_info_tlv_kiwi(void *rx_tlv_hdr,
|
|
|
void *ppdu_info_handle)
|
|
|
{
|
|
|
uint32_t tlv_tag, tlv_len;
|
|
@@ -908,7 +908,7 @@ void hal_rx_proc_phyrx_other_receive_info_tlv_7850(void *rx_tlv_hdr,
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_reo_config_7850(): Set reo config parameters
|
|
|
+ * hal_reo_config_kiwi(): Set reo config parameters
|
|
|
* @soc: hal soc handle
|
|
|
* @reg_val: value to be set
|
|
|
* @reo_params: reo parameters
|
|
@@ -916,7 +916,7 @@ void hal_rx_proc_phyrx_other_receive_info_tlv_7850(void *rx_tlv_hdr,
|
|
|
* Return: void
|
|
|
*/
|
|
|
static
|
|
|
-void hal_reo_config_7850(struct hal_soc *soc,
|
|
|
+void hal_reo_config_kiwi(struct hal_soc *soc,
|
|
|
uint32_t reg_val,
|
|
|
struct hal_reo_params *reo_params)
|
|
|
{
|
|
@@ -924,51 +924,51 @@ void hal_reo_config_7850(struct hal_soc *soc,
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_msdu_desc_info_get_ptr_7850() - Get msdu desc info ptr
|
|
|
+ * hal_rx_msdu_desc_info_get_ptr_kiwi() - Get msdu desc info ptr
|
|
|
* @msdu_details_ptr - Pointer to msdu_details_ptr
|
|
|
*
|
|
|
* Return - Pointer to rx_msdu_desc_info structure.
|
|
|
*
|
|
|
*/
|
|
|
-static void *hal_rx_msdu_desc_info_get_ptr_7850(void *msdu_details_ptr)
|
|
|
+static void *hal_rx_msdu_desc_info_get_ptr_kiwi(void *msdu_details_ptr)
|
|
|
{
|
|
|
return HAL_RX_MSDU_DESC_INFO_GET(msdu_details_ptr);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_link_desc_msdu0_ptr_7850 - Get pointer to rx_msdu details
|
|
|
+ * hal_rx_link_desc_msdu0_ptr_kiwi - Get pointer to rx_msdu details
|
|
|
* @link_desc - Pointer to link desc
|
|
|
*
|
|
|
* Return - Pointer to rx_msdu_details structure
|
|
|
*
|
|
|
*/
|
|
|
-static void *hal_rx_link_desc_msdu0_ptr_7850(void *link_desc)
|
|
|
+static void *hal_rx_link_desc_msdu0_ptr_kiwi(void *link_desc)
|
|
|
{
|
|
|
return HAL_RX_LINK_DESC_MSDU0_PTR(link_desc);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_get_window_address_7850(): Function to get hp/tp address
|
|
|
+ * hal_get_window_address_kiwi(): Function to get hp/tp address
|
|
|
* @hal_soc: Pointer to hal_soc
|
|
|
* @addr: address offset of register
|
|
|
*
|
|
|
* Return: modified address offset of register
|
|
|
*/
|
|
|
-static inline qdf_iomem_t hal_get_window_address_7850(struct hal_soc *hal_soc,
|
|
|
+static inline qdf_iomem_t hal_get_window_address_kiwi(struct hal_soc *hal_soc,
|
|
|
qdf_iomem_t addr)
|
|
|
{
|
|
|
return addr;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_reo_set_err_dst_remap_7850(): Function to set REO error destination
|
|
|
+ * hal_reo_set_err_dst_remap_kiwi(): Function to set REO error destination
|
|
|
* ring remap register
|
|
|
* @hal_soc: Pointer to hal_soc
|
|
|
*
|
|
|
* Return: none.
|
|
|
*/
|
|
|
static void
|
|
|
-hal_reo_set_err_dst_remap_7850(void *hal_soc)
|
|
|
+hal_reo_set_err_dst_remap_kiwi(void *hal_soc)
|
|
|
{
|
|
|
/*
|
|
|
* Set REO error 2k jump (error code 5) / OOR (error code 7)
|
|
@@ -1017,13 +1017,13 @@ hal_reo_set_err_dst_remap_7850(void *hal_soc)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_reo_enable_pn_in_dest_7850() - Set the REO register to enable previous PN
|
|
|
+ * hal_reo_enable_pn_in_dest_kiwi() - Set the REO register to enable previous PN
|
|
|
* for OOR and 2K-jump frames
|
|
|
* @hal_soc: HAL SoC handle
|
|
|
*
|
|
|
* Return: 1, since the register is set.
|
|
|
*/
|
|
|
-static uint8_t hal_reo_enable_pn_in_dest_7850(void *hal_soc)
|
|
|
+static uint8_t hal_reo_enable_pn_in_dest_kiwi(void *hal_soc)
|
|
|
{
|
|
|
HAL_REG_WRITE(hal_soc, HWIO_REO_R0_PN_IN_DEST_ADDR(REO_REG_REG_BASE),
|
|
|
1);
|
|
@@ -1031,7 +1031,7 @@ static uint8_t hal_reo_enable_pn_in_dest_7850(void *hal_soc)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_flow_setup_fse_7850() - Setup a flow search entry in HW FST
|
|
|
+ * hal_rx_flow_setup_fse_kiwi() - Setup a flow search entry in HW FST
|
|
|
* @fst: Pointer to the Rx Flow Search Table
|
|
|
* @table_offset: offset into the table where the flow is to be setup
|
|
|
* @flow: Flow Parameters
|
|
@@ -1041,7 +1041,7 @@ static uint8_t hal_reo_enable_pn_in_dest_7850(void *hal_soc)
|
|
|
* Return: Success/Failure
|
|
|
*/
|
|
|
static void *
|
|
|
-hal_rx_flow_setup_fse_7850(uint8_t *rx_fst, uint32_t table_offset,
|
|
|
+hal_rx_flow_setup_fse_kiwi(uint8_t *rx_fst, uint32_t table_offset,
|
|
|
uint8_t *rx_flow)
|
|
|
{
|
|
|
struct hal_rx_fst *fst = (struct hal_rx_fst *)rx_fst;
|
|
@@ -1145,7 +1145,7 @@ hal_rx_flow_setup_fse_7850(uint8_t *rx_fst, uint32_t table_offset,
|
|
|
}
|
|
|
|
|
|
static
|
|
|
-void hal_compute_reo_remap_ix2_ix3_7850(uint32_t *ring_map,
|
|
|
+void hal_compute_reo_remap_ix2_ix3_kiwi(uint32_t *ring_map,
|
|
|
uint32_t num_rings, uint32_t *remap1,
|
|
|
uint32_t *remap2)
|
|
|
{
|
|
@@ -1241,28 +1241,28 @@ void hal_compute_reo_remap_ix2_ix3_7850(uint32_t *ring_map,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/* NUM TCL Bank registers in WCN7850 */
|
|
|
-#define HAL_NUM_TCL_BANKS_7850 8
|
|
|
+/* NUM TCL Bank registers in KIWI */
|
|
|
+#define HAL_NUM_TCL_BANKS_KIWI 8
|
|
|
|
|
|
/**
|
|
|
- * hal_tx_get_num_tcl_banks_7850() - Get number of banks in target
|
|
|
+ * hal_tx_get_num_tcl_banks_kiwi() - Get number of banks in target
|
|
|
*
|
|
|
* Returns: number of bank
|
|
|
*/
|
|
|
-static uint8_t hal_tx_get_num_tcl_banks_7850(void)
|
|
|
+static uint8_t hal_tx_get_num_tcl_banks_kiwi(void)
|
|
|
{
|
|
|
- return HAL_NUM_TCL_BANKS_7850;
|
|
|
+ return HAL_NUM_TCL_BANKS_KIWI;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_rx_reo_prev_pn_get_7850() - Get the previous PN from the REO ring desc.
|
|
|
+ * hal_rx_reo_prev_pn_get_kiwi() - Get the previous PN from the REO ring desc.
|
|
|
* @ring_desc: REO ring descriptor [To be validated by caller ]
|
|
|
* @prev_pn: Buffer where the previous PN is to be populated.
|
|
|
* [To be validated by caller]
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-static void hal_rx_reo_prev_pn_get_7850(void *ring_desc,
|
|
|
+static void hal_rx_reo_prev_pn_get_kiwi(void *ring_desc,
|
|
|
uint64_t *prev_pn)
|
|
|
{
|
|
|
struct reo_destination_ring_with_pn *reo_desc =
|
|
@@ -1273,14 +1273,14 @@ static void hal_rx_reo_prev_pn_get_7850(void *ring_desc,
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_cmem_write_7850() - function for CMEM buffer writing
|
|
|
+ * hal_cmem_write_kiwi() - function for CMEM buffer writing
|
|
|
* @hal_soc_hdl: HAL SOC handle
|
|
|
* @offset: CMEM address
|
|
|
* @value: value to write
|
|
|
*
|
|
|
* Return: None.
|
|
|
*/
|
|
|
-static inline void hal_cmem_write_7850(hal_soc_handle_t hal_soc_hdl,
|
|
|
+static inline void hal_cmem_write_kiwi(hal_soc_handle_t hal_soc_hdl,
|
|
|
uint32_t offset,
|
|
|
uint32_t value)
|
|
|
{
|
|
@@ -1289,52 +1289,63 @@ static inline void hal_cmem_write_7850(hal_soc_handle_t hal_soc_hdl,
|
|
|
hal_write32_mb(hal, offset, value);
|
|
|
}
|
|
|
|
|
|
-static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
+/**
|
|
|
+ * hal_get_idle_link_bm_id_kiwi() - Get idle link BM id from chid_id
|
|
|
+ * @chip_id: mlo chip_id
|
|
|
+ *
|
|
|
+ * Returns: RBM ID
|
|
|
+ */
|
|
|
+static uint8_t hal_get_idle_link_bm_id_kiwi(uint8_t chip_id)
|
|
|
+{
|
|
|
+ return WBM_IDLE_DESC_LIST;
|
|
|
+}
|
|
|
+
|
|
|
+static void hal_hw_txrx_ops_attach_kiwi(struct hal_soc *hal_soc)
|
|
|
{
|
|
|
/* init and setup */
|
|
|
hal_soc->ops->hal_srng_dst_hw_init = hal_srng_dst_hw_init_generic;
|
|
|
hal_soc->ops->hal_srng_src_hw_init = hal_srng_src_hw_init_generic;
|
|
|
hal_soc->ops->hal_get_hw_hptp = hal_get_hw_hptp_generic;
|
|
|
- hal_soc->ops->hal_get_window_address = hal_get_window_address_7850;
|
|
|
+ hal_soc->ops->hal_get_window_address = hal_get_window_address_kiwi;
|
|
|
hal_soc->ops->hal_reo_set_err_dst_remap =
|
|
|
- hal_reo_set_err_dst_remap_7850;
|
|
|
+ hal_reo_set_err_dst_remap_kiwi;
|
|
|
hal_soc->ops->hal_reo_enable_pn_in_dest =
|
|
|
- hal_reo_enable_pn_in_dest_7850;
|
|
|
+ hal_reo_enable_pn_in_dest_kiwi;
|
|
|
|
|
|
/* tx */
|
|
|
- hal_soc->ops->hal_tx_set_dscp_tid_map = hal_tx_set_dscp_tid_map_7850;
|
|
|
- hal_soc->ops->hal_tx_update_dscp_tid = hal_tx_update_dscp_tid_7850;
|
|
|
+ hal_soc->ops->hal_tx_set_dscp_tid_map = hal_tx_set_dscp_tid_map_kiwi;
|
|
|
+ hal_soc->ops->hal_tx_update_dscp_tid = hal_tx_update_dscp_tid_kiwi;
|
|
|
hal_soc->ops->hal_tx_comp_get_status =
|
|
|
hal_tx_comp_get_status_generic_be;
|
|
|
hal_soc->ops->hal_tx_init_cmd_credit_ring =
|
|
|
- hal_tx_init_cmd_credit_ring_7850;
|
|
|
+ hal_tx_init_cmd_credit_ring_kiwi;
|
|
|
|
|
|
/* rx */
|
|
|
hal_soc->ops->hal_rx_msdu_start_nss_get = hal_rx_tlv_nss_get_be;
|
|
|
hal_soc->ops->hal_rx_mon_hw_desc_get_mpdu_status =
|
|
|
hal_rx_mon_hw_desc_get_mpdu_status_be;
|
|
|
- hal_soc->ops->hal_rx_get_tlv = hal_rx_get_tlv_7850;
|
|
|
+ hal_soc->ops->hal_rx_get_tlv = hal_rx_get_tlv_kiwi;
|
|
|
hal_soc->ops->hal_rx_pkt_hdr_get = hal_rx_pkt_hdr_get_be;
|
|
|
hal_soc->ops->hal_rx_proc_phyrx_other_receive_info_tlv =
|
|
|
- hal_rx_proc_phyrx_other_receive_info_tlv_7850;
|
|
|
+ hal_rx_proc_phyrx_other_receive_info_tlv_kiwi;
|
|
|
|
|
|
- hal_soc->ops->hal_rx_dump_msdu_end_tlv = hal_rx_dump_msdu_end_tlv_7850;
|
|
|
+ hal_soc->ops->hal_rx_dump_msdu_end_tlv = hal_rx_dump_msdu_end_tlv_kiwi;
|
|
|
hal_soc->ops->hal_rx_dump_mpdu_start_tlv =
|
|
|
- hal_rx_dump_mpdu_start_tlv_7850;
|
|
|
- hal_soc->ops->hal_rx_dump_pkt_tlvs = hal_rx_dump_pkt_tlvs_7850;
|
|
|
+ hal_rx_dump_mpdu_start_tlv_kiwi;
|
|
|
+ hal_soc->ops->hal_rx_dump_pkt_tlvs = hal_rx_dump_pkt_tlvs_kiwi;
|
|
|
|
|
|
- hal_soc->ops->hal_get_link_desc_size = hal_get_link_desc_size_7850;
|
|
|
+ hal_soc->ops->hal_get_link_desc_size = hal_get_link_desc_size_kiwi;
|
|
|
hal_soc->ops->hal_rx_mpdu_start_tid_get = hal_rx_tlv_tid_get_be;
|
|
|
hal_soc->ops->hal_rx_msdu_start_reception_type_get =
|
|
|
hal_rx_tlv_reception_type_get_be;
|
|
|
hal_soc->ops->hal_rx_msdu_end_da_idx_get =
|
|
|
hal_rx_msdu_end_da_idx_get_be;
|
|
|
hal_soc->ops->hal_rx_msdu_desc_info_get_ptr =
|
|
|
- hal_rx_msdu_desc_info_get_ptr_7850;
|
|
|
+ hal_rx_msdu_desc_info_get_ptr_kiwi;
|
|
|
hal_soc->ops->hal_rx_link_desc_msdu0_ptr =
|
|
|
- hal_rx_link_desc_msdu0_ptr_7850;
|
|
|
+ hal_rx_link_desc_msdu0_ptr_kiwi;
|
|
|
hal_soc->ops->hal_reo_status_get_header =
|
|
|
- hal_reo_status_get_header_7850;
|
|
|
+ hal_reo_status_get_header_kiwi;
|
|
|
hal_soc->ops->hal_rx_status_get_tlv_info =
|
|
|
hal_rx_status_get_tlv_info_generic_be;
|
|
|
hal_soc->ops->hal_rx_wbm_err_info_get =
|
|
@@ -1391,11 +1402,11 @@ static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
hal_soc->ops->hal_rx_hw_desc_get_ppduid_get =
|
|
|
hal_rx_hw_desc_get_ppduid_get_be;
|
|
|
hal_soc->ops->hal_rx_msdu0_buffer_addr_lsb =
|
|
|
- hal_rx_msdu0_buffer_addr_lsb_7850;
|
|
|
+ hal_rx_msdu0_buffer_addr_lsb_kiwi;
|
|
|
hal_soc->ops->hal_rx_msdu_desc_info_ptr_get =
|
|
|
- hal_rx_msdu_desc_info_ptr_get_7850;
|
|
|
- hal_soc->ops->hal_ent_mpdu_desc_info = hal_ent_mpdu_desc_info_7850;
|
|
|
- hal_soc->ops->hal_dst_mpdu_desc_info = hal_dst_mpdu_desc_info_7850;
|
|
|
+ hal_rx_msdu_desc_info_ptr_get_kiwi;
|
|
|
+ hal_soc->ops->hal_ent_mpdu_desc_info = hal_ent_mpdu_desc_info_kiwi;
|
|
|
+ hal_soc->ops->hal_dst_mpdu_desc_info = hal_dst_mpdu_desc_info_kiwi;
|
|
|
hal_soc->ops->hal_rx_get_fc_valid = hal_rx_get_fc_valid_be;
|
|
|
hal_soc->ops->hal_rx_get_to_ds_flag = hal_rx_get_to_ds_flag_be;
|
|
|
hal_soc->ops->hal_rx_get_mac_addr2_valid =
|
|
@@ -1403,7 +1414,7 @@ static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
hal_soc->ops->hal_rx_get_filter_category =
|
|
|
hal_rx_get_filter_category_be;
|
|
|
hal_soc->ops->hal_rx_get_ppdu_id = hal_rx_get_ppdu_id_be;
|
|
|
- hal_soc->ops->hal_reo_config = hal_reo_config_7850;
|
|
|
+ hal_soc->ops->hal_reo_config = hal_reo_config_kiwi;
|
|
|
hal_soc->ops->hal_rx_msdu_flow_idx_get = hal_rx_msdu_flow_idx_get_be;
|
|
|
hal_soc->ops->hal_rx_msdu_flow_idx_invalid =
|
|
|
hal_rx_msdu_flow_idx_invalid_be;
|
|
@@ -1420,10 +1431,10 @@ static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
hal_soc->ops->hal_rx_tlv_get_tcp_chksum =
|
|
|
hal_rx_tlv_get_tcp_chksum_be;
|
|
|
hal_soc->ops->hal_rx_get_rx_sequence = hal_rx_get_rx_sequence_be;
|
|
|
-#if defined(QCA_WIFI_WCN7850) && defined(WLAN_CFR_ENABLE) && \
|
|
|
+#if defined(QCA_WIFI_KIWI) && defined(WLAN_CFR_ENABLE) && \
|
|
|
defined(WLAN_ENH_CFR_ENABLE)
|
|
|
- hal_soc->ops->hal_rx_get_bb_info = hal_rx_get_bb_info_7850;
|
|
|
- hal_soc->ops->hal_rx_get_rtt_info = hal_rx_get_rtt_info_7850;
|
|
|
+ hal_soc->ops->hal_rx_get_bb_info = hal_rx_get_bb_info_kiwi;
|
|
|
+ hal_soc->ops->hal_rx_get_rtt_info = hal_rx_get_rtt_info_kiwi;
|
|
|
#else
|
|
|
hal_soc->ops->hal_rx_get_bb_info = NULL;
|
|
|
hal_soc->ops->hal_rx_get_rtt_info = NULL;
|
|
@@ -1443,7 +1454,7 @@ static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
hal_soc->ops->hal_rx_get_fisa_timeout = hal_rx_get_fisa_timeout_be;
|
|
|
hal_soc->ops->hal_rx_mpdu_start_tlv_tag_valid =
|
|
|
hal_rx_mpdu_start_tlv_tag_valid_be;
|
|
|
- hal_soc->ops->hal_rx_reo_prev_pn_get = hal_rx_reo_prev_pn_get_7850;
|
|
|
+ hal_soc->ops->hal_rx_reo_prev_pn_get = hal_rx_reo_prev_pn_get_kiwi;
|
|
|
|
|
|
/* rx - TLV struct offsets */
|
|
|
hal_soc->ops->hal_rx_msdu_end_offset_get =
|
|
@@ -1452,21 +1463,21 @@ static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
hal_rx_mpdu_start_offset_get_generic;
|
|
|
hal_soc->ops->hal_rx_pkt_tlv_offset_get =
|
|
|
hal_rx_pkt_tlv_offset_get_generic;
|
|
|
- hal_soc->ops->hal_rx_flow_setup_fse = hal_rx_flow_setup_fse_7850;
|
|
|
+ hal_soc->ops->hal_rx_flow_setup_fse = hal_rx_flow_setup_fse_kiwi;
|
|
|
hal_soc->ops->hal_rx_flow_get_tuple_info =
|
|
|
hal_rx_flow_get_tuple_info_be;
|
|
|
- hal_soc->ops->hal_rx_flow_delete_entry =
|
|
|
+ hal_soc->ops->hal_rx_flow_delete_entry =
|
|
|
hal_rx_flow_delete_entry_be;
|
|
|
hal_soc->ops->hal_rx_fst_get_fse_size = hal_rx_fst_get_fse_size_be;
|
|
|
hal_soc->ops->hal_compute_reo_remap_ix2_ix3 =
|
|
|
- hal_compute_reo_remap_ix2_ix3_7850;
|
|
|
+ hal_compute_reo_remap_ix2_ix3_kiwi;
|
|
|
hal_soc->ops->hal_rx_flow_setup_cmem_fse = NULL;
|
|
|
hal_soc->ops->hal_rx_flow_get_cmem_fse_ts = NULL;
|
|
|
hal_soc->ops->hal_rx_flow_get_cmem_fse = NULL;
|
|
|
- hal_soc->ops->hal_cmem_write = hal_cmem_write_7850;
|
|
|
+ hal_soc->ops->hal_cmem_write = hal_cmem_write_kiwi;
|
|
|
hal_soc->ops->hal_rx_msdu_get_reo_destination_indication =
|
|
|
hal_rx_msdu_get_reo_destination_indication_be;
|
|
|
- hal_soc->ops->hal_tx_get_num_tcl_banks = hal_tx_get_num_tcl_banks_7850;
|
|
|
+ hal_soc->ops->hal_tx_get_num_tcl_banks = hal_tx_get_num_tcl_banks_kiwi;
|
|
|
hal_soc->ops->hal_rx_get_tlv_size = hal_rx_get_tlv_size_generic_be;
|
|
|
hal_soc->ops->hal_rx_msdu_is_wlan_mcast =
|
|
|
hal_rx_msdu_is_wlan_mcast_generic_be;
|
|
@@ -1507,7 +1518,7 @@ static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
hal_soc->ops->hal_rx_tlv_msdu_len_set =
|
|
|
hal_rx_msdu_start_msdu_len_set_be;
|
|
|
hal_soc->ops->hal_rx_tlv_populate_mpdu_desc_info =
|
|
|
- hal_rx_tlv_populate_mpdu_desc_info_7850;
|
|
|
+ hal_rx_tlv_populate_mpdu_desc_info_kiwi;
|
|
|
hal_soc->ops->hal_rx_tlv_get_pn_num =
|
|
|
hal_rx_tlv_get_pn_num_be;
|
|
|
hal_soc->ops->hal_get_reo_ent_desc_qdesc_addr =
|
|
@@ -1516,9 +1527,10 @@ static void hal_hw_txrx_ops_attach_wcn7850(struct hal_soc *hal_soc)
|
|
|
hal_rx_get_qdesc_addr_be;
|
|
|
hal_soc->ops->hal_set_reo_ent_desc_reo_dest_ind =
|
|
|
hal_set_reo_ent_desc_reo_dest_ind_be;
|
|
|
+ hal_soc->ops->hal_get_idle_link_bm_id = hal_get_idle_link_bm_id_kiwi;
|
|
|
};
|
|
|
|
|
|
-struct hal_hw_srng_config hw_srng_table_7850[] = {
|
|
|
+struct hal_hw_srng_config hw_srng_table_kiwi[] = {
|
|
|
/* TODO: max_rings can populated by querying HW capabilities */
|
|
|
{ /* REO_DST */
|
|
|
.start_ring_id = HAL_SRNG_REO2SW1,
|
|
@@ -1932,13 +1944,13 @@ struct hal_hw_srng_config hw_srng_table_7850[] = {
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
- * hal_srng_hw_reg_offset_init_wcn7850() - Initialize the HW srng reg offset
|
|
|
- * applicable only for WCN7850
|
|
|
+ * hal_srng_hw_reg_offset_init_kiwi() - Initialize the HW srng reg offset
|
|
|
+ * applicable only for KIWI
|
|
|
* @hal_soc: HAL Soc handle
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-static inline void hal_srng_hw_reg_offset_init_wcn7850(struct hal_soc *hal_soc)
|
|
|
+static inline void hal_srng_hw_reg_offset_init_kiwi(struct hal_soc *hal_soc)
|
|
|
{
|
|
|
int32_t *hw_reg_offset = hal_soc->hal_hw_reg_offset;
|
|
|
|
|
@@ -1950,15 +1962,15 @@ static inline void hal_srng_hw_reg_offset_init_wcn7850(struct hal_soc *hal_soc)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hal_wcn7850_attach() - Attach 7850 target specific hal_soc ops,
|
|
|
+ * hal_kiwi_attach() - Attach kiwi target specific hal_soc ops,
|
|
|
* offset and srng table
|
|
|
*/
|
|
|
-void hal_wcn7850_attach(struct hal_soc *hal_soc)
|
|
|
+void hal_kiwi_attach(struct hal_soc *hal_soc)
|
|
|
{
|
|
|
- hal_soc->hw_srng_table = hw_srng_table_7850;
|
|
|
+ hal_soc->hw_srng_table = hw_srng_table_kiwi;
|
|
|
|
|
|
hal_srng_hw_reg_offset_init_generic(hal_soc);
|
|
|
- hal_srng_hw_reg_offset_init_wcn7850(hal_soc);
|
|
|
+ hal_srng_hw_reg_offset_init_kiwi(hal_soc);
|
|
|
hal_hw_txrx_default_ops_attach_be(hal_soc);
|
|
|
- hal_hw_txrx_ops_attach_wcn7850(hal_soc);
|
|
|
+ hal_hw_txrx_ops_attach_kiwi(hal_soc);
|
|
|
}
|