Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
atmel.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/timer.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/if_arp.h>
#include <linux/ioport.h>
#include <linux/fcntl.h>
#include <linux/delay.h>
#include <linux/wireless.h>
#include <net/iw_handler.h>
#include <linux/crc32.h>
#include <linux/proc_fs.h>
#include <linux/device.h>
#include <linux/moduleparam.h>
#include <linux/firmware.h>
#include <linux/jiffies.h>
#include <linux/ieee80211.h>
#include "atmel.h"

Go to the source code of this file.

Data Structures

struct  get_set_mib
 
struct  rx_desc
 
struct  tx_desc
 
struct  atmel_private
 
struct  atmel_private::host_info_struct
 
struct  atmel_private::bss_info
 
struct  atmel_priv_ioctl
 
struct  auth_body
 

Macros

#define DRIVER_MAJOR   0
 
#define DRIVER_MINOR   98
 
#define MAX_SSID_LENGTH   32
 
#define MGMT_JIFFIES   (256 * HZ / 100)
 
#define MAX_BSS_ENTRIES   64
 
#define GCR   0x00 /* (SIR0) General Configuration Register */
 
#define BSR   0x02 /* (SIR1) Bank Switching Select Register */
 
#define AR   0x04
 
#define DR   0x08
 
#define MR1   0x12 /* Mirror Register 1 */
 
#define MR2   0x14 /* Mirror Register 2 */
 
#define MR3   0x16 /* Mirror Register 3 */
 
#define MR4   0x18 /* Mirror Register 4 */
 
#define GPR1   0x0c
 
#define GPR2   0x0e
 
#define GPR3   0x10
 
#define GCR_REMAP   0x0400 /* Remap internal SRAM to 0 */
 
#define GCR_SWRES   0x0080 /* BIU reset (ARM and PAI are NOT reset) */
 
#define GCR_CORES   0x0060 /* Core Reset (ARM and PAI are reset) */
 
#define GCR_ENINT   0x0002 /* Enable Interrupts */
 
#define GCR_ACKINT   0x0008 /* Acknowledge Interrupts */
 
#define BSS_SRAM   0x0200 /* AMBA module selection --> SRAM */
 
#define BSS_IRAM   0x0100 /* AMBA module selection --> IRAM */
 
#define MAC_INIT_COMPLETE   0x0001 /* MAC init has been completed */
 
#define MAC_BOOT_COMPLETE   0x0010 /* MAC boot has been completed */
 
#define MAC_INIT_OK   0x0002 /* MAC boot has been completed */
 
#define MIB_MAX_DATA_BYTES   212
 
#define MIB_HEADER_SIZE   4 /* first four fields */
 
#define RX_DESC_FLAG_VALID   0x80
 
#define RX_DESC_FLAG_CONSUMED   0x40
 
#define RX_DESC_FLAG_IDLE   0x00
 
#define RX_STATUS_SUCCESS   0x00
 
#define RX_DESC_MSDU_POS_OFFSET   4
 
#define RX_DESC_MSDU_SIZE_OFFSET   6
 
#define RX_DESC_FLAGS_OFFSET   8
 
#define RX_DESC_STATUS_OFFSET   9
 
#define RX_DESC_RSSI_OFFSET   11
 
#define RX_DESC_LINK_QUALITY_OFFSET   12
 
#define RX_DESC_PREAMBLE_TYPE_OFFSET   13
 
#define RX_DESC_DURATION_OFFSET   14
 
#define RX_DESC_RX_TIME_OFFSET   16
 
#define TX_DESC_NEXT_OFFSET   0
 
#define TX_DESC_POS_OFFSET   4
 
#define TX_DESC_SIZE_OFFSET   6
 
#define TX_DESC_FLAGS_OFFSET   8
 
#define TX_DESC_STATUS_OFFSET   9
 
#define TX_DESC_RETRY_OFFSET   10
 
#define TX_DESC_RATE_OFFSET   11
 
#define TX_DESC_KEY_INDEX_OFFSET   12
 
#define TX_DESC_CIPHER_TYPE_OFFSET   13
 
#define TX_DESC_CIPHER_LENGTH_OFFSET   14
 
#define TX_DESC_PACKET_TYPE_OFFSET   17
 
#define TX_DESC_HOST_LENGTH_OFFSET   18
 
#define TX_STATUS_SUCCESS   0x00
 
