Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ipw2100.c File Reference
#include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/if_arp.h>
#include <linux/in6.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/kernel.h>
#include <linux/kmod.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/proc_fs.h>
#include <linux/skbuff.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/unistd.h>
#include <linux/stringify.h>
#include <linux/tcp.h>
#include <linux/types.h>
#include <linux/time.h>
#include <linux/firmware.h>
#include <linux/acpi.h>
#include <linux/ctype.h>
#include <linux/pm_qos.h>
#include <net/lib80211.h>
#include "ipw2100.h"
#include "ipw.h"
#include <linux/moduleparam.h>

Go to the source code of this file.

Data Structures

struct  ipw2100_status_indicator
 
struct  security_info_params
 
struct  ipw2100_wep_key
 
struct  ipw2100_fw_header
 
struct  symbol_alive_response
 

Macros

#define IPW2100_VERSION   "git-1.2.2"
 
#define DRV_NAME   "ipw2100"
 
#define DRV_VERSION   IPW2100_VERSION
 
#define DRV_DESCRIPTION   "Intel(R) PRO/Wireless 2100 Network Driver"
 
#define DRV_COPYRIGHT   "Copyright(c) 2003-2006 Intel Corporation"
 
#define IPW_DEBUG(level, message...)   do {} while (0)
 
#define FREQ_COUNT   ARRAY_SIZE(ipw2100_frequencies)
 
#define RATE_COUNT   ARRAY_SIZE(ipw2100_bg_rates)
 
#define MAX_RESET_BACKOFF   10
 
#define HOST_COMPLETE_TIMEOUT   (2 * HZ)
 
#define IPW_CARD_DISABLE_COMPLETE_WAIT   100
 
#define MAX_RF_KILL_CHECKS   5
 
#define RF_KILL_CHECK_DELAY   40
 
#define HW_PHY_OFF_LOOP_DELAY   (HZ / 5000)
 
#define HW_POWER_DOWN_DELAY   (msecs_to_jiffies(100))
 
#define MAC_ASSOCIATION_READ_DELAY   (HZ)
 
#define IPW2100_HANDLER(v, f)   { v, f }
 
#define SEARCH_ERROR   0xffffffff
 
#define SEARCH_FAIL   0xfffffffe
 
#define SEARCH_SUCCESS   0xfffffff0
 
#define SEARCH_DISCARD   0
 
#define SEARCH_SNAPSHOT   1
 
#define SNAPSHOT_ADDR(ofs)   (priv->snapshot[((ofs) >> 12) & 0xff] + ((ofs) & 0xfff))
 
#define IPW2100_REG(x)   { IPW_ ##x, #x }
 
#define IPW2100_NIC(x, s)   { x, #x, s }
 
#define IPW2100_ORD(x, d)   { IPW_ORD_ ##x, #x, d }
 
#define DUMP_VAR(x, y)   len += sprintf(buf + len, # x ": %" y "\n", priv-> x)
 
#define IPW_PRIVACY_CAPABLE   0x0008
 
#define WEP_FMT_64   "%02X%02X%02X%02X-%02X"
 
#define WEP_FMT_128   "%02X%02X%02X%02X-%02X%02X%02X%02X-%02X%02X%02X"
 
#define WEP_STR_64(x)   x[0],x[1],x[2],x[3],x[4]
 
#define WEP_STR_128(x)   x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10]
 
#define IPW2100_DEV_ID(x)   { PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, x }
 
#define POWER_MODES   5
 
#define MAX_POWER_STRING   80
 
#define IPW2100_PRIV_SET_MONITOR   SIOCIWFIRSTPRIV
 
#define IPW2100_PRIV_RESET   SIOCIWFIRSTPRIV+1
 
#define IPW2100_PRIV_SET_POWER   SIOCIWFIRSTPRIV+2
 
#define IPW2100_PRIV_GET_POWER   SIOCIWFIRSTPRIV+3
 
#define IPW2100_PRIV_SET_LONGPREAMBLE   SIOCIWFIRSTPRIV+4
 
#define IPW2100_PRIV_GET_LONGPREAMBLE   SIOCIWFIRSTPRIV+5
 
#define IPW2100_PRIV_SET_CRC_CHECK   SIOCIWFIRSTPRIV+6
 
#define IPW2100_PRIV_GET_CRC_CHECK   SIOCIWFIRSTPRIV+7
 
#define IPW2100_FW_MAJOR_VERSION   1
 
#define IPW2100_FW_MINOR_VERSION   3
 
#define IPW2100_FW_MINOR(x)   ((x & 0xff) >> 8)
 
