Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
iwl-eeprom-read.c File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/export.h>
#include "iwl-debug.h"
#include "iwl-eeprom-read.h"
#include "iwl-io.h"
#include "iwl-prph.h"
#include "iwl-csr.h"

Go to the source code of this file.

Macros

#define IWL_EEPROM_ACCESS_TIMEOUT   5000 /* uSec */
 
#define IWL_EEPROM_SEM_TIMEOUT   10 /* microseconds */
 
#define IWL_EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */
 
#define EEPROM_SEM_TIMEOUT   10 /* milliseconds */
 
#define EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */
 

Functions

int iwl_read_eeprom (struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size)
 
 EXPORT_SYMBOL_GPL (iwl_read_eeprom)
 

Macro Definition Documentation

#define EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */

Definition at line 94 of file iwl-eeprom-read.c.

#define EEPROM_SEM_TIMEOUT   10 /* milliseconds */

Definition at line 93 of file iwl-eeprom-read.c.

#define IWL_EEPROM_ACCESS_TIMEOUT   5000 /* uSec */

Definition at line 80 of file iwl-eeprom-read.c.

#define IWL_EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */

Definition at line 83 of file iwl-eeprom-read.c.

#define IWL_EEPROM_SEM_TIMEOUT   10 /* microseconds */

Definition at line 82 of file iwl-eeprom-read.c.

Function Documentation

EXPORT_SYMBOL_GPL ( iwl_read_eeprom  )
int iwl_read_eeprom ( struct iwl_trans trans,
u8 **  eeprom,
size_t eeprom_size 
)

iwl_read_eeprom - read EEPROM contents

Load the EEPROM contents from adapter and return it and its size.

NOTE: This routine uses the non-debug IO access functions.

Definition at line 357 of file iwl-eeprom-read.c.