Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
hfa384x_usb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/wireless.h>
#include <linux/netdevice.h>
#include <linux/timer.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <asm/byteorder.h>
#include <linux/bitops.h>
#include <linux/list.h>
#include <linux/usb.h>
#include <linux/byteorder/generic.h>
#include "p80211types.h"
#include "p80211hdr.h"
#include "p80211mgmt.h"
#include "p80211conv.h"
#include "p80211msg.h"
#include "p80211netdev.h"
#include "p80211req.h"
#include "p80211metadef.h"
#include "p80211metastruct.h"
#include "hfa384x.h"
#include "prism2mgmt.h"

Go to the source code of this file.

Data Structures

struct  usbctlx_completor
 
struct  usbctlx_cmd_completor
 
struct  usbctlx_rrid_completor
 
struct  usbctlx_rmem_completor
 

Macros

#define SUBMIT_URB(u, f)   usb_submit_urb(u, f)
 
#define THROTTLE_JIFFIES   (HZ/8)
 
#define URB_ASYNC_UNLINK   0
 
#define USB_QUEUE_BULK   0
 
#define ROUNDUP64(a)   (((a)+63)&~63)
 
#define init_wrid_completor   init_cmd_completor
 
#define init_wmem_completor   init_cmd_completor
 

Typedefs

typedef struct
usbctlx_cmd_completor 
usbctlx_wrid_completor_t
 
typedef struct
usbctlx_cmd_completor 
usbctlx_wmem_completor_t
 
typedef struct
usbctlx_rmem_completor 
usbctlx_rmem_completor_t
 

Enumerations

enum  cmd_mode { DOWAIT = 0, DOASYNC }
 

Functions

void hfa384x_create (hfa384x_t *hw, struct usb_device *usb)
 
void hfa384x_destroy (hfa384x_t *hw)
 
int hfa384x_cmd_initialize (hfa384x_t *hw)
 
int hfa384x_cmd_disable (hfa384x_t *hw, u16 macport)
 
int hfa384x_cmd_enable (hfa384x_t *hw, u16 macport)
 
int hfa384x_cmd_monitor (hfa384x_t *hw, u16 enable)
 
int hfa384x_cmd_download (hfa384x_t *hw, u16 mode, u16 lowaddr, u16 highaddr, u16 codelen)
 
int hfa384x_corereset (hfa384x_t *hw, int holdtime, int settletime, int genesis)
 
int hfa384x_drvr_commtallies (hfa384x_t *hw)
 
int hfa384x_drvr_disable (hfa384x_t *hw, u16 macport)
 
int hfa384x_drvr_enable (hfa384x_t *hw, u16 macport)
 
int hfa384x_drvr_flashdl_enable (hfa384x_t *hw)
 
int hfa384x_drvr_flashdl_disable (hfa384x_t *hw)
 
int hfa384x_drvr_flashdl_write (hfa384x_t *hw, u32 daddr, void *buf, u32 len)
 
int hfa384x_drvr_getconfig (hfa384x_t *hw, u16 rid, void *buf, u16 len)
 
int hfa384x_drvr_getconfig_async (hfa384x_t *hw, u16 rid, ctlx_usercb_t usercb, void *usercb_data)
 
int hfa384x_drvr_setconfig_async (hfa384x_t *hw, u16 rid, void *buf, u16 len, ctlx_usercb_t usercb, void *usercb_data)
 
int hfa384x_drvr_ramdl_disable (hfa384x_t *hw)
 
int hfa384x_drvr_ramdl_enable (hfa384x_t *hw, u32 exeaddr)
 
int hfa384x_drvr_ramdl_write (hfa384x_t *hw, u32 daddr, void *buf, u32 len)
 
int hfa384x_drvr_readpda (hfa384x_t *hw, void *buf, unsigned int len)
 
int hfa384x_drvr_setconfig (hfa384x_t *hw, u16 rid, void *buf, u16 len)
 
int hfa384x_drvr_start (hfa384x_t *hw)
 
int hfa384x_drvr_stop (hfa384x_t *hw)
 
int hfa384x_drvr_txframe (hfa384x_t *hw, struct sk_buff *skb, union p80211_hdr *p80211_hdr, struct p80211_metawep *p80211_wep)
 
void hfa384x_tx_timeout (wlandevice_t *wlandev)
 

Macro Definition Documentation

#define init_wmem_completor   init_cmd_completor

Definition at line 756 of file hfa384x_usb.c.

#define init_wrid_completor   init_cmd_completor

Definition at line 749 of file hfa384x_usb.c.

#define ROUNDUP64 (   a)    (((a)+63)&~63)

Definition at line 152 of file hfa384x_usb.c.

#define SUBMIT_URB (   u,
  f 
)    usb_submit_urb(u, f)

Definition at line 129 of file hfa384x_usb.c.

#define THROTTLE_JIFFIES   (HZ/8)

