Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
if_cs.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/moduleparam.h>
#include <linux/firmware.h>
#include <linux/netdevice.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/ds.h>
#include <linux/io.h>
#include "decl.h"
#include "defs.h"
#include "dev.h"

Go to the source code of this file.

Data Structures

struct  if_cs_card
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "libertas_cs"
 
#define debug_output   0
 
#define IF_CS_BIT_TX   0x0001
 
#define IF_CS_BIT_RX   0x0002
 
#define IF_CS_BIT_COMMAND   0x0004
 
#define IF_CS_BIT_RESP   0x0008
 
#define IF_CS_BIT_EVENT   0x0010
 
#define IF_CS_BIT_MASK   0x001f
 
#define IF_CS_HOST_STATUS   0x00000000
 
#define IF_CS_HOST_INT_CAUSE   0x00000002
 
#define IF_CS_HOST_INT_MASK   0x00000004
 
#define IF_CS_WRITE   0x00000016
 
#define IF_CS_WRITE_LEN   0x00000014
 
#define IF_CS_READ   0x00000010
 
#define IF_CS_READ_LEN   0x00000024
 
#define IF_CS_CMD   0x0000001A
 
#define IF_CS_CMD_LEN   0x00000018
 
#define IF_CS_RESP   0x00000012
 
#define IF_CS_RESP_LEN   0x00000030
 
#define IF_CS_CARD_STATUS   0x00000020
 
#define IF_CS_CARD_STATUS_MASK   0x7f00
 
#define IF_CS_CARD_INT_CAUSE   0x00000022
 
#define IF_CS_SQ_READ_LOW   0x00000028
 
#define IF_CS_SQ_HELPER_OK   0x10
 
#define IF_CS_SCRATCH   0x0000003F
 
#define IF_CS_SCRATCH_BOOT_OK   0x00
 
#define IF_CS_SCRATCH_HELPER_OK   0x5a
 
#define IF_CS_PRODUCT_ID   0x0000001C
 
#define IF_CS_CF8385_B1_REV   0x12
 
#define IF_CS_CF8381_B3_REV   0x04
 
#define IF_CS_CF8305_B1_REV   0x03
 
#define CF8305_MANFID   0x02db
 
#define CF8305_CARDID   0x8103
 
#define CF8381_MANFID   0x02db
 
#define CF8381_CARDID   0x6064
 
#define CF8385_MANFID   0x02df
 
#define CF8385_CARDID   0x8103
 

Enumerations

enum  { MODEL_UNKNOWN = 0x00, MODEL_8305 = 0x01, MODEL_8381 = 0x02, MODEL_8385 = 0x03 }
 

Functions

 MODULE_AUTHOR ("Holger Schurig <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for Marvell 83xx compact flash WLAN cards")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("libertas/cf8305.bin")
 
 MODULE_FIRMWARE ("libertas/cf8381_helper.bin")
 
 MODULE_FIRMWARE ("libertas/cf8381.bin")
 
 MODULE_FIRMWARE ("libertas/cf8385_helper.bin")
 
 MODULE_FIRMWARE ("libertas/cf8385.bin")
 
 MODULE_FIRMWARE ("libertas_cs_helper.fw")
 
 MODULE_FIRMWARE ("libertas_cs.fw")
 
 MODULE_DEVICE_TABLE (pcmcia, if_cs_ids)
 
 module_init (if_cs_init)
 
 module_exit (if_cs_exit)
 

Macro Definition Documentation

#define CF8305_CARDID   0x8103

Definition at line 311 of file if_cs.c.

#define CF8305_MANFID   0x02db

Definition at line 310 of file if_cs.c.

#define CF8381_CARDID   0x6064

Definition at line 313 of file if_cs.c.

#define CF8381_MANFID   0x02db

Definition at line 312 of file if_cs.c.

#define CF8385_CARDID   0x8103

Definition at line 315 of file if_cs.c.

#define CF8385_MANFID   0x02df

Definition at line 314 of file if_cs.c.

#define debug_output   0

Definition at line 106 of file if_cs.c.

#define DRV_NAME   "libertas_cs"

