Path: blob/main/sys/contrib/dev/athk/ath10k/testmode_i.h
48378 views
/* SPDX-License-Identifier: ISC */1/*2* Copyright (c) 2014,2017 Qualcomm Atheros, Inc.3*/45/* "API" level of the ath10k testmode interface. Bump it after every6* incompatible interface change.7*/8#define ATH10K_TESTMODE_VERSION_MAJOR 1910/* Bump this after every _compatible_ interface change, for example11* addition of a new command or an attribute.12*/13#define ATH10K_TESTMODE_VERSION_MINOR 01415#define ATH10K_TM_DATA_MAX_LEN 50001617enum ath10k_tm_attr {18__ATH10K_TM_ATTR_INVALID = 0,19ATH10K_TM_ATTR_CMD = 1,20ATH10K_TM_ATTR_DATA = 2,21ATH10K_TM_ATTR_WMI_CMDID = 3,22ATH10K_TM_ATTR_VERSION_MAJOR = 4,23ATH10K_TM_ATTR_VERSION_MINOR = 5,24ATH10K_TM_ATTR_WMI_OP_VERSION = 6,2526/* keep last */27__ATH10K_TM_ATTR_AFTER_LAST,28ATH10K_TM_ATTR_MAX = __ATH10K_TM_ATTR_AFTER_LAST - 1,29};3031/* All ath10k testmode interface commands specified in32* ATH10K_TM_ATTR_CMD33*/34enum ath10k_tm_cmd {35/* Returns the supported ath10k testmode interface version in36* ATH10K_TM_ATTR_VERSION. Always guaranteed to work. User space37* uses this to verify it's using the correct version of the38* testmode interface39*/40ATH10K_TM_CMD_GET_VERSION = 0,4142/* Boots the UTF firmware, the netdev interface must be down at the43* time.44*/45ATH10K_TM_CMD_UTF_START = 1,4647/* Shuts down the UTF firmware and puts the driver back into OFF48* state.49*/50ATH10K_TM_CMD_UTF_STOP = 2,5152/* The command used to transmit a WMI command to the firmware and53* the event to receive WMI events from the firmware. Without54* struct wmi_cmd_hdr header, only the WMI payload. Command id is55* provided with ATH10K_TM_ATTR_WMI_CMDID and payload in56* ATH10K_TM_ATTR_DATA.57*/58ATH10K_TM_CMD_WMI = 3,59};606162