qcacmn: Remove void ptr usage in HAL
Add code to replace usage of void pointers from HAL layer and instead use appropriate opaque pointers Change-Id: Id950bd9130a99014305738937aed736cf0144aca CRs-Fixed: 2487250
This commit is contained in:

zatwierdzone przez
nshrivas

rodzic
a870c6181a
commit
8eda31cab3
@@ -72,7 +72,8 @@ static void hal_tx_desc_set_dscp_tid_table_id_6290(void *desc,
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
static void hal_tx_set_dscp_tid_map_6290(void *hal_soc, uint8_t *map,
|
||||
static void hal_tx_set_dscp_tid_map_6290(struct hal_soc *soc,
|
||||
uint8_t *map,
|
||||
uint8_t id)
|
||||
{
|
||||
int i;
|
||||
@@ -80,8 +81,6 @@ static void hal_tx_set_dscp_tid_map_6290(void *hal_soc, uint8_t *map,
|
||||
uint32_t value = 0, regval;
|
||||
uint8_t val[DSCP_TID_TABLE_SIZE], cnt = 0;
|
||||
|
||||
struct hal_soc *soc = (struct hal_soc *)hal_soc;
|
||||
|
||||
if (id >= HAL_MAX_HW_DSCP_TID_MAPS_11AX)
|
||||
return;
|
||||
|
||||
@@ -110,7 +109,7 @@ static void hal_tx_set_dscp_tid_map_6290(void *hal_soc, uint8_t *map,
|
||||
(map[i + 6] << 0x12) |
|
||||
(map[i + 7] << 0x15));
|
||||
|
||||
qdf_mem_copy(&val[cnt], (void *)&value, 3);
|
||||
qdf_mem_copy(&val[cnt], &value, 3);
|
||||
cnt += 3;
|
||||
}
|
||||
|
||||
@@ -129,15 +128,14 @@ static void hal_tx_set_dscp_tid_map_6290(void *hal_soc, uint8_t *map,
|
||||
HAL_REG_WRITE(soc, cmn_reg_addr, regval);
|
||||
}
|
||||
#else
|
||||
static void hal_tx_set_dscp_tid_map_6290(void *hal_soc, uint8_t *map,
|
||||
static void hal_tx_set_dscp_tid_map_6290(struct hal_soc *soc,
|
||||
uint8_t *map,
|
||||
uint8_t id)
|
||||
{
|
||||
int i;
|
||||
uint32_t addr;
|
||||
uint32_t value;
|
||||
|
||||
struct hal_soc *soc = (struct hal_soc *)hal_soc;
|
||||
|
||||
if (id == HAL_TX_DSCP_TID_MAP_TABLE_DEFAULT) {
|
||||
addr =
|
||||
HWIO_TCL_R0_DSCP_TID1_MAP_0_ADDR(
|
||||
@@ -179,14 +177,13 @@ static void hal_tx_set_dscp_tid_map_6290(void *hal_soc, uint8_t *map,
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
static void hal_tx_update_dscp_tid_6290(void *hal_soc, uint8_t tid,
|
||||
static void hal_tx_update_dscp_tid_6290(struct hal_soc *soc, uint8_t tid,
|
||||
uint8_t id, uint8_t dscp)
|
||||
{
|
||||
int index;
|
||||
uint32_t addr;
|
||||
uint32_t value;
|
||||
uint32_t regval;
|
||||
struct hal_soc *soc = (struct hal_soc *)hal_soc;
|
||||
|
||||
addr = HWIO_TCL_R0_DSCP_TID_MAP_n_ADDR(
|
||||
SEQ_WCSS_UMAC_MAC_TCL_REG_OFFSET, id);
|
||||
@@ -202,7 +199,7 @@ static void hal_tx_update_dscp_tid_6290(void *hal_soc, uint8_t tid,
|
||||
HAL_REG_WRITE(soc, addr, (regval & HWIO_TCL_R0_DSCP_TID_MAP_n_RMSK));
|
||||
}
|
||||
#else
|
||||
static void hal_tx_update_dscp_tid_6290(void *hal_soc, uint8_t tid,
|
||||
static void hal_tx_update_dscp_tid_6290(struct hal_soc *soc, uint8_t tid,
|
||||
uint8_t id, uint8_t dscp)
|
||||
{
|
||||
int index;
|
||||
@@ -210,8 +207,6 @@ static void hal_tx_update_dscp_tid_6290(void *hal_soc, uint8_t tid,
|
||||
uint32_t value;
|
||||
uint32_t regval;
|
||||
|
||||
struct hal_soc *soc = (struct hal_soc *)hal_soc;
|
||||
|
||||
if (id == HAL_TX_DSCP_TID_MAP_TABLE_DEFAULT)
|
||||
addr =
|
||||
HWIO_TCL_R0_DSCP_TID1_MAP_0_ADDR(
|
||||
|
Reference in New Issue
Block a user