Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hif_usb.h File Reference

Go to the source code of this file.

Data Structures

struct  tx_buf
 
struct  hif_usb_tx
 
struct  cmd_buf
 
struct  hif_device_usb
 

Macros

#define MAJOR_VERSION_REQ   1
 
#define MINOR_VERSION_REQ   3
 
#define IS_AR7010_DEVICE(_v)   (((_v) == AR9280_USB) || ((_v) == AR9287_USB))
 
#define AR9271_FIRMWARE   0x501000
 
#define AR9271_FIRMWARE_TEXT   0x903000
 
#define AR7010_FIRMWARE_TEXT   0x906000
 
#define FIRMWARE_DOWNLOAD   0x30
 
#define FIRMWARE_DOWNLOAD_COMP   0x31
 
#define ATH_USB_RX_STREAM_MODE_TAG   0x4e00
 
#define ATH_USB_TX_STREAM_MODE_TAG   0x697e
 
#define MAX_TX_URB_NUM   8
 
#define MAX_TX_BUF_NUM   256
 
#define MAX_TX_BUF_SIZE   32768
 
#define MAX_TX_AGGR_NUM   20
 
#define MAX_RX_URB_NUM   8
 
#define MAX_RX_BUF_SIZE   16384
 
#define MAX_PKT_NUM_IN_TRANSFER   10
 
#define MAX_REG_OUT_URB_NUM   1
 
#define MAX_REG_IN_URB_NUM   64
 
#define MAX_REG_IN_BUF_SIZE   64
 
#define USB_WLAN_TX_PIPE   1
 
#define USB_WLAN_RX_PIPE   2
 
#define USB_REG_IN_PIPE   3
 
#define USB_REG_OUT_PIPE   4
 
#define HIF_USB_MAX_RXPIPES   2
 
#define HIF_USB_MAX_TXPIPES   4
 
#define HIF_USB_TX_STOP   BIT(0)
 
#define HIF_USB_TX_FLUSH   BIT(1)
 
#define HIF_USB_START   BIT(0)
 
#define HIF_USB_READY   BIT(1)
 

Functions

int ath9k_hif_usb_init (void)
 
void ath9k_hif_usb_exit (void)
 

Macro Definition Documentation

#define AR7010_FIRMWARE_TEXT   0x906000

Definition at line 27 of file hif_usb.h.

#define AR9271_FIRMWARE   0x501000

Definition at line 25 of file hif_usb.h.

#define AR9271_FIRMWARE_TEXT   0x903000

Definition at line 26 of file hif_usb.h.

#define ATH_USB_RX_STREAM_MODE_TAG   0x4e00

Definition at line 32 of file hif_usb.h.

#define ATH_USB_TX_STREAM_MODE_TAG   0x697e

Definition at line 33 of file hif_usb.h.

#define FIRMWARE_DOWNLOAD   0x30

Definition at line 29 of file hif_usb.h.

#define FIRMWARE_DOWNLOAD_COMP   0x31

Definition at line 30 of file hif_usb.h.

#define HIF_USB_MAX_RXPIPES   2

Definition at line 56 of file hif_usb.h.

#define HIF_USB_MAX_TXPIPES   4

Definition at line 57 of file hif_usb.h.

#define HIF_USB_READY   BIT(1)

Definition at line 88 of file hif_usb.h.

#define HIF_USB_START   BIT(0)

Definition at line 87 of file hif_usb.h.

#define HIF_USB_TX_FLUSH   BIT(1)

Definition at line 70 of file hif_usb.h.

#define HIF_USB_TX_STOP   BIT(0)

Definition at line 69 of file hif_usb.h.

#define IS_AR7010_DEVICE (   _v)    (((_v) == AR9280_USB) || ((_v) == AR9287_USB))

Definition at line 23 of file hif_usb.h.

#define MAJOR_VERSION_REQ   1

Definition at line 20 of file hif_usb.h.

#define MAX_PKT_NUM_IN_TRANSFER   10

Definition at line 43 of file hif_usb.h.

#define MAX_REG_IN_BUF_SIZE   64

Definition at line 48 of file hif_usb.h.

#define MAX_REG_IN_URB_NUM   64

Definition at line 46 of file hif_usb.h.

#define MAX_REG_OUT_URB_NUM   1

Definition at line 45 of file hif_usb.h.

#define MAX_RX_BUF_SIZE   16384

Definition at line 42 of file hif_usb.h.

#define MAX_RX_URB_NUM   8

Definition at line 41 of file hif_usb.h.

#define MAX_TX_AGGR_NUM   20

Definition at line 39 of file hif_usb.h.

#define MAX_TX_BUF_NUM   256

Definition at line 37 of file hif_usb.h.

#define MAX_TX_BUF_SIZE   32768

Definition at line 38 of file hif_usb.h.

#define MAX_TX_URB_NUM   8

Definition at line 36 of file hif_usb.h.

#define MINOR_VERSION_REQ   3

Definition at line 21 of file hif_usb.h.

#define USB_REG_IN_PIPE   3

Definition at line 53 of file hif_usb.h.

#define USB_REG_OUT_PIPE   4

Definition at line 54 of file hif_usb.h.

#define USB_WLAN_RX_PIPE   2

Definition at line 52 of file hif_usb.h.

#define USB_WLAN_TX_PIPE   1

Definition at line 51 of file hif_usb.h.

Function Documentation

void ath9k_hif_usb_exit ( void  )

Definition at line 1382 of file hif_usb.c.

int ath9k_hif_usb_init ( void  )

Definition at line 1377 of file hif_usb.c.