Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux/wimax
File: i2400m.h
/*
[0] Fix | Delete
* Intel Wireless WiMax Connection 2400m
[1] Fix | Delete
* Host-Device protocol interface definitions
[2] Fix | Delete
*
[3] Fix | Delete
*
[4] Fix | Delete
* Copyright (C) 2007-2008 Intel Corporation. All rights reserved.
[5] Fix | Delete
*
[6] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[7] Fix | Delete
* modification, are permitted provided that the following conditions
[8] Fix | Delete
* are met:
[9] Fix | Delete
*
[10] Fix | Delete
* * Redistributions of source code must retain the above copyright
[11] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[12] Fix | Delete
* * Redistributions in binary form must reproduce the above copyright
[13] Fix | Delete
* notice, this list of conditions and the following disclaimer in
[14] Fix | Delete
* the documentation and/or other materials provided with the
[15] Fix | Delete
* distribution.
[16] Fix | Delete
* * Neither the name of Intel Corporation nor the names of its
[17] Fix | Delete
* contributors may be used to endorse or promote products derived
[18] Fix | Delete
* from this software without specific prior written permission.
[19] Fix | Delete
*
[20] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
[21] Fix | Delete
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
[22] Fix | Delete
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
[23] Fix | Delete
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
[24] Fix | Delete
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
[25] Fix | Delete
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
[26] Fix | Delete
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
[27] Fix | Delete
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
[28] Fix | Delete
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
[29] Fix | Delete
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
[30] Fix | Delete
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[31] Fix | Delete
*
[32] Fix | Delete
*
[33] Fix | Delete
* Intel Corporation <linux-wimax@intel.com>
[34] Fix | Delete
* Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
[35] Fix | Delete
* - Initial implementation
[36] Fix | Delete
*
[37] Fix | Delete
*
[38] Fix | Delete
* This header defines the data structures and constants used to
[39] Fix | Delete
* communicate with the device.
[40] Fix | Delete
*
[41] Fix | Delete
* BOOTMODE/BOOTROM/FIRMWARE UPLOAD PROTOCOL
[42] Fix | Delete
*
[43] Fix | Delete
* The firmware upload protocol is quite simple and only requires a
[44] Fix | Delete
* handful of commands. See drivers/net/wimax/i2400m/fw.c for more
[45] Fix | Delete
* details.
[46] Fix | Delete
*
[47] Fix | Delete
* The BCF data structure is for the firmware file header.
[48] Fix | Delete
*
[49] Fix | Delete
*
[50] Fix | Delete
* THE DATA / CONTROL PROTOCOL
[51] Fix | Delete
*
[52] Fix | Delete
* This is the normal protocol spoken with the device once the
[53] Fix | Delete
* firmware is uploaded. It transports data payloads and control
[54] Fix | Delete
* messages back and forth.
[55] Fix | Delete
*
[56] Fix | Delete
* It consists 'messages' that pack one or more payloads each. The
[57] Fix | Delete
* format is described in detail in drivers/net/wimax/i2400m/rx.c and
[58] Fix | Delete
* tx.c.
[59] Fix | Delete
*
[60] Fix | Delete
*
[61] Fix | Delete
* THE L3L4 PROTOCOL
[62] Fix | Delete
*
[63] Fix | Delete
* The term L3L4 refers to Layer 3 (the device), Layer 4 (the
[64] Fix | Delete
* driver/host software).
[65] Fix | Delete
*
[66] Fix | Delete
* This is the control protocol used by the host to control the i2400m
[67] Fix | Delete
* device (scan, connect, disconnect...). This is sent to / received
[68] Fix | Delete
* as control frames. These frames consist of a header and zero or
[69] Fix | Delete
* more TLVs with information. We call each control frame a "message".
[70] Fix | Delete
*
[71] Fix | Delete
* Each message is composed of:
[72] Fix | Delete
*
[73] Fix | Delete
* HEADER
[74] Fix | Delete
* [TLV0 + PAYLOAD0]
[75] Fix | Delete
* [TLV1 + PAYLOAD1]
[76] Fix | Delete
* [...]
[77] Fix | Delete
* [TLVN + PAYLOADN]
[78] Fix | Delete
*
[79] Fix | Delete
* The HEADER is defined by 'struct i2400m_l3l4_hdr'. The payloads are
[80] Fix | Delete
* defined by a TLV structure (Type Length Value) which is a 'header'
[81] Fix | Delete
* (struct i2400m_tlv_hdr) and then the payload.
[82] Fix | Delete
*
[83] Fix | Delete
* All integers are represented as Little Endian.
[84] Fix | Delete
*
[85] Fix | Delete
* - REQUESTS AND EVENTS
[86] Fix | Delete
*
[87] Fix | Delete
* The requests can be clasified as follows:
[88] Fix | Delete
*
[89] Fix | Delete
* COMMAND: implies a request from the host to the device requesting
[90] Fix | Delete
* an action being performed. The device will reply with a
[91] Fix | Delete
* message (with the same type as the command), status and
[92] Fix | Delete
* no (TLV) payload. Execution of a command might cause
[93] Fix | Delete
* events (of different type) to be sent later on as
[94] Fix | Delete
* device's state changes.
[95] Fix | Delete
*
[96] Fix | Delete
* GET/SET: similar to COMMAND, but will not cause other
[97] Fix | Delete
* EVENTs. The reply, in the case of GET, will contain
[98] Fix | Delete
* TLVs with the requested information.
[99] Fix | Delete
*
[100] Fix | Delete
* EVENT: asynchronous messages sent from the device, maybe as a
[101] Fix | Delete
* consequence of previous COMMANDs but disassociated from
[102] Fix | Delete
* them.
[103] Fix | Delete
*
[104] Fix | Delete
* Only one request might be pending at the same time (ie: don't
[105] Fix | Delete
* parallelize nor post another GET request before the previous
[106] Fix | Delete
* COMMAND has been acknowledged with it's corresponding reply by the
[107] Fix | Delete
* device).
[108] Fix | Delete
*
[109] Fix | Delete
* The different requests and their formats are described below:
[110] Fix | Delete
*
[111] Fix | Delete
* I2400M_MT_* Message types
[112] Fix | Delete
* I2400M_MS_* Message status (for replies, events)
[113] Fix | Delete
* i2400m_tlv_* TLVs
[114] Fix | Delete
*
[115] Fix | Delete
* data types are named 'struct i2400m_msg_OPNAME', OPNAME matching the
[116] Fix | Delete
* operation.
[117] Fix | Delete
*/
[118] Fix | Delete
[119] Fix | Delete
#ifndef __LINUX__WIMAX__I2400M_H__
[120] Fix | Delete
#define __LINUX__WIMAX__I2400M_H__
[121] Fix | Delete
[122] Fix | Delete
#include <linux/types.h>
[123] Fix | Delete
#include <linux/if_ether.h>
[124] Fix | Delete
[125] Fix | Delete
/*
[126] Fix | Delete
* Host Device Interface (HDI) common to all busses
[127] Fix | Delete
*/
[128] Fix | Delete
[129] Fix | Delete
/* Boot-mode (firmware upload mode) commands */
[130] Fix | Delete
[131] Fix | Delete
/* Header for the firmware file */
[132] Fix | Delete
struct i2400m_bcf_hdr {
[133] Fix | Delete
__le32 module_type;
[134] Fix | Delete
__le32 header_len;
[135] Fix | Delete
__le32 header_version;
[136] Fix | Delete
__le32 module_id;
[137] Fix | Delete
__le32 module_vendor;
[138] Fix | Delete
__le32 date; /* BCD YYYMMDD */
[139] Fix | Delete
__le32 size; /* in dwords */
[140] Fix | Delete
__le32 key_size; /* in dwords */
[141] Fix | Delete
__le32 modulus_size; /* in dwords */
[142] Fix | Delete
__le32 exponent_size; /* in dwords */
[143] Fix | Delete
__u8 reserved[88];
[144] Fix | Delete
} __attribute__ ((packed));
[145] Fix | Delete
[146] Fix | Delete
/* Boot mode opcodes */
[147] Fix | Delete
enum i2400m_brh_opcode {
[148] Fix | Delete
I2400M_BRH_READ = 1,
[149] Fix | Delete
I2400M_BRH_WRITE = 2,
[150] Fix | Delete
I2400M_BRH_JUMP = 3,
[151] Fix | Delete
I2400M_BRH_SIGNED_JUMP = 8,
[152] Fix | Delete
I2400M_BRH_HASH_PAYLOAD_ONLY = 9,
[153] Fix | Delete
};
[154] Fix | Delete
[155] Fix | Delete
/* Boot mode command masks and stuff */
[156] Fix | Delete
enum i2400m_brh {
[157] Fix | Delete
I2400M_BRH_SIGNATURE = 0xcbbc0000,
[158] Fix | Delete
I2400M_BRH_SIGNATURE_MASK = 0xffff0000,
[159] Fix | Delete
I2400M_BRH_SIGNATURE_SHIFT = 16,
[160] Fix | Delete
I2400M_BRH_OPCODE_MASK = 0x0000000f,
[161] Fix | Delete
I2400M_BRH_RESPONSE_MASK = 0x000000f0,
[162] Fix | Delete
I2400M_BRH_RESPONSE_SHIFT = 4,
[163] Fix | Delete
I2400M_BRH_DIRECT_ACCESS = 0x00000400,
[164] Fix | Delete
I2400M_BRH_RESPONSE_REQUIRED = 0x00000200,
[165] Fix | Delete
I2400M_BRH_USE_CHECKSUM = 0x00000100,
[166] Fix | Delete
};
[167] Fix | Delete
[168] Fix | Delete
[169] Fix | Delete
/**
[170] Fix | Delete
* i2400m_bootrom_header - Header for a boot-mode command
[171] Fix | Delete
*
[172] Fix | Delete
* @cmd: the above command descriptor
[173] Fix | Delete
* @target_addr: where on the device memory should the action be performed.
[174] Fix | Delete
* @data_size: for read/write, amount of data to be read/written
[175] Fix | Delete
* @block_checksum: checksum value (if applicable)
[176] Fix | Delete
* @payload: the beginning of data attached to this header
[177] Fix | Delete
*/
[178] Fix | Delete
struct i2400m_bootrom_header {
[179] Fix | Delete
__le32 command; /* Compose with enum i2400_brh */
[180] Fix | Delete
__le32 target_addr;
[181] Fix | Delete
__le32 data_size;
[182] Fix | Delete
__le32 block_checksum;
[183] Fix | Delete
char payload[0];
[184] Fix | Delete
} __attribute__ ((packed));
[185] Fix | Delete
[186] Fix | Delete
[187] Fix | Delete
/*
[188] Fix | Delete
* Data / control protocol
[189] Fix | Delete
*/
[190] Fix | Delete
[191] Fix | Delete
/* Packet types for the host-device interface */
[192] Fix | Delete
enum i2400m_pt {
[193] Fix | Delete
I2400M_PT_DATA = 0,
[194] Fix | Delete
I2400M_PT_CTRL,
[195] Fix | Delete
I2400M_PT_TRACE, /* For device debug */
[196] Fix | Delete
I2400M_PT_RESET_WARM, /* device reset */
[197] Fix | Delete
I2400M_PT_RESET_COLD, /* USB[transport] reset, like reconnect */
[198] Fix | Delete
I2400M_PT_EDATA, /* Extended RX data */
[199] Fix | Delete
I2400M_PT_ILLEGAL
[200] Fix | Delete
};
[201] Fix | Delete
[202] Fix | Delete
[203] Fix | Delete
/*
[204] Fix | Delete
* Payload for a data packet
[205] Fix | Delete
*
[206] Fix | Delete
* This is prefixed to each and every outgoing DATA type.
[207] Fix | Delete
*/
[208] Fix | Delete
struct i2400m_pl_data_hdr {
[209] Fix | Delete
__le32 reserved;
[210] Fix | Delete
} __attribute__((packed));
[211] Fix | Delete
[212] Fix | Delete
[213] Fix | Delete
/*
[214] Fix | Delete
* Payload for an extended data packet
[215] Fix | Delete
*
[216] Fix | Delete
* New in fw v1.4
[217] Fix | Delete
*
[218] Fix | Delete
* @reorder: if this payload has to be reorder or not (and how)
[219] Fix | Delete
* @cs: the type of data in the packet, as defined per (802.16e
[220] Fix | Delete
* T11.13.19.1). Currently only 2 (IPv4 packet) supported.
[221] Fix | Delete
*
[222] Fix | Delete
* This is prefixed to each and every INCOMING DATA packet.
[223] Fix | Delete
*/
[224] Fix | Delete
struct i2400m_pl_edata_hdr {
[225] Fix | Delete
__le32 reorder; /* bits defined in i2400m_ro */
[226] Fix | Delete
__u8 cs;
[227] Fix | Delete
__u8 reserved[11];
[228] Fix | Delete
} __attribute__((packed));
[229] Fix | Delete
[230] Fix | Delete
enum i2400m_cs {
[231] Fix | Delete
I2400M_CS_IPV4_0 = 0,
[232] Fix | Delete
I2400M_CS_IPV4 = 2,
[233] Fix | Delete
};
[234] Fix | Delete
[235] Fix | Delete
enum i2400m_ro {
[236] Fix | Delete
I2400M_RO_NEEDED = 0x01,
[237] Fix | Delete
I2400M_RO_TYPE = 0x03,
[238] Fix | Delete
I2400M_RO_TYPE_SHIFT = 1,
[239] Fix | Delete
I2400M_RO_CIN = 0x0f,
[240] Fix | Delete
I2400M_RO_CIN_SHIFT = 4,
[241] Fix | Delete
I2400M_RO_FBN = 0x07ff,
[242] Fix | Delete
I2400M_RO_FBN_SHIFT = 8,
[243] Fix | Delete
I2400M_RO_SN = 0x07ff,
[244] Fix | Delete
I2400M_RO_SN_SHIFT = 21,
[245] Fix | Delete
};
[246] Fix | Delete
[247] Fix | Delete
enum i2400m_ro_type {
[248] Fix | Delete
I2400M_RO_TYPE_RESET = 0,
[249] Fix | Delete
I2400M_RO_TYPE_PACKET,
[250] Fix | Delete
I2400M_RO_TYPE_WS,
[251] Fix | Delete
I2400M_RO_TYPE_PACKET_WS,
[252] Fix | Delete
};
[253] Fix | Delete
[254] Fix | Delete
[255] Fix | Delete
/* Misc constants */
[256] Fix | Delete
enum {
[257] Fix | Delete
I2400M_PL_ALIGN = 16, /* Payload data size alignment */
[258] Fix | Delete
I2400M_PL_SIZE_MAX = 0x3EFF,
[259] Fix | Delete
I2400M_MAX_PLS_IN_MSG = 60,
[260] Fix | Delete
/* protocol barkers: sync sequences; for notifications they
[261] Fix | Delete
* are sent in groups of four. */
[262] Fix | Delete
I2400M_H2D_PREVIEW_BARKER = 0xcafe900d,
[263] Fix | Delete
I2400M_COLD_RESET_BARKER = 0xc01dc01d,
[264] Fix | Delete
I2400M_WARM_RESET_BARKER = 0x50f750f7,
[265] Fix | Delete
I2400M_NBOOT_BARKER = 0xdeadbeef,
[266] Fix | Delete
I2400M_SBOOT_BARKER = 0x0ff1c1a1,
[267] Fix | Delete
I2400M_SBOOT_BARKER_6050 = 0x80000001,
[268] Fix | Delete
I2400M_ACK_BARKER = 0xfeedbabe,
[269] Fix | Delete
I2400M_D2H_MSG_BARKER = 0xbeefbabe,
[270] Fix | Delete
};
[271] Fix | Delete
[272] Fix | Delete
[273] Fix | Delete
/*
[274] Fix | Delete
* Hardware payload descriptor
[275] Fix | Delete
*
[276] Fix | Delete
* Bitfields encoded in a struct to enforce typing semantics.
[277] Fix | Delete
*
[278] Fix | Delete
* Look in rx.c and tx.c for a full description of the format.
[279] Fix | Delete
*/
[280] Fix | Delete
struct i2400m_pld {
[281] Fix | Delete
__le32 val;
[282] Fix | Delete
} __attribute__ ((packed));
[283] Fix | Delete
[284] Fix | Delete
#define I2400M_PLD_SIZE_MASK 0x00003fff
[285] Fix | Delete
#define I2400M_PLD_TYPE_SHIFT 16
[286] Fix | Delete
#define I2400M_PLD_TYPE_MASK 0x000f0000
[287] Fix | Delete
[288] Fix | Delete
/*
[289] Fix | Delete
* Header for a TX message or RX message
[290] Fix | Delete
*
[291] Fix | Delete
* @barker: preamble
[292] Fix | Delete
* @size: used for management of the FIFO queue buffer; before
[293] Fix | Delete
* sending, this is converted to be a real preamble. This
[294] Fix | Delete
* indicates the real size of the TX message that starts at this
[295] Fix | Delete
* point. If the highest bit is set, then this message is to be
[296] Fix | Delete
* skipped.
[297] Fix | Delete
* @sequence: sequence number of this message
[298] Fix | Delete
* @offset: offset where the message itself starts -- see the comments
[299] Fix | Delete
* in the file header about message header and payload descriptor
[300] Fix | Delete
* alignment.
[301] Fix | Delete
* @num_pls: number of payloads in this message
[302] Fix | Delete
* @padding: amount of padding bytes at the end of the message to make
[303] Fix | Delete
* it be of block-size aligned
[304] Fix | Delete
*
[305] Fix | Delete
* Look in rx.c and tx.c for a full description of the format.
[306] Fix | Delete
*/
[307] Fix | Delete
struct i2400m_msg_hdr {
[308] Fix | Delete
union {
[309] Fix | Delete
__le32 barker;
[310] Fix | Delete
__u32 size; /* same size type as barker!! */
[311] Fix | Delete
};
[312] Fix | Delete
union {
[313] Fix | Delete
__le32 sequence;
[314] Fix | Delete
__u32 offset; /* same size type as barker!! */
[315] Fix | Delete
};
[316] Fix | Delete
__le16 num_pls;
[317] Fix | Delete
__le16 rsv1;
[318] Fix | Delete
__le16 padding;
[319] Fix | Delete
__le16 rsv2;
[320] Fix | Delete
struct i2400m_pld pld[0];
[321] Fix | Delete
} __attribute__ ((packed));
[322] Fix | Delete
[323] Fix | Delete
[324] Fix | Delete
[325] Fix | Delete
/*
[326] Fix | Delete
* L3/L4 control protocol
[327] Fix | Delete
*/
[328] Fix | Delete
[329] Fix | Delete
enum {
[330] Fix | Delete
/* Interface version */
[331] Fix | Delete
I2400M_L3L4_VERSION = 0x0100,
[332] Fix | Delete
};
[333] Fix | Delete
[334] Fix | Delete
/* Message types */
[335] Fix | Delete
enum i2400m_mt {
[336] Fix | Delete
I2400M_MT_RESERVED = 0x0000,
[337] Fix | Delete
I2400M_MT_INVALID = 0xffff,
[338] Fix | Delete
I2400M_MT_REPORT_MASK = 0x8000,
[339] Fix | Delete
[340] Fix | Delete
I2400M_MT_GET_SCAN_RESULT = 0x4202,
[341] Fix | Delete
I2400M_MT_SET_SCAN_PARAM = 0x4402,
[342] Fix | Delete
I2400M_MT_CMD_RF_CONTROL = 0x4602,
[343] Fix | Delete
I2400M_MT_CMD_SCAN = 0x4603,
[344] Fix | Delete
I2400M_MT_CMD_CONNECT = 0x4604,
[345] Fix | Delete
I2400M_MT_CMD_DISCONNECT = 0x4605,
[346] Fix | Delete
I2400M_MT_CMD_EXIT_IDLE = 0x4606,
[347] Fix | Delete
I2400M_MT_GET_LM_VERSION = 0x5201,
[348] Fix | Delete
I2400M_MT_GET_DEVICE_INFO = 0x5202,
[349] Fix | Delete
I2400M_MT_GET_LINK_STATUS = 0x5203,
[350] Fix | Delete
I2400M_MT_GET_STATISTICS = 0x5204,
[351] Fix | Delete
I2400M_MT_GET_STATE = 0x5205,
[352] Fix | Delete
I2400M_MT_GET_MEDIA_STATUS = 0x5206,
[353] Fix | Delete
I2400M_MT_SET_INIT_CONFIG = 0x5404,
[354] Fix | Delete
I2400M_MT_CMD_INIT = 0x5601,
[355] Fix | Delete
I2400M_MT_CMD_TERMINATE = 0x5602,
[356] Fix | Delete
I2400M_MT_CMD_MODE_OF_OP = 0x5603,
[357] Fix | Delete
I2400M_MT_CMD_RESET_DEVICE = 0x5604,
[358] Fix | Delete
I2400M_MT_CMD_MONITOR_CONTROL = 0x5605,
[359] Fix | Delete
I2400M_MT_CMD_ENTER_POWERSAVE = 0x5606,
[360] Fix | Delete
I2400M_MT_GET_TLS_OPERATION_RESULT = 0x6201,
[361] Fix | Delete
I2400M_MT_SET_EAP_SUCCESS = 0x6402,
[362] Fix | Delete
I2400M_MT_SET_EAP_FAIL = 0x6403,
[363] Fix | Delete
I2400M_MT_SET_EAP_KEY = 0x6404,
[364] Fix | Delete
I2400M_MT_CMD_SEND_EAP_RESPONSE = 0x6602,
[365] Fix | Delete
I2400M_MT_REPORT_SCAN_RESULT = 0xc002,
[366] Fix | Delete
I2400M_MT_REPORT_STATE = 0xd002,
[367] Fix | Delete
I2400M_MT_REPORT_POWERSAVE_READY = 0xd005,
[368] Fix | Delete
I2400M_MT_REPORT_EAP_REQUEST = 0xe002,
[369] Fix | Delete
I2400M_MT_REPORT_EAP_RESTART = 0xe003,
[370] Fix | Delete
I2400M_MT_REPORT_ALT_ACCEPT = 0xe004,
[371] Fix | Delete
I2400M_MT_REPORT_KEY_REQUEST = 0xe005,
[372] Fix | Delete
};
[373] Fix | Delete
[374] Fix | Delete
[375] Fix | Delete
/*
[376] Fix | Delete
* Message Ack Status codes
[377] Fix | Delete
*
[378] Fix | Delete
* When a message is replied-to, this status is reported.
[379] Fix | Delete
*/
[380] Fix | Delete
enum i2400m_ms {
[381] Fix | Delete
I2400M_MS_DONE_OK = 0,
[382] Fix | Delete
I2400M_MS_DONE_IN_PROGRESS = 1,
[383] Fix | Delete
I2400M_MS_INVALID_OP = 2,
[384] Fix | Delete
I2400M_MS_BAD_STATE = 3,
[385] Fix | Delete
I2400M_MS_ILLEGAL_VALUE = 4,
[386] Fix | Delete
I2400M_MS_MISSING_PARAMS = 5,
[387] Fix | Delete
I2400M_MS_VERSION_ERROR = 6,
[388] Fix | Delete
I2400M_MS_ACCESSIBILITY_ERROR = 7,
[389] Fix | Delete
I2400M_MS_BUSY = 8,
[390] Fix | Delete
I2400M_MS_CORRUPTED_TLV = 9,
[391] Fix | Delete
I2400M_MS_UNINITIALIZED = 10,
[392] Fix | Delete
I2400M_MS_UNKNOWN_ERROR = 11,
[393] Fix | Delete
I2400M_MS_PRODUCTION_ERROR = 12,
[394] Fix | Delete
I2400M_MS_NO_RF = 13,
[395] Fix | Delete
I2400M_MS_NOT_READY_FOR_POWERSAVE = 14,
[396] Fix | Delete
I2400M_MS_THERMAL_CRITICAL = 15,
[397] Fix | Delete
I2400M_MS_MAX
[398] Fix | Delete
};
[399] Fix | Delete
[400] Fix | Delete
[401] Fix | Delete
/**
[402] Fix | Delete
* i2400m_tlv - enumeration of the different types of TLVs
[403] Fix | Delete
*
[404] Fix | Delete
* TLVs stand for type-length-value and are the header for a payload
[405] Fix | Delete
* composed of almost anything. Each payload has a type assigned
[406] Fix | Delete
* and a length.
[407] Fix | Delete
*/
[408] Fix | Delete
enum i2400m_tlv {
[409] Fix | Delete
I2400M_TLV_L4_MESSAGE_VERSIONS = 129,
[410] Fix | Delete
I2400M_TLV_SYSTEM_STATE = 141,
[411] Fix | Delete
I2400M_TLV_MEDIA_STATUS = 161,
[412] Fix | Delete
I2400M_TLV_RF_OPERATION = 162,
[413] Fix | Delete
I2400M_TLV_RF_STATUS = 163,
[414] Fix | Delete
I2400M_TLV_DEVICE_RESET_TYPE = 132,
[415] Fix | Delete
I2400M_TLV_CONFIG_IDLE_PARAMETERS = 601,
[416] Fix | Delete
I2400M_TLV_CONFIG_IDLE_TIMEOUT = 611,
[417] Fix | Delete
I2400M_TLV_CONFIG_D2H_DATA_FORMAT = 614,
[418] Fix | Delete
I2400M_TLV_CONFIG_DL_HOST_REORDER = 615,
[419] Fix | Delete
};
[420] Fix | Delete
[421] Fix | Delete
[422] Fix | Delete
struct i2400m_tlv_hdr {
[423] Fix | Delete
__le16 type;
[424] Fix | Delete
__le16 length; /* payload's */
[425] Fix | Delete
__u8 pl[0];
[426] Fix | Delete
} __attribute__((packed));
[427] Fix | Delete
[428] Fix | Delete
[429] Fix | Delete
struct i2400m_l3l4_hdr {
[430] Fix | Delete
__le16 type;
[431] Fix | Delete
__le16 length; /* payload's */
[432] Fix | Delete
__le16 version;
[433] Fix | Delete
__le16 resv1;
[434] Fix | Delete
__le16 status;
[435] Fix | Delete
__le16 resv2;
[436] Fix | Delete
struct i2400m_tlv_hdr pl[0];
[437] Fix | Delete
} __attribute__((packed));
[438] Fix | Delete
[439] Fix | Delete
[440] Fix | Delete
/**
[441] Fix | Delete
* i2400m_system_state - different states of the device
[442] Fix | Delete
*/
[443] Fix | Delete
enum i2400m_system_state {
[444] Fix | Delete
I2400M_SS_UNINITIALIZED = 1,
[445] Fix | Delete
I2400M_SS_INIT,
[446] Fix | Delete
I2400M_SS_READY,
[447] Fix | Delete
I2400M_SS_SCAN,
[448] Fix | Delete
I2400M_SS_STANDBY,
[449] Fix | Delete
I2400M_SS_CONNECTING,
[450] Fix | Delete
I2400M_SS_WIMAX_CONNECTED,
[451] Fix | Delete
I2400M_SS_DATA_PATH_CONNECTED,
[452] Fix | Delete
I2400M_SS_IDLE,
[453] Fix | Delete
I2400M_SS_DISCONNECTING,
[454] Fix | Delete
I2400M_SS_OUT_OF_ZONE,
[455] Fix | Delete
I2400M_SS_SLEEPACTIVE,
[456] Fix | Delete
I2400M_SS_PRODUCTION,
[457] Fix | Delete
I2400M_SS_CONFIG,
[458] Fix | Delete
I2400M_SS_RF_OFF,
[459] Fix | Delete
I2400M_SS_RF_SHUTDOWN,
[460] Fix | Delete
I2400M_SS_DEVICE_DISCONNECT,
[461] Fix | Delete
I2400M_SS_MAX,
[462] Fix | Delete
};
[463] Fix | Delete
[464] Fix | Delete
[465] Fix | Delete
/**
[466] Fix | Delete
* i2400m_tlv_system_state - report on the state of the system
[467] Fix | Delete
*
[468] Fix | Delete
* @state: see enum i2400m_system_state
[469] Fix | Delete
*/
[470] Fix | Delete
struct i2400m_tlv_system_state {
[471] Fix | Delete
struct i2400m_tlv_hdr hdr;
[472] Fix | Delete
__le32 state;
[473] Fix | Delete
} __attribute__((packed));
[474] Fix | Delete
[475] Fix | Delete
[476] Fix | Delete
struct i2400m_tlv_l4_message_versions {
[477] Fix | Delete
struct i2400m_tlv_hdr hdr;
[478] Fix | Delete
__le16 major;
[479] Fix | Delete
__le16 minor;
[480] Fix | Delete
__le16 branch;
[481] Fix | Delete
__le16 reserved;
[482] Fix | Delete
} __attribute__((packed));
[483] Fix | Delete
[484] Fix | Delete
[485] Fix | Delete
struct i2400m_tlv_detailed_device_info {
[486] Fix | Delete
struct i2400m_tlv_hdr hdr;
[487] Fix | Delete
__u8 reserved1[400];
[488] Fix | Delete
__u8 mac_address[ETH_ALEN];
[489] Fix | Delete
__u8 reserved2[2];
[490] Fix | Delete
} __attribute__((packed));
[491] Fix | Delete
[492] Fix | Delete
[493] Fix | Delete
enum i2400m_rf_switch_status {
[494] Fix | Delete
I2400M_RF_SWITCH_ON = 1,
[495] Fix | Delete
I2400M_RF_SWITCH_OFF = 2,
[496] Fix | Delete
};
[497] Fix | Delete
[498] Fix | Delete
struct i2400m_tlv_rf_switches_status {
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function