#define TX_FIRM_OWN   0x80
 
#define TX_DONE   0x40
 
#define TX_ERROR   0x01
 
#define TX_PACKET_TYPE_DATA   0x01
 
#define TX_PACKET_TYPE_MGMT   0x02
 
#define ISR_EMPTY   0x00 /* no bits set in ISR */
 
#define ISR_TxCOMPLETE   0x01 /* packet transmitted */
 
#define ISR_RxCOMPLETE   0x02 /* packet received */
 
#define ISR_RxFRAMELOST   0x04 /* Rx Frame lost */
 
#define ISR_FATAL_ERROR   0x08 /* Fatal error */
 
#define ISR_COMMAND_COMPLETE   0x10 /* command completed */
 
#define ISR_OUT_OF_RANGE   0x20 /* command completed */
 
#define ISR_IBSS_MERGE   0x40 /* (4.1.2.30): IBSS merge */
 
#define ISR_GENERIC_IRQ   0x80
 
#define Local_Mib_Type   0x01
 
#define Mac_Address_Mib_Type   0x02
 
#define Mac_Mib_Type   0x03
 
#define Statistics_Mib_Type   0x04
 
#define Mac_Mgmt_Mib_Type   0x05
 
#define Mac_Wep_Mib_Type   0x06
 
#define Phy_Mib_Type   0x07
 
#define Multi_Domain_MIB   0x08
 
#define MAC_MGMT_MIB_CUR_BSSID_POS   14
 
#define MAC_MIB_FRAG_THRESHOLD_POS   8
 
#define MAC_MIB_RTS_THRESHOLD_POS   10
 
#define MAC_MIB_SHORT_RETRY_POS   16
 
#define MAC_MIB_LONG_RETRY_POS   17
 
#define MAC_MIB_SHORT_RETRY_LIMIT_POS   16
 
#define MAC_MGMT_MIB_BEACON_PER_POS   0
 
#define MAC_MGMT_MIB_STATION_ID_POS   6
 
#define MAC_MGMT_MIB_CUR_PRIVACY_POS   11
 
#define MAC_MGMT_MIB_CUR_BSSID_POS   14
 
#define MAC_MGMT_MIB_PS_MODE_POS   53
 
#define MAC_MGMT_MIB_LISTEN_INTERVAL_POS   54
 
#define MAC_MGMT_MIB_MULTI_DOMAIN_IMPLEMENTED   56
 
#define MAC_MGMT_MIB_MULTI_DOMAIN_ENABLED   57
 
#define PHY_MIB_CHANNEL_POS   14
 
#define PHY_MIB_RATE_SET_POS   20
 
#define PHY_MIB_REG_DOMAIN_POS   26
 
#define LOCAL_MIB_AUTO_TX_RATE_POS   3
 
#define LOCAL_MIB_SSID_SIZE   5
 
#define LOCAL_MIB_TX_PROMISCUOUS_POS   6
 
#define LOCAL_MIB_TX_MGMT_RATE_POS   7
 
#define LOCAL_MIB_TX_CONTROL_RATE_POS   8
 
#define LOCAL_MIB_PREAMBLE_TYPE   9
 
#define MAC_ADDR_MIB_MAC_ADDR_POS   0
 
#define CMD_Set_MIB_Vars   0x01
 
#define CMD_Get_MIB_Vars   0x02
 
#define CMD_Scan   0x03
 
#define CMD_Join   0x04
 
#define CMD_Start   0x05
 
#define CMD_EnableRadio   0x06
 
#define CMD_DisableRadio   0x07
 
#define CMD_SiteSurvey   0x0B
 
#define CMD_STATUS_IDLE   0x00
 
#define CMD_STATUS_COMPLETE   0x01
 
#define CMD_STATUS_UNKNOWN   0x02
 
#define CMD_STATUS_INVALID_PARAMETER   0x03
 
#define CMD_STATUS_FUNCTION_NOT_SUPPORTED   0x04
 
#define CMD_STATUS_TIME_OUT   0x07
 
#define CMD_STATUS_IN_PROGRESS   0x08
 
#define CMD_STATUS_REJECTED_RADIO_OFF   0x09
 
#define CMD_STATUS_HOST_ERROR   0xFF
 
#define CMD_STATUS_BUSY   0xFE
 
#define CMD_BLOCK_COMMAND_OFFSET   0
 