Definition at line 148 of file hfa384x_usb.c.

#define URB_ASYNC_UNLINK   0

Definition at line 149 of file hfa384x_usb.c.

#define USB_QUEUE_BULK   0

Definition at line 150 of file hfa384x_usb.c.

Typedef Documentation

Definition at line 769 of file hfa384x_usb.c.

Definition at line 755 of file hfa384x_usb.c.

Definition at line 748 of file hfa384x_usb.c.

Enumeration Type Documentation

enum cmd_mode
Enumerator:
DOWAIT 
DOASYNC 

Definition at line 143 of file hfa384x_usb.c.

Function Documentation

int hfa384x_cmd_disable ( hfa384x_t *  hw,
u16  macport 
)

Definition at line 1029 of file hfa384x_usb.c.

int hfa384x_cmd_download ( hfa384x_t *  hw,
u16  mode,
u16  lowaddr,
u16  highaddr,
u16  codelen 
)

Definition at line 1164 of file hfa384x_usb.c.

int hfa384x_cmd_enable ( hfa384x_t *  hw,
u16  macport 
)

Definition at line 1065 of file hfa384x_usb.c.

int hfa384x_cmd_initialize ( hfa384x_t *  hw)

Definition at line 981 of file hfa384x_usb.c.

int hfa384x_cmd_monitor ( hfa384x_t *  hw,
u16  enable 
)

Definition at line 1110 of file hfa384x_usb.c.

int hfa384x_corereset ( hfa384x_t *  hw,
int  holdtime,
int  settletime,
int  genesis 
)

Definition at line 1208 of file hfa384x_usb.c.

void hfa384x_create ( hfa384x_t *  hw,
struct usb_device *  usb 
)

Definition at line 531 of file hfa384x_usb.c.

void hfa384x_destroy ( hfa384x_t *  hw)

Definition at line 607 of file hfa384x_usb.c.

int hfa384x_drvr_commtallies ( hfa384x_t *  hw)

Definition at line 1783 of file hfa384x_usb.c.

int hfa384x_drvr_disable ( hfa384x_t *  hw,
u16  macport 
)

Definition at line 1819 of file hfa384x_usb.c.

int hfa384x_drvr_enable ( hfa384x_t *  hw,
u16  macport 
)

Definition at line 1857 of file hfa384x_usb.c.

int hfa384x_drvr_flashdl_disable ( hfa384x_t *  hw)

Definition at line 1953 of file hfa384x_usb.c.

int hfa384x_drvr_flashdl_enable ( hfa384x_t *  hw)

Definition at line 1894 of file hfa384x_usb.c.

int hfa384x_drvr_flashdl_write ( hfa384x_t *  hw,
u32  daddr,
void buf,
u32  len 
)

Definition at line 1998 of file hfa384x_usb.c.

int hfa384x_drvr_getconfig ( hfa384x_t *  hw,
u16  rid,
void buf,
u16  len 
)

Definition at line 2141 of file hfa384x_usb.c.

int hfa384x_drvr_getconfig_async ( hfa384x_t *  hw,
u16  rid,
ctlx_usercb_t  usercb,
void usercb_data 
)

Definition at line 2174 of file hfa384x_usb.c.

int hfa384x_drvr_ramdl_disable ( hfa384x_t *  hw)

Definition at line 2232 of file hfa384x_usb.c.

int hfa384x_drvr_ramdl_enable ( hfa384x_t *  hw,
u32  exeaddr 
)

Definition at line 2272 of file hfa384x_usb.c.

int hfa384x_drvr_ramdl_write ( hfa384x_t *  hw,
u32  daddr,
void buf,
u32  len 
)

Definition at line 2340 of file hfa384x_usb.c.

int hfa384x_drvr_readpda ( hfa384x_t *  hw,
void buf,
unsigned int  len 
)

Definition at line 2419 of file hfa384x_usb.c.

int hfa384x_drvr_setconfig ( hfa384x_t *  hw,
u16  rid,
void buf,
u16  len 
)

Definition at line 2527 of file hfa384x_usb.c.

int hfa384x_drvr_setconfig_async ( hfa384x_t *  hw,
u16  rid,
void buf,
u16  len,
ctlx_usercb_t  usercb,
void usercb_data 
)

Definition at line 2205 of file hfa384x_usb.c.

int hfa384x_drvr_start ( hfa384x_t *  hw)

Definition at line 2552 of file hfa384x_usb.c.

int hfa384x_drvr_stop ( hfa384x_t *  hw)

Definition at line 2651 of file hfa384x_usb.c.

int hfa384x_drvr_txframe ( hfa384x_t *  hw,
struct sk_buff skb,
union p80211_hdr p80211_hdr,
struct p80211_metawep p80211_wep 
)

Definition at line 2702 of file hfa384x_usb.c.

void hfa384x_tx_timeout ( wlandevice_t wlandev)

Definition at line 2795 of file hfa384x_usb.c.