blob: e24729c423e33aff6adf4e9fdf451db51c86bcc9 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX__WIMAX__I2400M_H__
20#define __LINUX__WIMAX__I2400M_H__
21#include <linux/types.h>
Christopher Ferris38062f92014-07-09 15:33:25 -070022#include <linux/if_ether.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070024struct i2400m_bcf_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080025 __le32 module_type;
26 __le32 header_len;
27 __le32 header_version;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __le32 module_id;
30 __le32 module_vendor;
31 __le32 date;
32 __le32 size;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __le32 key_size;
35 __le32 modulus_size;
36 __le32 exponent_size;
37 __u8 reserved[88];
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070040enum i2400m_brh_opcode {
Tao Baod7db5942015-01-28 10:07:51 -080041 I2400M_BRH_READ = 1,
42 I2400M_BRH_WRITE = 2,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 I2400M_BRH_JUMP = 3,
45 I2400M_BRH_SIGNED_JUMP = 8,
46 I2400M_BRH_HASH_PAYLOAD_ONLY = 9,
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049enum i2400m_brh {
Tao Baod7db5942015-01-28 10:07:51 -080050 I2400M_BRH_SIGNATURE = 0xcbbc0000,
51 I2400M_BRH_SIGNATURE_MASK = 0xffff0000,
52 I2400M_BRH_SIGNATURE_SHIFT = 16,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 I2400M_BRH_OPCODE_MASK = 0x0000000f,
55 I2400M_BRH_RESPONSE_MASK = 0x000000f0,
56 I2400M_BRH_RESPONSE_SHIFT = 4,
57 I2400M_BRH_DIRECT_ACCESS = 0x00000400,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 I2400M_BRH_RESPONSE_REQUIRED = 0x00000200,
60 I2400M_BRH_USE_CHECKSUM = 0x00000100,
Ben Cheng655a7c02013-10-16 16:09:24 -070061};
62struct i2400m_bootrom_header {
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __le32 command;
65 __le32 target_addr;
66 __le32 data_size;
67 __le32 block_checksum;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 char payload[0];
70} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070071enum i2400m_pt {
Tao Baod7db5942015-01-28 10:07:51 -080072 I2400M_PT_DATA = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 I2400M_PT_CTRL,
75 I2400M_PT_TRACE,
76 I2400M_PT_RESET_WARM,
77 I2400M_PT_RESET_COLD,
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 I2400M_PT_EDATA,
80 I2400M_PT_ILLEGAL
Ben Cheng655a7c02013-10-16 16:09:24 -070081};
82struct i2400m_pl_data_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __le32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070085} __attribute__((packed));
86struct i2400m_pl_edata_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080087 __le32 reorder;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u8 cs;
90 __u8 reserved[11];
Ben Cheng655a7c02013-10-16 16:09:24 -070091} __attribute__((packed));
92enum i2400m_cs {
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 I2400M_CS_IPV4_0 = 0,
95 I2400M_CS_IPV4 = 2,
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97enum i2400m_ro {
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 I2400M_RO_NEEDED = 0x01,
100 I2400M_RO_TYPE = 0x03,
101 I2400M_RO_TYPE_SHIFT = 1,
102 I2400M_RO_CIN = 0x0f,
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 I2400M_RO_CIN_SHIFT = 4,
105 I2400M_RO_FBN = 0x07ff,
106 I2400M_RO_FBN_SHIFT = 8,
107 I2400M_RO_SN = 0x07ff,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 I2400M_RO_SN_SHIFT = 21,
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
111enum i2400m_ro_type {
Tao Baod7db5942015-01-28 10:07:51 -0800112 I2400M_RO_TYPE_RESET = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 I2400M_RO_TYPE_PACKET,
115 I2400M_RO_TYPE_WS,
116 I2400M_RO_TYPE_PACKET_WS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700117};
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700119enum {
Tao Baod7db5942015-01-28 10:07:51 -0800120 I2400M_PL_ALIGN = 16,
121 I2400M_PL_SIZE_MAX = 0x3EFF,
122 I2400M_MAX_PLS_IN_MSG = 60,
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 I2400M_H2D_PREVIEW_BARKER = 0xcafe900d,
125 I2400M_COLD_RESET_BARKER = 0xc01dc01d,
126 I2400M_WARM_RESET_BARKER = 0x50f750f7,
127 I2400M_NBOOT_BARKER = 0xdeadbeef,
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 I2400M_SBOOT_BARKER = 0x0ff1c1a1,
130 I2400M_SBOOT_BARKER_6050 = 0x80000001,
131 I2400M_ACK_BARKER = 0xfeedbabe,
132 I2400M_D2H_MSG_BARKER = 0xbeefbabe,
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700134};
Ben Cheng655a7c02013-10-16 16:09:24 -0700135struct i2400m_pld {
Tao Baod7db5942015-01-28 10:07:51 -0800136 __le32 val;
137} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700139#define I2400M_PLD_SIZE_MASK 0x00003fff
Ben Cheng655a7c02013-10-16 16:09:24 -0700140#define I2400M_PLD_TYPE_SHIFT 16
141#define I2400M_PLD_TYPE_MASK 0x000f0000
142struct i2400m_msg_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 union {
145 __le32 barker;
146 __u32 size;
147 };
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 union {
150 __le32 sequence;
151 __u32 offset;
152 };
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __le16 num_pls;
155 __le16 rsv1;
156 __le16 padding;
157 __le16 rsv2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 struct i2400m_pld pld[0];
160} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700161enum {
Tao Baod7db5942015-01-28 10:07:51 -0800162 I2400M_L3L4_VERSION = 0x0100,
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700164};
Ben Cheng655a7c02013-10-16 16:09:24 -0700165enum i2400m_mt {
Tao Baod7db5942015-01-28 10:07:51 -0800166 I2400M_MT_RESERVED = 0x0000,
167 I2400M_MT_INVALID = 0xffff,
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 I2400M_MT_REPORT_MASK = 0x8000,
170 I2400M_MT_GET_SCAN_RESULT = 0x4202,
171 I2400M_MT_SET_SCAN_PARAM = 0x4402,
172 I2400M_MT_CMD_RF_CONTROL = 0x4602,
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 I2400M_MT_CMD_SCAN = 0x4603,
175 I2400M_MT_CMD_CONNECT = 0x4604,
176 I2400M_MT_CMD_DISCONNECT = 0x4605,
177 I2400M_MT_CMD_EXIT_IDLE = 0x4606,
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 I2400M_MT_GET_LM_VERSION = 0x5201,
180 I2400M_MT_GET_DEVICE_INFO = 0x5202,
181 I2400M_MT_GET_LINK_STATUS = 0x5203,
182 I2400M_MT_GET_STATISTICS = 0x5204,
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 I2400M_MT_GET_STATE = 0x5205,
185 I2400M_MT_GET_MEDIA_STATUS = 0x5206,
186 I2400M_MT_SET_INIT_CONFIG = 0x5404,
187 I2400M_MT_CMD_INIT = 0x5601,
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 I2400M_MT_CMD_TERMINATE = 0x5602,
190 I2400M_MT_CMD_MODE_OF_OP = 0x5603,
191 I2400M_MT_CMD_RESET_DEVICE = 0x5604,
192 I2400M_MT_CMD_MONITOR_CONTROL = 0x5605,
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 I2400M_MT_CMD_ENTER_POWERSAVE = 0x5606,
195 I2400M_MT_GET_TLS_OPERATION_RESULT = 0x6201,
196 I2400M_MT_SET_EAP_SUCCESS = 0x6402,
197 I2400M_MT_SET_EAP_FAIL = 0x6403,
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 I2400M_MT_SET_EAP_KEY = 0x6404,
200 I2400M_MT_CMD_SEND_EAP_RESPONSE = 0x6602,
201 I2400M_MT_REPORT_SCAN_RESULT = 0xc002,
202 I2400M_MT_REPORT_STATE = 0xd002,
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 I2400M_MT_REPORT_POWERSAVE_READY = 0xd005,
205 I2400M_MT_REPORT_EAP_REQUEST = 0xe002,
206 I2400M_MT_REPORT_EAP_RESTART = 0xe003,
207 I2400M_MT_REPORT_ALT_ACCEPT = 0xe004,
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 I2400M_MT_REPORT_KEY_REQUEST = 0xe005,
Ben Cheng655a7c02013-10-16 16:09:24 -0700210};
211enum i2400m_ms {
Tao Baod7db5942015-01-28 10:07:51 -0800212 I2400M_MS_DONE_OK = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 I2400M_MS_DONE_IN_PROGRESS = 1,
215 I2400M_MS_INVALID_OP = 2,
216 I2400M_MS_BAD_STATE = 3,
217 I2400M_MS_ILLEGAL_VALUE = 4,
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 I2400M_MS_MISSING_PARAMS = 5,
220 I2400M_MS_VERSION_ERROR = 6,
221 I2400M_MS_ACCESSIBILITY_ERROR = 7,
222 I2400M_MS_BUSY = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 I2400M_MS_CORRUPTED_TLV = 9,
225 I2400M_MS_UNINITIALIZED = 10,
226 I2400M_MS_UNKNOWN_ERROR = 11,
227 I2400M_MS_PRODUCTION_ERROR = 12,
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 I2400M_MS_NO_RF = 13,
230 I2400M_MS_NOT_READY_FOR_POWERSAVE = 14,
231 I2400M_MS_THERMAL_CRITICAL = 15,
232 I2400M_MS_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700234};
Ben Cheng655a7c02013-10-16 16:09:24 -0700235enum i2400m_tlv {
Tao Baod7db5942015-01-28 10:07:51 -0800236 I2400M_TLV_L4_MESSAGE_VERSIONS = 129,
237 I2400M_TLV_SYSTEM_STATE = 141,
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 I2400M_TLV_MEDIA_STATUS = 161,
240 I2400M_TLV_RF_OPERATION = 162,
241 I2400M_TLV_RF_STATUS = 163,
242 I2400M_TLV_DEVICE_RESET_TYPE = 132,
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 I2400M_TLV_CONFIG_IDLE_PARAMETERS = 601,
245 I2400M_TLV_CONFIG_IDLE_TIMEOUT = 611,
246 I2400M_TLV_CONFIG_D2H_DATA_FORMAT = 614,
247 I2400M_TLV_CONFIG_DL_HOST_REORDER = 615,
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700249};
Ben Cheng655a7c02013-10-16 16:09:24 -0700250struct i2400m_tlv_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800251 __le16 type;
252 __le16 length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 __u8 pl[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700255} __attribute__((packed));
256struct i2400m_l3l4_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800257 __le16 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 __le16 length;
260 __le16 version;
261 __le16 resv1;
262 __le16 status;
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264 __le16 resv2;
265 struct i2400m_tlv_hdr pl[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700266} __attribute__((packed));
267enum i2400m_system_state {
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 I2400M_SS_UNINITIALIZED = 1,
270 I2400M_SS_INIT,
271 I2400M_SS_READY,
272 I2400M_SS_SCAN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 I2400M_SS_STANDBY,
275 I2400M_SS_CONNECTING,
276 I2400M_SS_WIMAX_CONNECTED,
277 I2400M_SS_DATA_PATH_CONNECTED,
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 I2400M_SS_IDLE,
280 I2400M_SS_DISCONNECTING,
281 I2400M_SS_OUT_OF_ZONE,
282 I2400M_SS_SLEEPACTIVE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 I2400M_SS_PRODUCTION,
285 I2400M_SS_CONFIG,
286 I2400M_SS_RF_OFF,
287 I2400M_SS_RF_SHUTDOWN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 I2400M_SS_DEVICE_DISCONNECT,
290 I2400M_SS_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700291};
292struct i2400m_tlv_system_state {
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 struct i2400m_tlv_hdr hdr;
295 __le32 state;
Ben Cheng655a7c02013-10-16 16:09:24 -0700296} __attribute__((packed));
297struct i2400m_tlv_l4_message_versions {
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299 struct i2400m_tlv_hdr hdr;
300 __le16 major;
301 __le16 minor;
302 __le16 branch;
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800304 __le16 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700305} __attribute__((packed));
306struct i2400m_tlv_detailed_device_info {
Tao Baod7db5942015-01-28 10:07:51 -0800307 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 __u8 reserved1[400];
310 __u8 mac_address[ETH_ALEN];
311 __u8 reserved2[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700312} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700314enum i2400m_rf_switch_status {
Tao Baod7db5942015-01-28 10:07:51 -0800315 I2400M_RF_SWITCH_ON = 1,
316 I2400M_RF_SWITCH_OFF = 2,
Ben Cheng655a7c02013-10-16 16:09:24 -0700317};
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700319struct i2400m_tlv_rf_switches_status {
Tao Baod7db5942015-01-28 10:07:51 -0800320 struct i2400m_tlv_hdr hdr;
321 __u8 sw_rf_switch;
322 __u8 hw_rf_switch;
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324 __u8 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700325} __attribute__((packed));
326enum {
Tao Baod7db5942015-01-28 10:07:51 -0800327 i2400m_rf_operation_on = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329 i2400m_rf_operation_off = 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700330};
331struct i2400m_tlv_rf_operation {
Tao Baod7db5942015-01-28 10:07:51 -0800332 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 __le32 status;
Ben Cheng655a7c02013-10-16 16:09:24 -0700335} __attribute__((packed));
336enum i2400m_tlv_reset_type {
Tao Baod7db5942015-01-28 10:07:51 -0800337 I2400M_RESET_TYPE_COLD = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 I2400M_RESET_TYPE_WARM
Ben Cheng655a7c02013-10-16 16:09:24 -0700340};
341struct i2400m_tlv_device_reset_type {
Tao Baod7db5942015-01-28 10:07:51 -0800342 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 __le32 reset_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700345} __attribute__((packed));
346struct i2400m_tlv_config_idle_parameters {
Tao Baod7db5942015-01-28 10:07:51 -0800347 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 __le32 idle_timeout;
350 __le32 idle_paging_interval;
Ben Cheng655a7c02013-10-16 16:09:24 -0700351} __attribute__((packed));
352enum i2400m_media_status {
Ben Cheng655a7c02013-10-16 16:09:24 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 I2400M_MEDIA_STATUS_LINK_UP = 1,
355 I2400M_MEDIA_STATUS_LINK_DOWN,
356 I2400M_MEDIA_STATUS_LINK_RENEW,
Ben Cheng655a7c02013-10-16 16:09:24 -0700357};
Ben Cheng655a7c02013-10-16 16:09:24 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700359struct i2400m_tlv_media_status {
Tao Baod7db5942015-01-28 10:07:51 -0800360 struct i2400m_tlv_hdr hdr;
361 __le32 media_status;
Ben Cheng655a7c02013-10-16 16:09:24 -0700362} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700364struct i2400m_tlv_config_idle_timeout {
Tao Baod7db5942015-01-28 10:07:51 -0800365 struct i2400m_tlv_hdr hdr;
366 __le32 timeout;
Ben Cheng655a7c02013-10-16 16:09:24 -0700367} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700369struct i2400m_tlv_config_d2h_data_format {
Tao Baod7db5942015-01-28 10:07:51 -0800370 struct i2400m_tlv_hdr hdr;
371 __u8 format;
372 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700374} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700375struct i2400m_tlv_config_dl_host_reorder {
Tao Baod7db5942015-01-28 10:07:51 -0800376 struct i2400m_tlv_hdr hdr;
377 __u8 reorder;
Ben Cheng655a7c02013-10-16 16:09:24 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700380} __attribute__((packed));
381#endif