qcacmn: HAL changes for REO config for Beryllium
Add changes to HAL APIs for REO config for WCN7850 Change-Id: I91191a47c4782672fa19d45099cde05ee4cd04b1 CRs-Fixed: 2891049
This commit is contained in:

committed by
Manjunathappa Prakash

szülő
052dc539e3
commit
2847b9761a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -71,35 +71,10 @@ QDF_STATUS dp_reo_send_cmd(struct dp_soc *soc, enum hal_reo_cmd_type type,
|
||||
struct dp_reo_cmd_info *reo_cmd;
|
||||
int num;
|
||||
|
||||
switch (type) {
|
||||
case CMD_GET_QUEUE_STATS:
|
||||
num = hal_reo_cmd_queue_stats(soc->reo_cmd_ring.hal_srng,
|
||||
soc->hal_soc, params);
|
||||
break;
|
||||
case CMD_FLUSH_QUEUE:
|
||||
num = hal_reo_cmd_flush_queue(soc->reo_cmd_ring.hal_srng,
|
||||
soc->hal_soc, params);
|
||||
break;
|
||||
case CMD_FLUSH_CACHE:
|
||||
num = hal_reo_cmd_flush_cache(soc->reo_cmd_ring.hal_srng,
|
||||
soc->hal_soc, params);
|
||||
break;
|
||||
case CMD_UNBLOCK_CACHE:
|
||||
num = hal_reo_cmd_unblock_cache(soc->reo_cmd_ring.hal_srng,
|
||||
soc->hal_soc, params);
|
||||
break;
|
||||
case CMD_FLUSH_TIMEOUT_LIST:
|
||||
num = hal_reo_cmd_flush_timeout_list(soc->reo_cmd_ring.hal_srng,
|
||||
soc->hal_soc, params);
|
||||
break;
|
||||
case CMD_UPDATE_RX_REO_QUEUE:
|
||||
num = hal_reo_cmd_update_rx_queue(soc->reo_cmd_ring.hal_srng,
|
||||
soc->hal_soc, params);
|
||||
break;
|
||||
default:
|
||||
dp_err_log("Invalid REO command type: %d", type);
|
||||
num = hal_reo_send_cmd(soc->hal_soc, soc->reo_cmd_ring.hal_srng, type,
|
||||
params);
|
||||
if (num < 0)
|
||||
return QDF_STATUS_E_INVAL;
|
||||
};
|
||||
|
||||
dp_reo_cmd_srng_event_record(soc, type, num);
|
||||
|
||||
@@ -130,7 +105,7 @@ QDF_STATUS dp_reo_send_cmd(struct dp_soc *soc, enum hal_reo_cmd_type type,
|
||||
|
||||
uint32_t dp_reo_status_ring_handler(struct dp_intr *int_ctx, struct dp_soc *soc)
|
||||
{
|
||||
uint32_t *reo_desc;
|
||||
hal_ring_desc_t reo_desc;
|
||||
struct dp_reo_cmd_info *reo_cmd = NULL;
|
||||
union hal_reo_status reo_status;
|
||||
int num;
|
||||
|
Reference in New Issue
Block a user