Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
iwl-eeprom-parse.h File Reference
#include <linux/types.h>
#include <linux/if_ether.h>
#include "iwl-trans.h"

Go to the source code of this file.

Data Structures

struct  iwl_eeprom_data
 

Macros

#define EEPROM_SKU_CAP_BAND_24GHZ   (1 << 4)
 
#define EEPROM_SKU_CAP_BAND_52GHZ   (1 << 5)
 
#define EEPROM_SKU_CAP_11N_ENABLE   (1 << 6)
 
#define EEPROM_SKU_CAP_AMT_ENABLE   (1 << 7)
 
#define EEPROM_SKU_CAP_IPAN_ENABLE   (1 << 8)
 
#define EEPROM_RF_CFG_TYPE_MSK(x)   (x & 0x3) /* bits 0-1 */
 
#define EEPROM_RF_CFG_STEP_MSK(x)   ((x >> 2) & 0x3) /* bits 2-3 */
 
#define EEPROM_RF_CFG_DASH_MSK(x)   ((x >> 4) & 0x3) /* bits 4-5 */
 
#define EEPROM_RF_CFG_PNUM_MSK(x)   ((x >> 6) & 0x3) /* bits 6-7 */
 
#define EEPROM_RF_CFG_TX_ANT_MSK(x)   ((x >> 8) & 0xF) /* bits 8-11 */
 
#define EEPROM_RF_CFG_RX_ANT_MSK(x)   ((x >> 12) & 0xF) /* bits 12-15 */
 

Functions

struct iwl_eeprom_dataiwl_parse_eeprom_data (struct device *dev, const struct iwl_cfg *cfg, const u8 *eeprom, size_t eeprom_size)
 
int iwl_eeprom_check_version (struct iwl_eeprom_data *data, struct iwl_trans *trans)
 

Macro Definition Documentation

#define EEPROM_RF_CFG_DASH_MSK (   x)    ((x >> 4) & 0x3) /* bits 4-5 */

Definition at line 79 of file iwl-eeprom-parse.h.

#define EEPROM_RF_CFG_PNUM_MSK (   x)    ((x >> 6) & 0x3) /* bits 6-7 */

Definition at line 80 of file iwl-eeprom-parse.h.

#define EEPROM_RF_CFG_RX_ANT_MSK (   x)    ((x >> 12) & 0xF) /* bits 12-15 */

Definition at line 82 of file iwl-eeprom-parse.h.

#define EEPROM_RF_CFG_STEP_MSK (   x)    ((x >> 2) & 0x3) /* bits 2-3 */

Definition at line 78 of file iwl-eeprom-parse.h.

#define EEPROM_RF_CFG_TX_ANT_MSK (   x)    ((x >> 8) & 0xF) /* bits 8-11 */

Definition at line 81 of file iwl-eeprom-parse.h.

#define EEPROM_RF_CFG_TYPE_MSK (   x)    (x & 0x3) /* bits 0-1 */

Definition at line 77 of file iwl-eeprom-parse.h.

#define EEPROM_SKU_CAP_11N_ENABLE   (1 << 6)

Definition at line 72 of file iwl-eeprom-parse.h.

#define EEPROM_SKU_CAP_AMT_ENABLE   (1 << 7)

Definition at line 73 of file iwl-eeprom-parse.h.

#define EEPROM_SKU_CAP_BAND_24GHZ   (1 << 4)

Definition at line 70 of file iwl-eeprom-parse.h.

#define EEPROM_SKU_CAP_BAND_52GHZ   (1 << 5)

Definition at line 71 of file iwl-eeprom-parse.h.

#define EEPROM_SKU_CAP_IPAN_ENABLE   (1 << 8)

Definition at line 74 of file iwl-eeprom-parse.h.

Function Documentation

int iwl_eeprom_check_version ( struct iwl_eeprom_data data,
struct iwl_trans trans 
)

Definition at line 887 of file iwl-eeprom-parse.c.

struct iwl_eeprom_data* iwl_parse_eeprom_data ( struct device dev,
const struct iwl_cfg cfg,
const u8 eeprom,
size_t  eeprom_size 
)
read

iwl_parse_eeprom_data - parse EEPROM data and return values

: device pointer we're parsing for, for debug only : device configuration for parsing and overrides : the EEPROM data : length of the EEPROM data

This function parses all EEPROM values we need and then returns a (newly allocated) struct containing all the relevant values for driver use. The struct must be freed later with iwl_free_eeprom_data().

Definition at line 808 of file iwl-eeprom-parse.c.