Definition at line 38 of file if_cs.c.

#define IF_CS_BIT_COMMAND   0x0004

Definition at line 194 of file if_cs.c.

#define IF_CS_BIT_EVENT   0x0010

Definition at line 196 of file if_cs.c.

#define IF_CS_BIT_MASK   0x001f

Definition at line 197 of file if_cs.c.

#define IF_CS_BIT_RESP   0x0008

Definition at line 195 of file if_cs.c.

#define IF_CS_BIT_RX   0x0002

Definition at line 193 of file if_cs.c.

#define IF_CS_BIT_TX   0x0001

Definition at line 192 of file if_cs.c.

#define IF_CS_CARD_INT_CAUSE   0x00000022

Definition at line 279 of file if_cs.c.

#define IF_CS_CARD_STATUS   0x00000020

Definition at line 266 of file if_cs.c.

#define IF_CS_CARD_STATUS_MASK   0x7f00

Definition at line 267 of file if_cs.c.

#define IF_CS_CF8305_B1_REV   0x03

Definition at line 304 of file if_cs.c.

#define IF_CS_CF8381_B3_REV   0x04

Definition at line 303 of file if_cs.c.

#define IF_CS_CF8385_B1_REV   0x12

Definition at line 302 of file if_cs.c.

#define IF_CS_CMD   0x0000001A

Definition at line 244 of file if_cs.c.

#define IF_CS_CMD_LEN   0x00000018

Definition at line 245 of file if_cs.c.

#define IF_CS_HOST_INT_CAUSE   0x00000002

Definition at line 224 of file if_cs.c.

#define IF_CS_HOST_INT_MASK   0x00000004

Definition at line 230 of file if_cs.c.

#define IF_CS_HOST_STATUS   0x00000000

Definition at line 212 of file if_cs.c.

#define IF_CS_PRODUCT_ID   0x0000001C

Definition at line 301 of file if_cs.c.

#define IF_CS_READ   0x00000010

Definition at line 237 of file if_cs.c.

#define IF_CS_READ_LEN   0x00000024

Definition at line 238 of file if_cs.c.

#define IF_CS_RESP   0x00000012

Definition at line 246 of file if_cs.c.

#define IF_CS_RESP_LEN   0x00000030

Definition at line 247 of file if_cs.c.

#define IF_CS_SCRATCH   0x0000003F

Definition at line 294 of file if_cs.c.

#define IF_CS_SCRATCH_BOOT_OK   0x00

Definition at line 295 of file if_cs.c.

#define IF_CS_SCRATCH_HELPER_OK   0x5a

Definition at line 296 of file if_cs.c.

#define IF_CS_SQ_HELPER_OK   0x10

Definition at line 286 of file if_cs.c.

#define IF_CS_SQ_READ_LOW   0x00000028

Definition at line 285 of file if_cs.c.

#define IF_CS_WRITE   0x00000016

Definition at line 235 of file if_cs.c.

#define IF_CS_WRITE_LEN   0x00000014

Definition at line 236 of file if_cs.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 24 of file if_cs.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
MODEL_UNKNOWN 
MODEL_8305 
MODEL_8381 
MODEL_8385 

Definition at line 68 of file if_cs.c.

Function Documentation

MODULE_AUTHOR ( "Holger Schurig <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Marvell 83xx compact flash WLAN cards"  )
MODULE_DEVICE_TABLE ( pcmcia  ,
if_cs_ids   
)
module_exit ( if_cs_exit  )
MODULE_FIRMWARE ( "libertas/cf8305.bin"  )
MODULE_FIRMWARE ( "libertas/cf8381_helper.bin"  )
MODULE_FIRMWARE ( "libertas/cf8381.bin"  )
MODULE_FIRMWARE ( "libertas/cf8385_helper.bin"  )
MODULE_FIRMWARE ( "libertas/cf8385.bin"  )
MODULE_FIRMWARE ( "libertas_cs_helper.fw"  )
MODULE_FIRMWARE ( "libertas_cs.fw"  )
module_init ( if_cs_init  )
MODULE_LICENSE ( "GPL"  )