Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ath3k.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/usb.h>
#include <net/bluetooth/bluetooth.h>

Go to the source code of this file.

Data Structures

struct  ath3k_version
 

Macros

#define VERSION   "1.0"
 
#define ATH3K_FIRMWARE   "ath3k-1.fw"
 
#define ATH3K_DNLOAD   0x01
 
#define ATH3K_GETSTATE   0x05
 
#define ATH3K_SET_NORMAL_MODE   0x07
 
#define ATH3K_GETVERSION   0x09
 
#define USB_REG_SWITCH_VID_PID   0x0a
 
#define ATH3K_MODE_MASK   0x3F
 
#define ATH3K_NORMAL_MODE   0x0E
 
#define ATH3K_PATCH_UPDATE   0x80
 
#define ATH3K_SYSCFG_UPDATE   0x40
 
#define ATH3K_XTAL_FREQ_26M   0x00
 
#define ATH3K_XTAL_FREQ_40M   0x01
 
#define ATH3K_XTAL_FREQ_19P2   0x02
 
#define ATH3K_NAME_LEN   0xFF
 
#define BTUSB_ATH3012   0x80
 
#define USB_REQ_DFU_DNLOAD   1
 
#define BULK_SIZE   4096
 
#define FW_HDR_SIZE   20
 

Functions

 MODULE_DEVICE_TABLE (usb, ath3k_table)
 
 module_usb_driver (ath3k_driver)
 
 MODULE_AUTHOR ("Atheros Communications")
 
 MODULE_DESCRIPTION ("Atheros AR30xx firmware driver")
 
 MODULE_VERSION (VERSION)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE (ATH3K_FIRMWARE)
 

Macro Definition Documentation

#define ATH3K_DNLOAD   0x01

Definition at line 35 of file ath3k.c.

#define ATH3K_FIRMWARE   "ath3k-1.fw"

Definition at line 33 of file ath3k.c.

#define ATH3K_GETSTATE   0x05

Definition at line 36 of file ath3k.c.

#define ATH3K_GETVERSION   0x09

Definition at line 38 of file ath3k.c.

#define ATH3K_MODE_MASK   0x3F

Definition at line 41 of file ath3k.c.

#define ATH3K_NAME_LEN   0xFF

Definition at line 50 of file ath3k.c.

#define ATH3K_NORMAL_MODE   0x0E

Definition at line 42 of file ath3k.c.

#define ATH3K_PATCH_UPDATE   0x80

Definition at line 44 of file ath3k.c.

#define ATH3K_SET_NORMAL_MODE   0x07

Definition at line 37 of file ath3k.c.

#define ATH3K_SYSCFG_UPDATE   0x40

Definition at line 45 of file ath3k.c.

#define ATH3K_XTAL_FREQ_19P2   0x02

Definition at line 49 of file ath3k.c.

#define ATH3K_XTAL_FREQ_26M   0x00

Definition at line 47 of file ath3k.c.

#define ATH3K_XTAL_FREQ_40M   0x01

Definition at line 48 of file ath3k.c.

#define BTUSB_ATH3012   0x80

Definition at line 97 of file ath3k.c.

#define BULK_SIZE   4096

Definition at line 120 of file ath3k.c.

#define FW_HDR_SIZE   20

Definition at line 121 of file ath3k.c.

#define USB_REG_SWITCH_VID_PID   0x0a

Definition at line 39 of file ath3k.c.

#define USB_REQ_DFU_DNLOAD   1

Definition at line 119 of file ath3k.c.

#define VERSION   "1.0"

Definition at line 32 of file ath3k.c.

Function Documentation

MODULE_AUTHOR ( "Atheros Communications"  )
MODULE_DESCRIPTION ( "Atheros AR30xx firmware driver )
MODULE_DEVICE_TABLE ( usb  ,
ath3k_table   
)
MODULE_FIRMWARE ( ATH3K_FIRMWARE  )
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( ath3k_driver  )
MODULE_VERSION ( VERSION  )