Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions | Variables
decl.h File Reference
#include <linux/netdevice.h>
#include <linux/firmware.h>
#include <linux/nl80211.h>

Go to the source code of this file.

Data Structures

struct  lbs_fw_table
 

Typedefs

typedef void(* lbs_fw_cb )(struct lbs_private *priv, int ret, const struct firmware *helper, const struct firmware *mainfw)
 

Functions

void lbs_send_tx_feedback (struct lbs_private *priv, u32 try_count)
 
netdev_tx_t lbs_hard_start_xmit (struct sk_buff *skb, struct net_device *dev)
 
int lbs_process_rxed_packet (struct lbs_private *priv, struct sk_buff *)
 
struct lbs_privatelbs_add_card (void *card, struct device *dmdev)
 
void lbs_remove_card (struct lbs_private *priv)
 
int lbs_start_card (struct lbs_private *priv)
 
void lbs_stop_card (struct lbs_private *priv)
 
void lbs_host_to_card_done (struct lbs_private *priv)
 
int lbs_start_iface (struct lbs_private *priv)
 
int lbs_stop_iface (struct lbs_private *priv)
 
int lbs_set_iface_type (struct lbs_private *priv, enum nl80211_iftype type)
 
int lbs_rtap_supported (struct lbs_private *priv)
 
int lbs_set_mac_address (struct net_device *dev, void *addr)
 
void lbs_set_multicast_list (struct net_device *dev)
 
void lbs_update_mcast (struct lbs_private *priv)
 
int lbs_suspend (struct lbs_private *priv)
 
int lbs_resume (struct lbs_private *priv)
 
void lbs_queue_event (struct lbs_private *priv, u32 event)
 
void lbs_notify_command_response (struct lbs_private *priv, u8 resp_idx)
 
int lbs_enter_auto_deep_sleep (struct lbs_private *priv)
 
int lbs_exit_auto_deep_sleep (struct lbs_private *priv)
 
u32 lbs_fw_index_to_data_rate (u8 index)
 
u8 lbs_data_rate_to_fw_index (u32 rate)
 
int lbs_get_firmware (struct device *dev, u32 card_model, const struct lbs_fw_table *fw_table, const struct firmware **helper, const struct firmware **mainfw)
 
int lbs_get_firmware_async (struct lbs_private *priv, struct device *device, u32 card_model, const struct lbs_fw_table *fw_table, lbs_fw_cb callback)
 
void lbs_wait_for_firmware_load (struct lbs_private *priv)
 

Variables

struct ethtool_ops lbs_ethtool_ops
 

Typedef Documentation

typedef void(* lbs_fw_cb)(struct lbs_private *priv, int ret, const struct firmware *helper, const struct firmware *mainfw)

Definition at line 22 of file decl.h.

Function Documentation

struct lbs_private* lbs_add_card ( void card,
struct device dmdev 
)
read

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.

int lbs_get_firmware ( struct device dev,
u32  card_model,
const struct lbs_fw_table fw_table,
const struct firmware **  helper,
const struct firmware **  mainfw 
)

lbs_get_firmware - Retrieves two-stage firmware

: A pointer to &device structure : Bus-specific card model ID used to filter firmware table elements : Table of firmware file names and device model numbers terminated by an entry with a NULL helper name : On success, the helper firmware; caller must free : On success, the main firmware; caller must free

Deprecated: use lbs_get_firmware_async() instead.

returns: 0 on success, non-zero on failure

Definition at line 166 of file firmware.c.

int lbs_get_firmware_async ( struct lbs_private priv,
struct device device,
u32  card_model,
const struct lbs_fw_table fw_table,
lbs_fw_cb  callback 
)

lbs_get_firmware_async - Retrieves firmware asynchronously. Can load either a helper firmware and a main firmware (2-stage), or just the helper.

: Pointer to lbs_private instance : A pointer to &device structure : Bus-specific card model ID used to filter firmware table elements : Table of firmware file names and device model numbers terminated by an entry with a NULL helper name : User callback to invoke when firmware load succeeds or fails.

Definition at line 125 of file firmware.c.

netdev_tx_t lbs_hard_start_xmit ( struct sk_buff skb,
struct net_device dev 
)

lbs_hard_start_xmit - checks the conditions and sends packet to IF layer if everything is ok

: A pointer to skb which includes TX packet : A pointer to the &struct net_device returns: 0 or -1

Definition at line 64 of file tx.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.

int lbs_process_rxed_packet ( struct lbs_private priv,
struct sk_buff skb 
)

lbs_process_rxed_packet - processes received packet and forwards it to kernel/upper layer

: A pointer to &struct lbs_private : A pointer to skb which includes the received packet returns: 0 or -1

Definition at line 56 of file rx.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.

void lbs_send_tx_feedback ( struct lbs_private priv,
u32  try_count 
)

lbs_send_tx_feedback - sends to the host the last transmitted packet, filling the radiotap headers with transmission information.

: A pointer to &struct lbs_private structure : A 32-bit value containing transmission retry status.

returns: void

Definition at line 182 of file tx.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.

void lbs_wait_for_firmware_load ( struct lbs_private priv)

Definition at line 108 of file firmware.c.

Variable Documentation

struct ethtool_ops lbs_ethtool_ops

Definition at line 108 of file ethtool.c.