Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
eeprom.c File Reference
#include <linux/init.h>
#include <linux/firmware.h>
#include <linux/etherdevice.h>
#include <linux/sort.h>
#include <linux/slab.h>
#include <net/mac80211.h>
#include <linux/crc-ccitt.h>
#include <linux/export.h>
#include "p54.h"
#include "eeprom.h"
#include "lmac.h"

Go to the source code of this file.

Data Structures

struct  p54_channel_entry
 
struct  p54_channel_list
 

Macros

#define CHAN_HAS_CAL   BIT(0)
 
#define CHAN_HAS_LIMIT   BIT(1)
 
#define CHAN_HAS_CURVE   BIT(2)
 
#define CHAN_HAS_ALL   (CHAN_HAS_CAL | CHAN_HAS_LIMIT | CHAN_HAS_CURVE)
 
#define SUB(x, y)   (u8)(((x) - (y)) > (x) ? 0 : (x) - (y))
 

Functions

struct p54_rssi_db_entryp54_rssi_find (struct p54_common *priv, const u16 freq)
 
int p54_parse_eeprom (struct ieee80211_hw *dev, void *eeprom, int len)
 
 EXPORT_SYMBOL_GPL (p54_parse_eeprom)
 
int p54_read_eeprom (struct ieee80211_hw *dev)
 
 EXPORT_SYMBOL_GPL (p54_read_eeprom)
 

Macro Definition Documentation

#define CHAN_HAS_ALL   (CHAN_HAS_CAL | CHAN_HAS_LIMIT | CHAN_HAS_CURVE)

Definition at line 73 of file eeprom.c.

#define CHAN_HAS_CAL   BIT(0)

Definition at line 70 of file eeprom.c.

#define CHAN_HAS_CURVE   BIT(2)

Definition at line 72 of file eeprom.c.

#define CHAN_HAS_LIMIT   BIT(1)

Definition at line 71 of file eeprom.c.

#define SUB (   x,
  y 
)    (u8)(((x) - (y)) > (x) ? 0 : (x) - (y))

Function Documentation

EXPORT_SYMBOL_GPL ( p54_parse_eeprom  )
EXPORT_SYMBOL_GPL ( p54_read_eeprom  )
int p54_parse_eeprom ( struct ieee80211_hw dev,
void eeprom,
int  len 
)

Definition at line 730 of file eeprom.c.

int p54_read_eeprom ( struct ieee80211_hw dev)

Definition at line 949 of file eeprom.c.

struct p54_rssi_db_entry* p54_rssi_find ( struct p54_common priv,
const u16  freq 
)
read

Definition at line 605 of file eeprom.c.