#define CMD_BLOCK_STATUS_OFFSET   1
 
#define CMD_BLOCK_PARAMETERS_OFFSET   4
 
#define SCAN_OPTIONS_SITE_SURVEY   0x80
 
#define MGMT_FRAME_BODY_OFFSET   24
 
#define MAX_AUTHENTICATION_RETRIES   3
 
#define MAX_ASSOCIATION_RETRIES   3
 
#define AUTHENTICATION_RESPONSE_TIME_OUT   1000
 
#define MAX_WIRELESS_BODY   2316 /* mtu is 2312, CRC is 4 */
 
#define LOOP_RETRY_LIMIT   500000
 
#define ACTIVE_MODE   1
 
#define PS_MODE   2
 
#define MAX_ENCRYPTION_KEYS   4
 
#define MAX_ENCRYPTION_KEY_SIZE   40
 
#define REG_DOMAIN_FCC   0x10 /* Channels 1-11 USA */
 
#define REG_DOMAIN_DOC   0x20 /* Channel 1-11 Canada */
 
#define REG_DOMAIN_ETSI   0x30 /* Channel 1-13 Europe (ex Spain/France) */
 
#define REG_DOMAIN_SPAIN   0x31 /* Channel 10-11 Spain */
 
#define REG_DOMAIN_FRANCE   0x32 /* Channel 10-13 France */
 
#define REG_DOMAIN_MKK   0x40 /* Channel 14 Japan */
 
#define REG_DOMAIN_MKK1   0x41 /* Channel 1-14 Japan(MKK1) */
 
#define REG_DOMAIN_ISRAEL   0x50 /* Channel 3-9 ISRAEL */
 
#define BSS_TYPE_AD_HOC   1
 
#define BSS_TYPE_INFRASTRUCTURE   2
 
#define SCAN_TYPE_ACTIVE   0
 
#define SCAN_TYPE_PASSIVE   1
 
#define LONG_PREAMBLE   0
 
#define SHORT_PREAMBLE   1
 
#define AUTO_PREAMBLE   2
 
#define DATA_FRAME_WS_HEADER_SIZE   30
 
#define PROM_MODE_OFF   0x0
 
#define PROM_MODE_UNKNOWN   0x1
 
#define PROM_MODE_CRC_FAILED   0x2
 
#define PROM_MODE_DUPLICATED   0x4
 
#define PROM_MODE_MGMT   0x8
 
#define PROM_MODE_CTRL   0x10
 
#define PROM_MODE_BAD_PROTOCOL   0x20
 
#define IFACE_INT_STATUS_OFFSET   0
 
#define IFACE_INT_MASK_OFFSET   1
 
#define IFACE_LOCKOUT_HOST_OFFSET   2
 
#define IFACE_LOCKOUT_MAC_OFFSET   3
 
#define IFACE_FUNC_CTRL_OFFSET   28
 
#define IFACE_MAC_STAT_OFFSET   30
 
#define IFACE_GENERIC_INT_TYPE_OFFSET   32
 
#define CIPHER_SUITE_NONE   0
 
#define CIPHER_SUITE_WEP_64   1
 
#define CIPHER_SUITE_TKIP   2
 
#define CIPHER_SUITE_AES   3
 
#define CIPHER_SUITE_CCX   4
 
#define CIPHER_SUITE_WEP_128   5
 
#define FUNC_CTRL_TxENABLE   0x10
 
#define FUNC_CTRL_RxENABLE   0x20
 
#define FUNC_CTRL_INIT_COMPLETE   0x01
 
#define ATMELFWL   SIOCIWFIRSTPRIV
 
#define ATMELIDIFC   ATMELFWL + 1
 
#define ATMELRD   ATMELFWL + 2
 
#define ATMELMAGIC   0x51807
 
#define REGDOMAINSZ   20
 

Typedefs

typedef struct atmel_priv_ioctl atmel_priv_ioctl
 

