mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Add extra parameters to vendor command GPIO attribute
Add extra parameters mux_config, drive, and init_enable to the GPIO config command. Signed-off-by: Nandha Kishore Easwaran <nandhaki@codeaurora.org>
This commit is contained in:
parent
d0e0d2283e
commit
1934ad9b23
@ -2438,23 +2438,50 @@ enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
|
||||
* This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
|
||||
* %QCA_WLAN_VENDOR_GPIO_OUTPUT.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Required (u32)
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
|
||||
* value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
|
||||
* for the available values.
|
||||
* This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG.
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG and
|
||||
* %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
|
||||
* Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
|
||||
* attribute is present.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Required (u32)
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
|
||||
* value to specify the GPIO interrupt mode. Please refer to enum
|
||||
* qca_gpio_interrupt_mode for the available values.
|
||||
* This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG.
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG and
|
||||
* %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
|
||||
* Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
|
||||
* attribute is present.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Required (u32)
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
|
||||
* value to specify the GPIO direction. Please refer to enum qca_gpio_direction
|
||||
* for the available values.
|
||||
* This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG.
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG and
|
||||
* %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
|
||||
* Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
|
||||
* attribute is present.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
|
||||
* Value to specify the mux config. Meaning of a given value is dependent
|
||||
* on the target chipset and GPIO pin. Must be of the range 0-15.
|
||||
* Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
|
||||
* Value to specify the drive, refer to enum qca_gpio_drive.
|
||||
* Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
|
||||
* Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
|
||||
* %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
|
||||
* other parameters for the given GPIO will be obtained from internal
|
||||
* configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
|
||||
* specified to indicate the GPIO pin being configured.
|
||||
*/
|
||||
enum qca_wlan_gpio_attr {
|
||||
QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
|
||||
@ -2470,6 +2497,12 @@ enum qca_wlan_gpio_attr {
|
||||
QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
|
||||
/* Unsigned 32-bit attribute for GPIO direction to configure */
|
||||
QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
|
||||
/* Unsigned 32-bit attribute for GPIO mux config */
|
||||
QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
|
||||
/* Unsigned 32-bit attribute for GPIO drive */
|
||||
QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
|
||||
/* Flag attribute for using internal GPIO configuration */
|
||||
QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
|
||||
|
||||
/* keep last */
|
||||
QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
|
||||
@ -2544,6 +2577,30 @@ enum qca_gpio_interrupt_mode {
|
||||
QCA_WLAN_GPIO_INTMODE_MAX,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum qca_gpio_drive - GPIO drive
|
||||
* @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
|
||||
* @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
|
||||
*/
|
||||
enum qca_gpio_drive {
|
||||
QCA_WLAN_GPIO_DRIVE_2MA = 0,
|
||||
QCA_WLAN_GPIO_DRIVE_4MA = 1,
|
||||
QCA_WLAN_GPIO_DRIVE_6MA = 2,
|
||||
QCA_WLAN_GPIO_DRIVE_8MA = 3,
|
||||
QCA_WLAN_GPIO_DRIVE_10MA = 4,
|
||||
QCA_WLAN_GPIO_DRIVE_12MA = 5,
|
||||
QCA_WLAN_GPIO_DRIVE_14MA = 6,
|
||||
QCA_WLAN_GPIO_DRIVE_16MA = 7,
|
||||
QCA_WLAN_GPIO_DRIVE_MAX,
|
||||
};
|
||||
|
||||
/**
|
||||
* qca_wlan_set_qdepth_thresh_attr - Parameters for setting
|
||||
* MSDUQ depth threshold per peer per tid in the target
|
||||
|
Loading…
Reference in New Issue
Block a user