Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
main.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/etherdevice.h>
#include <linux/hardirq.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/kthread.h>
#include <linux/kfifo.h>
#include <linux/slab.h>
#include <net/cfg80211.h>
#include "host.h"
#include "decl.h"
#include "dev.h"
#include "cfg.h"
#include "debugfs.h"
#include "cmd.h"
#include "mesh.h"

Go to the source code of this file.


#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
#define DRIVER_RELEASE_VERSION   "323.p0"


 EXPORT_SYMBOL_GPL (lbs_debug)
 module_param_named (libertas_debug, lbs_debug, int, 0644)
 EXPORT_SYMBOL_GPL (lbs_disablemesh)
 module_param_named (libertas_disablemesh, lbs_disablemesh, int, 0644)
u32 lbs_fw_index_to_data_rate (u8 idx)
u8 lbs_data_rate_to_fw_index (u32 rate)
int lbs_set_iface_type (struct lbs_private *priv, enum nl80211_iftype type)
int lbs_start_iface (struct lbs_private *priv)
int lbs_stop_iface (struct lbs_private *priv)
void lbs_host_to_card_done (struct lbs_private *priv)
 EXPORT_SYMBOL_GPL (lbs_host_to_card_done)
int lbs_set_mac_address (struct net_device *dev, void *addr)
void lbs_update_mcast (struct lbs_private *priv)
void lbs_set_multicast_list (struct net_device *dev)
int lbs_suspend (struct lbs_private *priv)
 EXPORT_SYMBOL_GPL (lbs_suspend)
int lbs_resume (struct lbs_private *priv)
 EXPORT_SYMBOL_GPL (lbs_resume)
int lbs_enter_auto_deep_sleep (struct lbs_private *priv)
int lbs_exit_auto_deep_sleep (struct lbs_private *priv)
struct lbs_privatelbs_add_card (void *card, struct device *dmdev)
 EXPORT_SYMBOL_GPL (lbs_add_card)
void lbs_remove_card (struct lbs_private *priv)
 EXPORT_SYMBOL_GPL (lbs_remove_card)
int lbs_rtap_supported (struct lbs_private *priv)
int lbs_start_card (struct lbs_private *priv)
 EXPORT_SYMBOL_GPL (lbs_start_card)
void lbs_stop_card (struct lbs_private *priv)
 EXPORT_SYMBOL_GPL (lbs_stop_card)
void lbs_queue_event (struct lbs_private *priv, u32 event)
 EXPORT_SYMBOL_GPL (lbs_queue_event)
void lbs_notify_command_response (struct lbs_private *priv, u8 resp_idx)
 EXPORT_SYMBOL_GPL (lbs_notify_command_response)
 module_init (lbs_init_module)
 module_exit (lbs_exit_module)
 MODULE_DESCRIPTION ("Libertas WLAN Driver Library")
 MODULE_AUTHOR ("Marvell International Ltd.")


const char lbs_driver_version []
unsigned int lbs_debug
unsigned int lbs_disablemesh
struct cmd_confirm_sleep confirm_sleep
u16 lbs_region_code_to_index [MRVDRV_MAX_REGION_CODE]

Macro Definition Documentation

#define DRIVER_RELEASE_VERSION   "323.p0"

Definition at line 28 of file main.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 7 of file main.c.

Function Documentation

EXPORT_SYMBOL_GPL ( lbs_debug  )
EXPORT_SYMBOL_GPL ( lbs_disablemesh  )
EXPORT_SYMBOL_GPL ( lbs_host_to_card_done  )
EXPORT_SYMBOL_GPL ( lbs_suspend  )
EXPORT_SYMBOL_GPL ( lbs_resume  )
EXPORT_SYMBOL_GPL ( lbs_add_card  )
EXPORT_SYMBOL_GPL ( lbs_remove_card  )
EXPORT_SYMBOL_GPL ( lbs_start_card  )
EXPORT_SYMBOL_GPL ( lbs_stop_card  )
EXPORT_SYMBOL_GPL ( lbs_queue_event  )
EXPORT_SYMBOL_GPL ( lbs_notify_command_response  )
struct lbs_private* lbs_add_card ( void card,
struct device dmdev 

lbs_add_card - adds the card. It will probe the card, allocate the lbs_priv and initialize the device.

: A pointer to card : A pointer to &struct device returns: A pointer to &struct lbs_private structure

Definition at line 960 of file main.c.

u8 lbs_data_rate_to_fw_index ( u32  rate)

lbs_data_rate_to_fw_index - use rate to get the index

: data rate returns: index or 0

Definition at line 88 of file main.c.

int lbs_enter_auto_deep_sleep ( struct lbs_private priv)

Definition at line 842 of file main.c.

int lbs_exit_auto_deep_sleep ( struct lbs_private priv)

Definition at line 856 of file main.c.

u32 lbs_fw_index_to_data_rate ( u8  idx)

lbs_fw_index_to_data_rate - use index to get the data rate

: The index of data rate returns: data rate or 0

Definition at line 75 of file main.c.

void lbs_host_to_card_done ( struct lbs_private priv)

Definition at line 276 of file main.c.

void lbs_notify_command_response ( struct lbs_private priv,
u8  resp_idx 

Definition at line 1184 of file main.c.

void lbs_queue_event ( struct lbs_private priv,
u32  event 

Definition at line 1165 of file main.c.

void lbs_remove_card ( struct lbs_private priv)

Definition at line 1041 of file main.c.

int lbs_resume ( struct lbs_private priv)

Definition at line 721 of file main.c.

int lbs_rtap_supported ( struct lbs_private priv)

Definition at line 1088 of file main.c.

int lbs_set_iface_type ( struct lbs_private priv,
enum nl80211_iftype  type 

Definition at line 102 of file main.c.

int lbs_set_mac_address ( struct net_device dev,
void addr 

Definition at line 298 of file main.c.

void lbs_set_multicast_list ( struct net_device dev)

Definition at line 437 of file main.c.

int lbs_start_card ( struct lbs_private priv)

Definition at line 1099 of file main.c.

int lbs_start_iface ( struct lbs_private priv)

Definition at line 128 of file main.c.

void lbs_stop_card ( struct lbs_private priv)

Definition at line 1137 of file main.c.

int lbs_stop_iface ( struct lbs_private priv)

Definition at line 214 of file main.c.

int lbs_suspend ( struct lbs_private priv)

Definition at line 694 of file main.c.

void lbs_update_mcast ( struct lbs_private priv)

Definition at line 374 of file main.c.

MODULE_AUTHOR ( "Marvell International Ltd."  )
MODULE_DESCRIPTION ( "Libertas WLAN Driver Library"  )
module_exit ( lbs_exit_module  )
module_init ( lbs_init_module  )
module_param_named ( libertas_debug  ,
lbs_debug  ,
int  ,
module_param_named ( libertas_disablemesh  ,
lbs_disablemesh  ,
int  ,

Variable Documentation

struct cmd_confirm_sleep confirm_sleep

Definition at line 50 of file main.c.

unsigned int lbs_debug

Definition at line 37 of file main.c.

unsigned int lbs_disablemesh

Definition at line 41 of file main.c.

const char lbs_driver_version[]
Initial value:

Definition at line 29 of file main.c.

u16 lbs_region_code_to_index[MRVDRV_MAX_REGION_CODE]
Initial value:
{ 0x10, 0x20, 0x30, 0x31, 0x32, 0x40 }

Definition at line 56 of file main.c.