Functions

 MODULE_AUTHOR ("Simon Kelley")
 
 MODULE_DESCRIPTION ("Support for Atmel at76c50x 802.11 wireless ethernet cards.")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("Atmel at76c50x wireless cards")
 
 module_param (firmware, charp, 0)
 
 MODULE_FIRMWARE ("atmel_at76c502-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c502.bin")
 
 MODULE_FIRMWARE ("atmel_at76c502d-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c502d.bin")
 
 MODULE_FIRMWARE ("atmel_at76c502e-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c502e.bin")
 
 MODULE_FIRMWARE ("atmel_at76c502_3com-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c502_3com.bin")
 
 MODULE_FIRMWARE ("atmel_at76c504-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c504.bin")
 
 MODULE_FIRMWARE ("atmel_at76c504_2958-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c504_2958.bin")
 
 MODULE_FIRMWARE ("atmel_at76c504a_2958-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c504a_2958.bin")
 
 MODULE_FIRMWARE ("atmel_at76c506-wpa.bin")
 
 MODULE_FIRMWARE ("atmel_at76c506.bin")
 
int atmel_open (struct net_device *dev)
 
 EXPORT_SYMBOL (atmel_open)
 
struct net_deviceinit_atmel_card (unsigned short irq, unsigned long port, const AtmelFWType fw_type, struct device *sys_dev, int(*card_present)(void *), void *card)
 
 EXPORT_SYMBOL (init_atmel_card)
 
void stop_atmel_card (struct net_device *dev)
 
 EXPORT_SYMBOL (stop_atmel_card)
 

Macro Definition Documentation

#define ACTIVE_MODE   1

Definition at line 324 of file atmel.c.

#define AR   0x04

Definition at line 127 of file atmel.c.

#define ATMELFWL   SIOCIWFIRSTPRIV

Definition at line 2615 of file atmel.c.

#define ATMELIDIFC   ATMELFWL + 1

Definition at line 2616 of file atmel.c.

#define ATMELMAGIC   0x51807

Definition at line 2618 of file atmel.c.

#define ATMELRD   ATMELFWL + 2

Definition at line 2617 of file atmel.c.

#define AUTHENTICATION_RESPONSE_TIME_OUT   1000

Definition at line 319 of file atmel.c.

#define AUTO_PREAMBLE   2

Definition at line 355 of file atmel.c.

#define BSR   0x02 /* (SIR1) Bank Switching Select Register */

Definition at line 126 of file atmel.c.

#define BSS_IRAM   0x0100 /* AMBA module selection --> IRAM */

Definition at line 147 of file atmel.c.

#define BSS_SRAM   0x0200 /* AMBA module selection --> SRAM */

Definition at line 146 of file atmel.c.

#define BSS_TYPE_AD_HOC   1

Definition at line 347 of file atmel.c.

#define BSS_TYPE_INFRASTRUCTURE   2

Definition at line 348 of file atmel.c.

#define CIPHER_SUITE_AES   3

Definition at line 379 of file atmel.c.

#define CIPHER_SUITE_CCX   4

Definition at line 380 of file atmel.c.

#define CIPHER_SUITE_NONE   0

Definition at line 376 of file atmel.c.

#define CIPHER_SUITE_TKIP   2

Definition at line 378 of file atmel.c.

#define CIPHER_SUITE_WEP_128   5

Definition at line 381 of file atmel.c.

#define CIPHER_SUITE_WEP_64   1

Definition at line 377 of file atmel.c.

#define CMD_BLOCK_COMMAND_OFFSET   0

Definition at line 309 of file atmel.c.

#define CMD_BLOCK_PARAMETERS_OFFSET   4

Definition at line 311 of file atmel.c.

#define CMD_BLOCK_STATUS_OFFSET   1

Definition at line 310 of file atmel.c.

#define CMD_DisableRadio   0x07

Definition at line 295 of file atmel.c.

#define CMD_EnableRadio   0x06

Definition at line 294 of file atmel.c.

#define CMD_Get_MIB_Vars   0x02

Definition at line 290 of file atmel.c.

#define CMD_Join   0x04

Definition at line 292 of file atmel.c.

#define CMD_Scan   0x03

Definition at line 291 of file atmel.c.

#define CMD_Set_MIB_Vars   0x01

Definition at line 289 of file atmel.c.

#define CMD_SiteSurvey   0x0B

Definition at line 296 of file atmel.c.

#define CMD_Start   0x05

Definition at line 293 of file atmel.c.

#define CMD_STATUS_BUSY   0xFE

Definition at line 307 of file atmel.c.

#define CMD_STATUS_COMPLETE   0x01

Definition at line 299 of file atmel.c.

#define CMD_STATUS_FUNCTION_NOT_SUPPORTED   0x04

Definition at line 302 of file atmel.c.

