|
@@ -537,11 +537,12 @@ hal_tx_populate_bank_register(hal_soc_handle_t hal_soc_hdl,
|
|
|
* Return: void
|
|
|
*/
|
|
|
static inline void
|
|
|
-hal_tx_config_rbm_mapping_be(struct hal_soc *hal_soc,
|
|
|
+hal_tx_config_rbm_mapping_be(hal_soc_handle_t hal_soc_hdl,
|
|
|
hal_ring_handle_t hal_ring_hdl,
|
|
|
uint8_t rbm_id)
|
|
|
{
|
|
|
struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl;
|
|
|
+ struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
|
|
uint32_t reg_addr = 0;
|
|
|
uint32_t reg_val = 0;
|
|
|
uint32_t val = 0;
|
|
@@ -550,7 +551,7 @@ hal_tx_config_rbm_mapping_be(struct hal_soc *hal_soc,
|
|
|
|
|
|
ring_type = srng->ring_type;
|
|
|
ring_num = hal_soc->hw_srng_table[ring_type].start_ring_id;
|
|
|
- ring_num = ring_num - srng->ring_id;
|
|
|
+ ring_num = srng->ring_id - ring_num;
|
|
|
|
|
|
reg_addr = HWIO_TCL_R0_RBM_MAPPING0_ADDR(MAC_TCL_REG_REG_BASE);
|
|
|
|
|
@@ -573,7 +574,7 @@ hal_tx_config_rbm_mapping_be(struct hal_soc *hal_soc,
|
|
|
}
|
|
|
#else
|
|
|
static inline void
|
|
|
-hal_tx_config_rbm_mapping_be(struct hal_soc *hal_soc,
|
|
|
+hal_tx_config_rbm_mapping_be(hal_soc_handle_t hal_soc_hdl,
|
|
|
hal_ring_handle_t hal_ring_hdl,
|
|
|
uint8_t rbm_id)
|
|
|
{
|