Files
android_kernel_samsung_sm86…/coex/dispatcher/inc/wlan_coex_public_structs.h
Mohammed Ahmed 5ee6661e57 qcacmn: move wlan_coex_public_structs.h to qcacmn
Current code has wlan_coex_public_structs.h in qcacld, when it should
be in qcacmn due to convergence of the COEX feature.
Fix this by moving the header file to qcacmn.

Change-Id: Ibfc25ee0811d7c1b32eccd1637aa0268499619d3
CRs-Fixed: 3289254
2022-10-18 07:13:55 -07:00

72 lines
2.2 KiB
C

/*
* 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 coex public structure definitions
*/
#ifndef _WLAN_COEX_PUBLIC_STRUCTS_H_
#define _WLAN_COEX_PUBLIC_STRUCTS_H_
#ifdef WLAN_FEATURE_DBAM_CONFIG
#define WLAN_SET_DBAM_CONFIG_TIMEOUT 5000
/**
* enum coex_dbam_config_mode - dbam config mode
* @COEX_DBAM_DISABLE: Disable DBAM
* @COEX_DBAM_ENABLE: ENABLE DBAM opportunistically when internal
* conditions are met.
* @COEX_DBAM_FORCE_ENABLE: Enable DBAM forcefully
*/
enum coex_dbam_config_mode {
COEX_DBAM_DISABLE = 0,
COEX_DBAM_ENABLE = 1,
COEX_DBAM_FORCE_ENABLE = 2,
};
/**
* enum coex_dbam_comp_status - dbam config response
* @COEX_DBAM_COMP_SUCCESS: FW enabled/disabled DBAM mode succssfully
* @COEX_DBAM_COMP_NOT_SUPPORT: DBAM mode is not supported
* @COEX_DBAM_COMP_FAIL: FW failed to enable/disable DBAM mode
*/
enum coex_dbam_comp_status {
COEX_DBAM_COMP_SUCCESS = 0,
COEX_DBAM_COMP_NOT_SUPPORT = 1,
COEX_DBAM_COMP_FAIL = 2,
};
/**
* struct coex_dbam_config_params - Coex DBAM config command params
* @vdev_id: Virtual device identifier
* @dbam_mode: DBAM configuration mode - coex_dbam_config_mode enum
*/
struct coex_dbam_config_params {
uint32_t vdev_id;
enum coex_dbam_config_mode dbam_mode;
};
/**
* struct coex_dbam_config_resp - Coex DBAM config response
* @dbam_resp: DBAM config request response - coex_dbam_comp_status enum
*/
struct coex_dbam_config_resp {
enum coex_dbam_comp_status dbam_resp;
};
#endif
#endif