blob: aa97ea4215a3a4238ff4b0e7168262d2374a175e [file] [log] [blame]
/* Crossdriver (bcmdhd/brcmfmac) symbols extracted from bcmdhd include/wlioctl.h.
*
* Copyright 1999-2016, Broadcom Corporation
* All rights reserved,
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* This software is provided by the copyright holder "as is" and any express or
* implied warranties, including, but not limited to, the implied warranties of
* merchantability and fitness for a particular purpose are disclaimed. In no event
* shall copyright holder be liable for any direct, indirect, incidental, special,
* exemplary, or consequential damages (including, but not limited to, procurement
* of substitute goods or services; loss of use, data, or profits; or business
* interruption) however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or otherwise) arising
* in any way out of the use of this software, even if advised of the possibility
* of such damage
*/
#ifndef THIRD_PARTY_BCMDHD_CROSSDRIVER_WLIOCTL_H_
#define THIRD_PARTY_BCMDHD_CROSSDRIVER_WLIOCTL_H_
using event_msgs_ext_command_t = enum event_msgs_ext_command {
EVENTMSGS_NONE = 0,
EVENTMSGS_SET_BIT = 1,
EVENTMSGS_RESET_BIT = 2,
EVENTMSGS_SET_MASK = 3
};
#define EVENTMSGS_VERSION 1
#define EVENTMSGS_EXT_STRUCT_SIZE offsetof(eventmsgs_ext_t, event_mask)
/**
* struct eventmsgs_ext - firmware event message.
*
* @version: version information.
* @command: the command of this iovar.
* @length: for SET it would be mask size from the application to the firmware for GET it would be
* actual firmware mask size.
* @max_get_size: only for iovar get, indicating the max mask length of the event mask.
* @event_mask: the event mask bits.
*/
using eventmsgs_ext_t = struct eventmsgs_ext {
uint8_t version;
uint8_t command;
uint8_t length;
uint8_t max_get_size;
uint8_t event_mask[1];
};
#define ASSOC_MGR_CURRENT_VERSION 0x0
#define ASSOC_MGR_CMD_PAUSE_ON_EVT 0 /* have assoc pause on certain events */
#define ASSOC_MGR_CMD_ABORT_ASSOC 1
#define ASSOC_MGR_CMD_SEND_AUTH 3
#define ASSOC_MGR_PARAMS_EVENT_NONE 0 /* use this to resume as well as clear */
#define ASSOC_MGR_PARAMS_PAUSE_EVENT_AUTH_RESP 1
/**
* struct assoc_mgr_cmd - Command struct to control firmware association command process.
*
* @version: Version of this command.
* @length: Length of data that the firmware need to deal with.
* @cmd: Command to control the association process.
* @params: Parameters for the commands.
*/
using assoc_mgr_cmd_t = struct assoc_mgr_cmd {
uint16_t version;
uint16_t length;
uint16_t cmd;
uint16_t params;
};
#endif // THIRD_PARTY_BCMDHD_CROSSDRIVER_WLIOCTL_H_