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__ */
|
58
components/dp/dispatcher/inc/wlan_dp_public_struct.h
Normal file
58
components/dp/dispatcher/inc/wlan_dp_public_struct.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* DOC: Contains DP public data structure definations.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _WLAN_DP_PUBLIC_STRUCT_H_
|
||||
#define _WLAN_DP_PUBLIC_STRUCT_H_
|
||||
|
||||
#include "wlan_cmn.h"
|
||||
#include "wlan_objmgr_cmn.h"
|
||||
#include "wlan_objmgr_global_obj.h"
|
||||
#include "wmi_unified.h"
|
||||
#include "qdf_status.h"
|
||||
|
||||
/**
|
||||
* struct wlan_dp_psoc_callbacks - struct containing callback
|
||||
* to non-converged driver
|
||||
* @os_if_dp_gro_rx: OS IF Callback to handle GRO packet to n/w stack
|
||||
*/
|
||||
struct wlan_dp_psoc_callbacks {
|
||||
void (*os_if_dp_gro_rx)(struct sk_buff *skb, uint8_t napi_to_use,
|
||||
bool flush_gro);
|
||||
};
|
||||
|
||||
struct wlan_dp_psoc_sb_ops {
|
||||
/*TODO to add target if TX ops*/
|
||||
};
|
||||
|
||||
struct wlan_dp_psoc_nb_ops {
|
||||
/*TODO to add target if RX ops*/
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wlan_dp_user_config - DP component user config
|
||||
* @ipa_enable: IPA enabled/disabled config
|
||||
*/
|
||||
struct wlan_dp_user_config {
|
||||
bool ipa_enable;
|
||||
};
|
||||
|
||||
#endif /* end of _WLAN_DP_PUBLIC_STRUCT_H_ */
|
75
components/dp/dispatcher/inc/wlan_dp_ucfg_api.h
Normal file
75
components/dp/dispatcher/inc/wlan_dp_ucfg_api.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* DOC: wlan_dp_ucfg_api.h
|
||||
*
|
||||
* TDLS north bound interface declaration
|
||||
*/
|
||||
|
||||
#if !defined(_WLAN_DP_UCFG_API_H_)
|
||||
#define _WLAN_DP_UCFG_API_H_
|
||||
|
||||
#include <scheduler_api.h>
|
||||
#include <wlan_objmgr_cmn.h>
|
||||
#include <wlan_objmgr_psoc_obj.h>
|
||||
#include <wlan_objmgr_pdev_obj.h>
|
||||
#include <wlan_objmgr_vdev_obj.h>
|
||||
#include <wlan_dp_public_struct.h>
|
||||
|
||||
void ucfg_dp_update_inf_mac(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *cur_mac,
|
||||
struct qdf_mac_addr *new_mac);
|
||||
|
||||
QDF_STATUS ucfg_dp_destroy_intf(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *intf_addr);
|
||||
|
||||
/**
|
||||
* ucfg_dp_create_intf() - DP module interface creation
|
||||
*
|
||||
*/
|
||||
QDF_STATUS ucfg_dp_create_intf(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *intf_addr);
|
||||
|
||||
/**
|
||||
* ucfg_dp_init() - DP module initialization API
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS ucfg_dp_init(void);
|
||||
|
||||
/**
|
||||
* ucfg_dp_deinit() - DP module deinitialization API
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS ucfg_dp_deinit(void);
|
||||
|
||||
/**
|
||||
* ucfg_dp_update_config() - DP module config update
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_dp_update_config(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_dp_user_config *req);
|
||||
|
||||
uint64_t
|
||||
ucfg_dp_get_rx_softirq_yield_duration(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user