qcacld-3.0: Add DP Component Skeleton code
Add new files and Skeleton code for DP component. Change-Id: I6bfe59f31b292b77bbd728423a4ed53c3e4d1c2f CRs-Fixed: 3164956
This commit is contained in:

committed by
Madan Koyyalamudi

parent
9d3ca3f8ad
commit
5116bc8f8f
57
components/dp/dispatcher/inc/wlan_dp_cfg.h
Normal file
57
components/dp/dispatcher/inc/wlan_dp_cfg.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef WLAN_DP_CFG_H__
|
||||
#define WLAN_DP_CFG_H__
|
||||
|
||||
#define CFG_DP_RPS_RX_QUEUE_CPU_MAP_LIST_LEN 30
|
||||
|
||||
#ifdef CONFIG_DP_TRACE
|
||||
/* Max length of gDptraceConfig string. e.g.- "1, 6, 1, 62" */
|
||||
#define DP_TRACE_CONFIG_STRING_LENGTH (20)
|
||||
|
||||
/* At max 4 DP Trace config parameters are allowed. Refer - gDptraceConfig */
|
||||
#define DP_TRACE_CONFIG_NUM_PARAMS (4)
|
||||
|
||||
/*
|
||||
* Default value of live mode in case it cannot be determined from cfg string
|
||||
* gDptraceConfig
|
||||
*/
|
||||
#define DP_TRACE_CONFIG_DEFAULT_LIVE_MODE (1)
|
||||
|
||||
/*
|
||||
* Default value of thresh (packets/second) beyond which DP Trace is disabled.
|
||||
* Use this default in case the value cannot be determined from cfg string
|
||||
* gDptraceConfig
|
||||
*/
|
||||
#define DP_TRACE_CONFIG_DEFAULT_THRESH (6)
|
||||
|
||||
/*
|
||||
* Number of intervals of BW timer to wait before enabling/disabling DP Trace.
|
||||
* Since throughput threshold to disable live logging for DP Trace is very low,
|
||||
* we calculate throughput based on # packets received in a second.
|
||||
* For example assuming bandwidth timer interval is 100ms, and if more than 6
|
||||
* prints are received in 10 * 100 ms interval, we want to disable DP Trace
|
||||
* live logging. DP_TRACE_CONFIG_DEFAULT_THRESH_TIME_LIMIT is the default
|
||||
* value, to be used in case the real value cannot be derived from
|
||||
* bw timer interval
|
||||
*/
|
||||
#define DP_TRACE_CONFIG_DEFAULT_THRESH_TIME_LIMIT (10)
|
||||
|
||||
#endif
|
||||
#endif /* WLAN_DP_CFG_H__ */
|
Reference in New Issue
Block a user