Files
android_kernel_samsung_sm86…/umac/cfr/dispatcher/inc/cfr_cfg.h
Padma Raghunathan 297e63ab48 qcacmn: Add support to disable CFR through INI
Add option to disable cfr for a pdev through INI.
Since INI is per psoc, bitmap is used to indicate
the set of PDEVs for which CFR needs to be disabled.

Change-Id: Iaff24295c8c3ec702647db24961395b8a7ecf8c4
CRs-Fixed: 2671620
2020-05-03 18:18:54 -07:00

56 regels
1.4 KiB
C

/*
* Copyright (c) 2020 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: This file contains centralized cfg definitions of CFR component
*/
#ifndef __CFR_CONFIG_H
#define __CFR_CONFIG_H
/*
* <ini>
* cfr_disable - Bitmap denoting the PDEVs for which CFR needs to be
* disabled
* @Min: 0
* @Max: Bitmap with no. of set bits equal to total no. of PDEVs in the SOC
* @Default: 0
*
* This ini is used to disable CFR feature for PDEV.
*
* Related: None
*
* Supported Feature: CFR
*
* Usage: External
*
* </ini>
*/
#define CFG_CFR_DISABLE\
CFG_INI_UINT("cfr_disable", \
0, \
0x7, \
0, \
CFG_VALUE_OR_DEFAULT, \
"cfr disable bitmap")
#define CFG_CFR_ALL \
CFG(CFG_CFR_DISABLE)
#endif /* __CFR_CONFIG_H */