#define CMD_STATUS_HOST_ERROR   0xFF

Definition at line 306 of file atmel.c.

#define CMD_STATUS_IDLE   0x00

Definition at line 298 of file atmel.c.

#define CMD_STATUS_IN_PROGRESS   0x08

Definition at line 304 of file atmel.c.

#define CMD_STATUS_INVALID_PARAMETER   0x03

Definition at line 301 of file atmel.c.

#define CMD_STATUS_REJECTED_RADIO_OFF   0x09

Definition at line 305 of file atmel.c.

#define CMD_STATUS_TIME_OUT   0x07

Definition at line 303 of file atmel.c.

#define CMD_STATUS_UNKNOWN   0x02

Definition at line 300 of file atmel.c.

#define DATA_FRAME_WS_HEADER_SIZE   30

Definition at line 357 of file atmel.c.

#define DR   0x08

Definition at line 128 of file atmel.c.

#define DRIVER_MAJOR   0

Definition at line 73 of file atmel.c.

#define DRIVER_MINOR   98

Definition at line 74 of file atmel.c.

#define FUNC_CTRL_INIT_COMPLETE   0x01

Definition at line 392 of file atmel.c.

#define FUNC_CTRL_RxENABLE   0x20

Definition at line 391 of file atmel.c.

#define FUNC_CTRL_TxENABLE   0x10

Definition at line 390 of file atmel.c.

#define GCR   0x00 /* (SIR0) General Configuration Register */

Definition at line 125 of file atmel.c.

#define GCR_ACKINT   0x0008 /* Acknowledge Interrupts */

Definition at line 144 of file atmel.c.

#define GCR_CORES   0x0060 /* Core Reset (ARM and PAI are reset) */

Definition at line 142 of file atmel.c.

#define GCR_ENINT   0x0002 /* Enable Interrupts */

Definition at line 143 of file atmel.c.

#define GCR_REMAP   0x0400 /* Remap internal SRAM to 0 */

Definition at line 140 of file atmel.c.

#define GCR_SWRES   0x0080 /* BIU reset (ARM and PAI are NOT reset) */

Definition at line 141 of file atmel.c.

#define GPR1   0x0c

Definition at line 134 of file atmel.c.

#define GPR2   0x0e

Definition at line 135 of file atmel.c.

#define GPR3   0x10

Definition at line 136 of file atmel.c.

#define IFACE_FUNC_CTRL_OFFSET   28

Definition at line 372 of file atmel.c.

#define IFACE_GENERIC_INT_TYPE_OFFSET   32

Definition at line 374 of file atmel.c.

#define IFACE_INT_MASK_OFFSET   1

Definition at line 369 of file atmel.c.

#define IFACE_INT_STATUS_OFFSET   0

Definition at line 368 of file atmel.c.

#define IFACE_LOCKOUT_HOST_OFFSET   2

Definition at line 370 of file atmel.c.

#define IFACE_LOCKOUT_MAC_OFFSET   3

Definition at line 371 of file atmel.c.

#define IFACE_MAC_STAT_OFFSET   30

Definition at line 373 of file atmel.c.

#define ISR_COMMAND_COMPLETE   0x10 /* command completed */

Definition at line 250 of file atmel.c.

#define ISR_EMPTY   0x00 /* no bits set in ISR */

Definition at line 245 of file atmel.c.

#define ISR_FATAL_ERROR   0x08 /* Fatal error */

Definition at line 249 of file atmel.c.

#define ISR_GENERIC_IRQ   0x80

Definition at line 253 of file atmel.c.

#define ISR_IBSS_MERGE   0x40 /* (4.1.2.30): IBSS merge */

Definition at line 252 of file atmel.c.

#define ISR_OUT_OF_RANGE   0x20 /* command completed */

Definition at line 251 of file atmel.c.

#define ISR_RxCOMPLETE   0x02 /* packet received */

Definition at line 247 of file atmel.c.

#define ISR_RxFRAMELOST   0x04 /* Rx Frame lost */

Definition at line 248 of file atmel.c.

#define ISR_TxCOMPLETE   0x01 /* packet transmitted */

Definition at line 246 of file atmel.c.

#define LOCAL_MIB_AUTO_TX_RATE_POS   3

Definition at line 281 of file atmel.c.

#define LOCAL_MIB_PREAMBLE_TYPE   9

Definition at line 286 of file atmel.c.