#define IPW2100_FW_MAJOR(x)   (x & 0xff)
 
#define IPW2100_FW_VERSION
 
#define IPW2100_FW_PREFIX
 
#define IPW2100_FW_NAME(x)   IPW2100_FW_PREFIX "" x ".fw"
 

Functions

 MODULE_DESCRIPTION (DRV_DESCRIPTION)
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_AUTHOR (DRV_COPYRIGHT)
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, int, 0444)
 
 module_param_named (mode, network_mode, int, 0444)
 
 module_param (channel, int, 0444)
 
 module_param (associate, int, 0444)
 
 module_param (disable, int, 0444)
 
 MODULE_PARM_DESC (debug,"debug level")
 
 MODULE_PARM_DESC (mode,"network mode (0=BSS,1=IBSS,2=Monitor)")
 
 MODULE_PARM_DESC (channel,"channel")
 
 MODULE_PARM_DESC (associate,"auto associate when scanning (default off)")
 
 MODULE_PARM_DESC (disable,"manually disable the radio (default 0 [radio on])")
 
 MODULE_DEVICE_TABLE (pci, ipw2100_pci_id_table)
 
 module_init (ipw2100_init)
 
 module_exit (ipw2100_exit)
 
 MODULE_FIRMWARE (IPW2100_FW_NAME("-i"))
 
 MODULE_FIRMWARE (IPW2100_FW_NAME(""))
 

Variables

struct security_info_params __packed
 

Macro Definition Documentation

#define DRV_COPYRIGHT   "Copyright(c) 2003-2006 Intel Corporation"

Definition at line 176 of file ipw2100.c.

#define DRV_DESCRIPTION   "Intel(R) PRO/Wireless 2100 Network Driver"

Definition at line 175 of file ipw2100.c.

#define DRV_NAME   "ipw2100"

Definition at line 173 of file ipw2100.c.

#define DRV_VERSION   IPW2100_VERSION

Definition at line 174 of file ipw2100.c.

#define DUMP_VAR (   x,
  y 
)    len += sprintf(buf + len, # x ": %" y "\n", priv-> x)
#define FREQ_COUNT   ARRAY_SIZE(ipw2100_frequencies)

Definition at line 309 of file ipw2100.c.

#define HOST_COMPLETE_TIMEOUT   (2 * HZ)

Definition at line 728 of file ipw2100.c.

#define HW_PHY_OFF_LOOP_DELAY   (HZ / 5000)
#define HW_POWER_DOWN_DELAY   (msecs_to_jiffies(100))
#define IPW2100_DEV_ID (   x)    { PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, x }

Definition at line 6554 of file ipw2100.c.

#define IPW2100_FW_MAJOR (   x)    (x & 0xff)

Definition at line 8391 of file ipw2100.c.

#define IPW2100_FW_MAJOR_VERSION   1

Definition at line 8387 of file ipw2100.c.

#define IPW2100_FW_MINOR (   x)    ((x & 0xff) >> 8)

Definition at line 8390 of file ipw2100.c.

#define IPW2100_FW_MINOR_VERSION   3

Definition at line 8388 of file ipw2100.c.

#define IPW2100_FW_NAME (   x)    IPW2100_FW_PREFIX "" x ".fw"

Definition at line 8399 of file ipw2100.c.

#define IPW2100_FW_PREFIX
Value:

Definition at line 8396 of file ipw2100.c.

#define IPW2100_FW_VERSION
Value:

Definition at line 8393 of file ipw2100.c.

#define IPW2100_HANDLER (   v,
  f 
)    { v, f }

Definition at line 2236 of file ipw2100.c.

