Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
wl_netdev.c File Reference
#include <wl_version.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include <linux/etherdevice.h>
#include <debug.h>
#include <hcf.h>
#include <dhf.h>
#include <wl_if.h>
#include <wl_internal.h>
#include <wl_util.h>
#include <wl_priv.h>
#include <wl_main.h>
#include <wl_netdev.h>
#include <wl_wext.h>

Go to the source code of this file.

Macros

#define MTU_MAX   (HCF_MAX_MSG - ETH_HLEN - 8)
 
#define BLOCK_INPUT(buf, len)
 
#define BLOCK_INPUT_DMA(buf, len)   memcpy( buf, desc_next->buf_addr, pktlen )
 

Functions

int wl_init (struct net_device *dev)
 
int wl_config (struct net_device *dev, struct ifmap *map)
 
struct net_device_statswl_stats (struct net_device *dev)
 
int wl_open (struct net_device *dev)
 
int wl_close (struct net_device *dev)
 
int wl_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
 
void wl_tx_timeout (struct net_device *dev)
 
int wl_send (struct wl_private *lp)
 
int wl_tx (struct sk_buff *skb, struct net_device *dev, int port)
 
int wl_rx (struct net_device *dev)
 
void wl_multicast (struct net_device *dev, int num_addrs, void *addrs)
 
struct net_devicewl_device_alloc (void)
 
void wl_device_dealloc (struct net_device *dev)
 
int wl_tx_port0 (struct sk_buff *skb, struct net_device *dev)
 

Macro Definition Documentation

#define BLOCK_INPUT (   buf,
  len 
)
Value:
desc->buf_addr = buf; \
desc->BUF_SIZE = len; \
status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0)

Definition at line 139 of file wl_netdev.c.

#define BLOCK_INPUT_DMA (   buf,
  len 
)    memcpy( buf, desc_next->buf_addr, pktlen )

Definition at line 144 of file wl_netdev.c.

#define MTU_MAX   (HCF_MAX_MSG - ETH_HLEN - 8)

Definition at line 127 of file wl_netdev.c.

Function Documentation

int wl_close ( struct net_device dev)

Definition at line 410 of file wl_netdev.c.

int wl_config ( struct net_device dev,
struct ifmap map 
)

Definition at line 209 of file wl_netdev.c.

struct net_device* wl_device_alloc ( void  )
read

Definition at line 1212 of file wl_netdev.c.

void wl_device_dealloc ( struct net_device dev)

Definition at line 1279 of file wl_netdev.c.

int wl_init ( struct net_device dev)

Definition at line 169 of file wl_netdev.c.

int wl_ioctl ( struct net_device dev,
struct ifreq rq,
int  cmd 
)

Definition at line 502 of file wl_netdev.c.

void wl_multicast ( struct net_device dev,
int  num_addrs,
void addrs 
)

Definition at line 1156 of file wl_netdev.c.

int wl_open ( struct net_device dev)

Definition at line 313 of file wl_netdev.c.

int wl_rx ( struct net_device dev)

Definition at line 887 of file wl_netdev.c.

int wl_send ( struct wl_private lp)

Definition at line 676 of file wl_netdev.c.

struct net_device_stats* wl_stats ( struct net_device dev)
read

Definition at line 244 of file wl_netdev.c.

int wl_tx ( struct sk_buff skb,
struct net_device dev,
int  port 
)

Definition at line 796 of file wl_netdev.c.

int wl_tx_port0 ( struct sk_buff skb,
struct net_device dev 
)

Definition at line 1314 of file wl_netdev.c.

void wl_tx_timeout ( struct net_device dev)

Definition at line 601 of file wl_netdev.c.