#define LOCAL_MIB_SSID_SIZE   5

Definition at line 282 of file atmel.c.

#define LOCAL_MIB_TX_CONTROL_RATE_POS   8

Definition at line 285 of file atmel.c.

#define LOCAL_MIB_TX_MGMT_RATE_POS   7

Definition at line 284 of file atmel.c.

#define LOCAL_MIB_TX_PROMISCUOUS_POS   6

Definition at line 283 of file atmel.c.

#define Local_Mib_Type   0x01

Definition at line 255 of file atmel.c.

#define LONG_PREAMBLE   0

Definition at line 353 of file atmel.c.

#define LOOP_RETRY_LIMIT   500000

Definition at line 322 of file atmel.c.

#define MAC_ADDR_MIB_MAC_ADDR_POS   0

Definition at line 287 of file atmel.c.

#define Mac_Address_Mib_Type   0x02

Definition at line 256 of file atmel.c.

#define MAC_BOOT_COMPLETE   0x0010 /* MAC boot has been completed */

Definition at line 152 of file atmel.c.

#define MAC_INIT_COMPLETE   0x0001 /* MAC init has been completed */

Definition at line 151 of file atmel.c.

#define MAC_INIT_OK   0x0002 /* MAC boot has been completed */

Definition at line 153 of file atmel.c.

#define MAC_MGMT_MIB_BEACON_PER_POS   0

Definition at line 270 of file atmel.c.

#define MAC_MGMT_MIB_CUR_BSSID_POS   14

Definition at line 273 of file atmel.c.

#define MAC_MGMT_MIB_CUR_BSSID_POS   14

Definition at line 273 of file atmel.c.

#define MAC_MGMT_MIB_CUR_PRIVACY_POS   11

Definition at line 272 of file atmel.c.

#define MAC_MGMT_MIB_LISTEN_INTERVAL_POS   54

Definition at line 275 of file atmel.c.

#define MAC_MGMT_MIB_MULTI_DOMAIN_ENABLED   57

Definition at line 277 of file atmel.c.

#define MAC_MGMT_MIB_MULTI_DOMAIN_IMPLEMENTED   56

Definition at line 276 of file atmel.c.

#define MAC_MGMT_MIB_PS_MODE_POS   53

Definition at line 274 of file atmel.c.

#define MAC_MGMT_MIB_STATION_ID_POS   6

Definition at line 271 of file atmel.c.

#define Mac_Mgmt_Mib_Type   0x05

Definition at line 259 of file atmel.c.

#define MAC_MIB_FRAG_THRESHOLD_POS   8

Definition at line 265 of file atmel.c.

#define MAC_MIB_LONG_RETRY_POS   17

Definition at line 268 of file atmel.c.

#define MAC_MIB_RTS_THRESHOLD_POS   10

Definition at line 266 of file atmel.c.

#define MAC_MIB_SHORT_RETRY_LIMIT_POS   16

Definition at line 269 of file atmel.c.

#define MAC_MIB_SHORT_RETRY_POS   16

Definition at line 267 of file atmel.c.

#define Mac_Mib_Type   0x03

Definition at line 257 of file atmel.c.

#define Mac_Wep_Mib_Type   0x06

Definition at line 260 of file atmel.c.

#define MAX_ASSOCIATION_RETRIES   3

Definition at line 317 of file atmel.c.

#define MAX_AUTHENTICATION_RETRIES   3

Definition at line 316 of file atmel.c.

#define MAX_BSS_ENTRIES   64

Definition at line 122 of file atmel.c.

#define MAX_ENCRYPTION_KEY_SIZE   40

Definition at line 328 of file atmel.c.

#define MAX_ENCRYPTION_KEYS   4

Definition at line 327 of file atmel.c.

#define MAX_SSID_LENGTH   32

Definition at line 119 of file atmel.c.

#define MAX_WIRELESS_BODY   2316 /* mtu is 2312, CRC is 4 */

Definition at line 321 of file atmel.c.

#define MGMT_FRAME_BODY_OFFSET   24

Definition at line 315 of file atmel.c.

#define MGMT_JIFFIES   (256 * HZ / 100)

Definition at line 120 of file atmel.c.

#define MIB_HEADER_SIZE   4 /* first four fields */

Definition at line 156 of file atmel.c.

#define MIB_MAX_DATA_BYTES   212