#define IPW2100_NIC (   x,
  s 
)    { x, #x, s }

Definition at line 3594 of file ipw2100.c.

#define IPW2100_ORD (   x,
  d 
)    { IPW_ORD_ ##x, #x, d }

Definition at line 3602 of file ipw2100.c.

#define IPW2100_PRIV_GET_CRC_CHECK   SIOCIWFIRSTPRIV+7

Definition at line 8126 of file ipw2100.c.

#define IPW2100_PRIV_GET_LONGPREAMBLE   SIOCIWFIRSTPRIV+5

Definition at line 8124 of file ipw2100.c.

#define IPW2100_PRIV_GET_POWER   SIOCIWFIRSTPRIV+3

Definition at line 8122 of file ipw2100.c.

#define IPW2100_PRIV_RESET   SIOCIWFIRSTPRIV+1

Definition at line 8120 of file ipw2100.c.

#define IPW2100_PRIV_SET_CRC_CHECK   SIOCIWFIRSTPRIV+6

Definition at line 8125 of file ipw2100.c.

#define IPW2100_PRIV_SET_LONGPREAMBLE   SIOCIWFIRSTPRIV+4

Definition at line 8123 of file ipw2100.c.

#define IPW2100_PRIV_SET_MONITOR   SIOCIWFIRSTPRIV

Definition at line 8119 of file ipw2100.c.

#define IPW2100_PRIV_SET_POWER   SIOCIWFIRSTPRIV+2

Definition at line 8121 of file ipw2100.c.

#define IPW2100_REG (   x)    { IPW_ ##x, #x }

Definition at line 3585 of file ipw2100.c.

#define IPW2100_VERSION   "git-1.2.2"

Definition at line 171 of file ipw2100.c.

#define IPW_CARD_DISABLE_COMPLETE_WAIT   100

Definition at line 890 of file ipw2100.c.

#define IPW_DEBUG (   level,
  message... 
)    do {} while (0)

Definition at line 224 of file ipw2100.c.

#define IPW_PRIVACY_CAPABLE   0x0008

Definition at line 5373 of file ipw2100.c.

#define MAC_ASSOCIATION_READ_DELAY   (HZ)
#define MAX_POWER_STRING   80

Definition at line 7945 of file ipw2100.c.

#define MAX_RESET_BACKOFF   10

Definition at line 691 of file ipw2100.c.

#define MAX_RF_KILL_CHECKS   5
#define POWER_MODES   5

Definition at line 6814 of file ipw2100.c.

#define RATE_COUNT   ARRAY_SIZE(ipw2100_bg_rates)

Definition at line 318 of file ipw2100.c.

#define RF_KILL_CHECK_DELAY   40
#define SEARCH_DISCARD   0

Definition at line 2344 of file ipw2100.c.

#define SEARCH_ERROR   0xffffffff

Definition at line 2341 of file ipw2100.c.

#define SEARCH_FAIL   0xfffffffe

Definition at line 2342 of file ipw2100.c.

#define SEARCH_SNAPSHOT   1

Definition at line 2345 of file ipw2100.c.

#define SEARCH_SUCCESS   0xfffffff0

Definition at line 2343 of file ipw2100.c.

#define SNAPSHOT_ADDR (   ofs)    (priv->snapshot[((ofs) >> 12) & 0xff] + ((ofs) & 0xfff))

Definition at line 2347 of file ipw2100.c.

#define WEP_FMT_128   "%02X%02X%02X%02X-%02X%02X%02X%02X-%02X%02X%02X"

Definition at line 5416 of file ipw2100.c.

#define WEP_FMT_64   "%02X%02X%02X%02X-%02X"

Definition at line 5415 of file ipw2100.c.

#define WEP_STR_128 (   x)    x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10]

Definition at line 5418 of file ipw2100.c.

#define WEP_STR_64 (   x)    x[0],x[1],x[2],x[3],x[4]

Definition at line 5417 of file ipw2100.c.

Function Documentation

MODULE_AUTHOR ( DRV_COPYRIGHT  )
MODULE_DESCRIPTION ( DRV_DESCRIPTION  )
MODULE_DEVICE_TABLE ( pci  ,
ipw2100_pci_id_table   
)
module_exit ( ipw2100_exit  )
MODULE_FIRMWARE ( IPW2100_FW_NAME("-i")  )
MODULE_FIRMWARE ( IPW2100_FW_NAME("")  )
module_init ( ipw2100_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0444   
)
module_param ( channel  ,
int  ,
0444   
)
module_param ( associate  ,
int  ,
0444   
)
module_param ( disable  ,
int  ,
0444   
)
module_param_named ( mode  ,
network_mode  ,
int  ,
0444   
)
MODULE_PARM_DESC ( debug  ,
"debug level  
)
MODULE_PARM_DESC ( mode  ,
"network mode (0=BSS,1=IBSS,2=Monitor)"   
)
MODULE_PARM_DESC ( channel  ,
"channel"   
)
MODULE_PARM_DESC ( associate  ,
"auto associate when scanning (default off)"   
)
MODULE_PARM_DESC ( disable  ,
"manually disable the radio (default 0 [radio on])"   
)
MODULE_VERSION ( DRV_VERSION  )

Variable Documentation

u32 addr

Definition at line 3587 of file ipw2100.c.

Definition at line 3606 of file ipw2100.c.

u8 index

Definition at line 3604 of file ipw2100.c.

const char* name

Definition at line 3588 of file ipw2100.c.

size_t size

Definition at line 3598 of file ipw2100.c.