blob: 30585a8141fa1fa5ec87a2142c7c1081216180e8 [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 {
Ben Cheng655a7c02013-10-16 16:09:24 -070025 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070029 __le32 module_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070030 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070034 __le32 key_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070035 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070039} __attribute__ ((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070040enum i2400m_brh_opcode {
41 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070044 I2400M_BRH_JUMP = 3,
Ben Cheng655a7c02013-10-16 16:09:24 -070045 I2400M_BRH_SIGNED_JUMP = 8,
46 I2400M_BRH_HASH_PAYLOAD_ONLY = 9,
47};
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 {
Ben Cheng655a7c02013-10-16 16:09:24 -070050 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070054 I2400M_BRH_OPCODE_MASK = 0x0000000f,
Ben Cheng655a7c02013-10-16 16:09:24 -070055 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070059 I2400M_BRH_RESPONSE_REQUIRED = 0x00000200,
Ben Cheng655a7c02013-10-16 16:09:24 -070060 I2400M_BRH_USE_CHECKSUM = 0x00000100,
61};
62struct i2400m_bootrom_header {
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064 __le32 command;
Ben Cheng655a7c02013-10-16 16:09:24 -070065 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070069 char payload[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070070} __attribute__ ((packed));
71enum i2400m_pt {
72 I2400M_PT_DATA = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070074 I2400M_PT_CTRL,
Ben Cheng655a7c02013-10-16 16:09:24 -070075 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -070079 I2400M_PT_EDATA,
Ben Cheng655a7c02013-10-16 16:09:24 -070080 I2400M_PT_ILLEGAL
81};
82struct i2400m_pl_data_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070084 __le32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070085} __attribute__((packed));
86struct i2400m_pl_edata_hdr {
87 __le32 reorder;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089 __u8 cs;
Ben Cheng655a7c02013-10-16 16:09:24 -070090 __u8 reserved[11];
91} __attribute__((packed));
92enum i2400m_cs {
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094 I2400M_CS_IPV4_0 = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -070095 I2400M_CS_IPV4 = 2,
96};
97enum i2400m_ro {
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070099 I2400M_RO_NEEDED = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -0700100 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104 I2400M_RO_CIN_SHIFT = 4,
Ben Cheng655a7c02013-10-16 16:09:24 -0700105 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700109 I2400M_RO_SN_SHIFT = 21,
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
111enum i2400m_ro_type {
112 I2400M_RO_TYPE_RESET = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700114 I2400M_RO_TYPE_PACKET,
Ben Cheng655a7c02013-10-16 16:09:24 -0700115 I2400M_RO_TYPE_WS,
116 I2400M_RO_TYPE_PACKET_WS,
117};
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 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700120 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700124 I2400M_H2D_PREVIEW_BARKER = 0xcafe900d,
Ben Cheng655a7c02013-10-16 16:09:24 -0700125 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700129 I2400M_SBOOT_BARKER = 0x0ff1c1a1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700130 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 {
136 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700144 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700145 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700149 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700150 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700154 __le16 num_pls;
Ben Cheng655a7c02013-10-16 16:09:24 -0700155 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700159 struct i2400m_pld pld[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700160} __attribute__ ((packed));
161enum {
162 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 {
166 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700169 I2400M_MT_REPORT_MASK = 0x8000,
Ben Cheng655a7c02013-10-16 16:09:24 -0700170 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700174 I2400M_MT_CMD_SCAN = 0x4603,
Ben Cheng655a7c02013-10-16 16:09:24 -0700175 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700179 I2400M_MT_GET_LM_VERSION = 0x5201,
Ben Cheng655a7c02013-10-16 16:09:24 -0700180 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700184 I2400M_MT_GET_STATE = 0x5205,
Ben Cheng655a7c02013-10-16 16:09:24 -0700185 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700189 I2400M_MT_CMD_TERMINATE = 0x5602,
Ben Cheng655a7c02013-10-16 16:09:24 -0700190 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700194 I2400M_MT_CMD_ENTER_POWERSAVE = 0x5606,
Ben Cheng655a7c02013-10-16 16:09:24 -0700195 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700199 I2400M_MT_SET_EAP_KEY = 0x6404,
Ben Cheng655a7c02013-10-16 16:09:24 -0700200 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700204 I2400M_MT_REPORT_POWERSAVE_READY = 0xd005,
Ben Cheng655a7c02013-10-16 16:09:24 -0700205 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700209 I2400M_MT_REPORT_KEY_REQUEST = 0xe005,
Ben Cheng655a7c02013-10-16 16:09:24 -0700210};
211enum i2400m_ms {
212 I2400M_MS_DONE_OK = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700214 I2400M_MS_DONE_IN_PROGRESS = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700215 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700219 I2400M_MS_MISSING_PARAMS = 5,
Ben Cheng655a7c02013-10-16 16:09:24 -0700220 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700224 I2400M_MS_CORRUPTED_TLV = 9,
Ben Cheng655a7c02013-10-16 16:09:24 -0700225 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700229 I2400M_MS_NO_RF = 13,
Ben Cheng655a7c02013-10-16 16:09:24 -0700230 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 {
236 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700239 I2400M_TLV_MEDIA_STATUS = 161,
Ben Cheng655a7c02013-10-16 16:09:24 -0700240 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700244 I2400M_TLV_CONFIG_IDLE_PARAMETERS = 601,
Ben Cheng655a7c02013-10-16 16:09:24 -0700245 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 {
251 __le16 type;
252 __le16 length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700254 __u8 pl[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700255} __attribute__((packed));
256struct i2400m_l3l4_hdr {
257 __le16 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700259 __le16 length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700260 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700264 __le16 resv2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700265 struct i2400m_tlv_hdr pl[0];
266} __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700269 I2400M_SS_UNINITIALIZED = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700270 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700274 I2400M_SS_STANDBY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700275 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700279 I2400M_SS_IDLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700280 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700284 I2400M_SS_PRODUCTION,
Ben Cheng655a7c02013-10-16 16:09:24 -0700285 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700289 I2400M_SS_DEVICE_DISCONNECT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700290 I2400M_SS_MAX,
291};
292struct i2400m_tlv_system_state {
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700294 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700295 __le32 state;
296} __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700299 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700300 __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700304 __le16 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700305} __attribute__((packed));
306struct i2400m_tlv_detailed_device_info {
307 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700309 __u8 reserved1[400];
310 __u8 mac_address[ETH_ALEN];
Ben Cheng655a7c02013-10-16 16:09:24 -0700311 __u8 reserved2[2];
312} __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 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700315 I2400M_RF_SWITCH_ON = 1,
316 I2400M_RF_SWITCH_OFF = 2,
317};
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 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700320 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700324 __u8 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700325} __attribute__((packed));
326enum {
327 i2400m_rf_operation_on = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700329 i2400m_rf_operation_off = 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700330};
331struct i2400m_tlv_rf_operation {
332 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700334 __le32 status;
Ben Cheng655a7c02013-10-16 16:09:24 -0700335} __attribute__((packed));
336enum i2400m_tlv_reset_type {
337 I2400M_RESET_TYPE_COLD = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700339 I2400M_RESET_TYPE_WARM
Ben Cheng655a7c02013-10-16 16:09:24 -0700340};
341struct i2400m_tlv_device_reset_type {
342 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700344 __le32 reset_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700345} __attribute__((packed));
346struct i2400m_tlv_config_idle_parameters {
347 struct i2400m_tlv_hdr hdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700349 __le32 idle_timeout;
Ben Cheng655a7c02013-10-16 16:09:24 -0700350 __le32 idle_paging_interval;
351} __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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700354 I2400M_MEDIA_STATUS_LINK_UP = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700355 I2400M_MEDIA_STATUS_LINK_DOWN,
356 I2400M_MEDIA_STATUS_LINK_RENEW,
357};
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 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700360 struct i2400m_tlv_hdr hdr;
361 __le32 media_status;
362} __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 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700365 struct i2400m_tlv_hdr hdr;
366 __le32 timeout;
367} __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 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700370 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 {
376 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 */
Christopher Ferris38062f92014-07-09 15:33:25 -0700379 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700380} __attribute__((packed));
381#endif