Definition at line 155 of file atmel.c.

#define MR1   0x12 /* Mirror Register 1 */

Definition at line 129 of file atmel.c.

#define MR2   0x14 /* Mirror Register 2 */

Definition at line 130 of file atmel.c.

#define MR3   0x16 /* Mirror Register 3 */

Definition at line 131 of file atmel.c.

#define MR4   0x18 /* Mirror Register 4 */

Definition at line 132 of file atmel.c.

#define Multi_Domain_MIB   0x08

Definition at line 262 of file atmel.c.

#define PHY_MIB_CHANNEL_POS   14

Definition at line 278 of file atmel.c.

#define PHY_MIB_RATE_SET_POS   20

Definition at line 279 of file atmel.c.

#define PHY_MIB_REG_DOMAIN_POS   26

Definition at line 280 of file atmel.c.

#define Phy_Mib_Type   0x07

Definition at line 261 of file atmel.c.

#define PROM_MODE_BAD_PROTOCOL   0x20

Definition at line 366 of file atmel.c.

#define PROM_MODE_CRC_FAILED   0x2

Definition at line 362 of file atmel.c.

#define PROM_MODE_CTRL   0x10

Definition at line 365 of file atmel.c.

#define PROM_MODE_DUPLICATED   0x4

Definition at line 363 of file atmel.c.

#define PROM_MODE_MGMT   0x8

Definition at line 364 of file atmel.c.

#define PROM_MODE_OFF   0x0

Definition at line 360 of file atmel.c.

#define PROM_MODE_UNKNOWN   0x1

Definition at line 361 of file atmel.c.

#define PS_MODE   2

Definition at line 325 of file atmel.c.

#define REG_DOMAIN_DOC   0x20 /* Channel 1-11 Canada */

Definition at line 339 of file atmel.c.

#define REG_DOMAIN_ETSI   0x30 /* Channel 1-13 Europe (ex Spain/France) */

Definition at line 340 of file atmel.c.

#define REG_DOMAIN_FCC   0x10 /* Channels 1-11 USA */

Definition at line 338 of file atmel.c.

#define REG_DOMAIN_FRANCE   0x32 /* Channel 10-13 France */

Definition at line 342 of file atmel.c.

#define REG_DOMAIN_ISRAEL   0x50 /* Channel 3-9 ISRAEL */

Definition at line 345 of file atmel.c.

#define REG_DOMAIN_MKK   0x40 /* Channel 14 Japan */

Definition at line 343 of file atmel.c.

#define REG_DOMAIN_MKK1   0x41 /* Channel 1-14 Japan(MKK1) */

Definition at line 344 of file atmel.c.

#define REG_DOMAIN_SPAIN   0x31 /* Channel 10-11 Spain */

Definition at line 341 of file atmel.c.

#define REGDOMAINSZ   20

Definition at line 2619 of file atmel.c.

#define RX_DESC_DURATION_OFFSET   14

Definition at line 194 of file atmel.c.

#define RX_DESC_FLAG_CONSUMED   0x40

Definition at line 182 of file atmel.c.

#define RX_DESC_FLAG_IDLE   0x00

Definition at line 183 of file atmel.c.

#define RX_DESC_FLAG_VALID   0x80

Definition at line 181 of file atmel.c.

#define RX_DESC_FLAGS_OFFSET   8

Definition at line 189 of file atmel.c.

#define RX_DESC_LINK_QUALITY_OFFSET   12

Definition at line 192 of file atmel.c.

#define RX_DESC_MSDU_POS_OFFSET   4

Definition at line 187 of file atmel.c.

#define RX_DESC_MSDU_SIZE_OFFSET   6

Definition at line 188 of file atmel.c.

#define RX_DESC_PREAMBLE_TYPE_OFFSET   13

Definition at line 193 of file atmel.c.

#define RX_DESC_RSSI_OFFSET   11

Definition at line 191 of file atmel.c.

#define RX_DESC_RX_TIME_OFFSET   16

Definition at line 195 of file atmel.c.

#define RX_DESC_STATUS_OFFSET   9

Definition at line 190 of file atmel.c.

#define RX_STATUS_SUCCESS   0x00

Definition at line 185 of file atmel.c.

#define SCAN_OPTIONS_SITE_SURVEY   0x80

Definition at line 313 of file atmel.c.

#define SCAN_TYPE_ACTIVE   0

