
Extended service ready event has a tlv containing the spectral bin scaling parameters. Populate the spectral capabilities using this info. CRs-Fixed: 2379652 Change-Id: I0b4648302e7170b5965cf1aec68638e70cd36e73
102 lines
3.1 KiB
C
102 lines
3.1 KiB
C
/*
|
|
* Copyright (c) 2013-2019 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
|
|
* 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: Implement API's specific to DBR component.
|
|
*/
|
|
|
|
#ifndef _WMI_UNIFIED_DBR_API_H_
|
|
#define _WMI_UNIFIED_DBR_API_H_
|
|
|
|
#include "wmi_unified_dbr_param.h"
|
|
|
|
/* Opaque handle of WMI structure */
|
|
struct wmi_unified;
|
|
typedef struct wmi_unified *wmi_unified_t;
|
|
|
|
/**
|
|
* wmi_unified_dbr_ring_cfg: Configure direct buffer rx rings
|
|
* @wmi_hdl: WMI handle
|
|
* @cfg: pointer to direct buffer rx config request
|
|
*
|
|
* Return: QDF status of operation
|
|
*/
|
|
QDF_STATUS wmi_unified_dbr_ring_cfg(void *wmi_hdl,
|
|
struct direct_buf_rx_cfg_req *cfg);
|
|
|
|
/**
|
|
* wmi_extract_spectral_scaling_params_service_ready_ext: Extract Spectral
|
|
* scaling params received through
|
|
* extended service ready event
|
|
* @wmi_hdl: WMI handle
|
|
* @evt_buf: Event buffer
|
|
* @idx: Index
|
|
* @param: Pointer to Spectral scaling params
|
|
*
|
|
* Return: QDF status of operation
|
|
*/
|
|
QDF_STATUS wmi_extract_spectral_scaling_params_service_ready_ext(
|
|
void *wmi_hdl,
|
|
uint8_t *evt_buf, uint8_t idx,
|
|
struct wlan_psoc_host_spectral_scaling_params *param);
|
|
|
|
/**
|
|
* wmi_extract_dbr_buf_release_fixed : Extract direct buffer rx fixed param
|
|
* from buffer release event
|
|
* @wmi_hdl: WMI handle
|
|
* @evt_buf: Event buffer
|
|
* @param: Pointer to direct buffer rx response struct
|
|
*
|
|
* Return: QDF status of operation
|
|
*/
|
|
QDF_STATUS wmi_extract_dbr_buf_release_fixed(
|
|
void *wmi_hdl,
|
|
uint8_t *evt_buf,
|
|
struct direct_buf_rx_rsp *param);
|
|
|
|
/**
|
|
* wmi_extract_dbr_buf_release_entry: Extract direct buffer rx buffer tlv
|
|
*
|
|
* @wmi_hdl: WMI handle
|
|
* @evt_buf: Event buffer
|
|
* @idx: Index of the module for which capability is received
|
|
* @param: Pointer to direct buffer rx entry
|
|
*
|
|
* Return: QDF status of operation
|
|
*/
|
|
QDF_STATUS wmi_extract_dbr_buf_release_entry(
|
|
void *wmi_hdl,
|
|
uint8_t *evt_buf, uint8_t idx,
|
|
struct direct_buf_rx_entry *param);
|
|
|
|
/**
|
|
* wmi_extract_dbr_buf_metadata: Extract direct buffer metadata
|
|
*
|
|
* @wmi_hdl: WMI handle
|
|
* @evt_buf: Event buffer
|
|
* @idx: Index of the module for which capability is received
|
|
* @param: Pointer to direct buffer metadata
|
|
*
|
|
* Return: QDF status of operation
|
|
*/
|
|
QDF_STATUS wmi_extract_dbr_buf_metadata(
|
|
void *wmi_hdl,
|
|
uint8_t *evt_buf, uint8_t idx,
|
|
struct direct_buf_rx_metadata *param);
|
|
|
|
#endif /* _WMI_UNIFIED_DBR_API_H_ */
|