Definition at line 350 of file atmel.c.

#define SCAN_TYPE_PASSIVE   1

Definition at line 351 of file atmel.c.

#define SHORT_PREAMBLE   1

Definition at line 354 of file atmel.c.

#define Statistics_Mib_Type   0x04

Definition at line 258 of file atmel.c.

#define TX_DESC_CIPHER_LENGTH_OFFSET   14

Definition at line 227 of file atmel.c.

#define TX_DESC_CIPHER_TYPE_OFFSET   13

Definition at line 226 of file atmel.c.

#define TX_DESC_FLAGS_OFFSET   8

Definition at line 221 of file atmel.c.

#define TX_DESC_HOST_LENGTH_OFFSET   18

Definition at line 229 of file atmel.c.

#define TX_DESC_KEY_INDEX_OFFSET   12

Definition at line 225 of file atmel.c.

#define TX_DESC_NEXT_OFFSET   0

Definition at line 218 of file atmel.c.

#define TX_DESC_PACKET_TYPE_OFFSET   17

Definition at line 228 of file atmel.c.

#define TX_DESC_POS_OFFSET   4

Definition at line 219 of file atmel.c.

#define TX_DESC_RATE_OFFSET   11

Definition at line 224 of file atmel.c.

#define TX_DESC_RETRY_OFFSET   10

Definition at line 223 of file atmel.c.

#define TX_DESC_SIZE_OFFSET   6

Definition at line 220 of file atmel.c.

#define TX_DESC_STATUS_OFFSET   9

Definition at line 222 of file atmel.c.

#define TX_DONE   0x40

Definition at line 238 of file atmel.c.

#define TX_ERROR   0x01

Definition at line 240 of file atmel.c.

#define TX_FIRM_OWN   0x80

Definition at line 237 of file atmel.c.

#define TX_PACKET_TYPE_DATA   0x01

Definition at line 242 of file atmel.c.

#define TX_PACKET_TYPE_MGMT   0x02

Definition at line 243 of file atmel.c.

#define TX_STATUS_SUCCESS   0x00

Definition at line 235 of file atmel.c.

Typedef Documentation

Function Documentation

int atmel_open ( struct net_device dev)

Definition at line 1317 of file atmel.c.

EXPORT_SYMBOL ( atmel_open  )
EXPORT_SYMBOL ( init_atmel_card  )
EXPORT_SYMBOL ( stop_atmel_card  )
struct net_device* init_atmel_card ( unsigned short  irq,
unsigned long  port,
const AtmelFWType  fw_type,
struct device sys_dev,
int(*)(void *)  card_present,
void card 
)
read

Definition at line 1523 of file atmel.c.

MODULE_AUTHOR ( "Simon Kelley"  )
MODULE_DESCRIPTION ( "Support for Atmel at76c50x 802.11 wireless ethernet cards."  )
MODULE_FIRMWARE ( "atmel_at76c502-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c502.bin"  )
MODULE_FIRMWARE ( "atmel_at76c502d-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c502d.bin"  )
MODULE_FIRMWARE ( "atmel_at76c502e-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c502e.bin"  )
MODULE_FIRMWARE ( "atmel_at76c502_3com-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c502_3com.bin"  )
MODULE_FIRMWARE ( "atmel_at76c504-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c504.bin"  )
MODULE_FIRMWARE ( "atmel_at76c504_2958-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c504_2958.bin"  )
MODULE_FIRMWARE ( "atmel_at76c504a_2958-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c504a_2958.bin"  )
MODULE_FIRMWARE ( "atmel_at76c506-wpa.bin"  )
MODULE_FIRMWARE ( "atmel_at76c506.bin"  )
MODULE_LICENSE ( "GPL"  )
module_param ( firmware  ,
charp  ,
 
)
MODULE_SUPPORTED_DEVICE ( "Atmel at76c50x wireless cards )
void stop_atmel_card ( struct net_device dev)

Definition at line 1653 of file atmel.c.

Variable Documentation

const char* fw_file

Definition at line 89 of file atmel.c.

const char* fw_file_ext

Definition at line 90 of file atmel.c.

AtmelFWType fw_type

Definition at line 88 of file atmel.c.

int max

Definition at line 564 of file atmel.c.

int min

Definition at line 564 of file atmel.c.

char* name

Definition at line 565 of file atmel.c.

Definition at line 563 of file atmel.c.