|
Linux Kernel
3.7.1
|
#include <linux/hardirq.h>#include <linux/kfifo.h>#include <linux/sched.h>#include <linux/slab.h>#include <linux/if_arp.h>#include <linux/export.h>#include "decl.h"#include "cfg.h"#include "cmd.h"Go to the source code of this file.
Macros | |
| #define | CAL_NF(nf) ((s32)(-(s32)(nf))) |
| #define | CAL_RSSI(snr, nf) ((s32)((s32)(snr) + CAL_NF(nf))) |
| int __lbs_cmd | ( | struct lbs_private * | priv, |
| uint16_t | command, | ||
| struct cmd_header * | in_cmd, | ||
| int | in_cmd_size, | ||
| int(*)(struct lbs_private *, unsigned long, struct cmd_header *) | callback, | ||
| unsigned long | callback_arg | ||
| ) |
|
read |
| void __lbs_complete_command | ( | struct lbs_private * | priv, |
| struct cmd_ctrl_node * | cmd, | ||
| int | result | ||
| ) |
| EXPORT_SYMBOL_GPL | ( | lbs_cmd_copyback | ) |
| EXPORT_SYMBOL_GPL | ( | lbs_host_sleep_cfg | ) |
| EXPORT_SYMBOL_GPL | ( | __lbs_cmd | ) |
| int lbs_allocate_cmd_buffer | ( | struct lbs_private * | priv | ) |
lbs_allocate_cmd_buffer - allocates the command buffer and links it to command free queue
: A pointer to &struct lbs_private structure
returns: 0 for success or -1 on error
| int lbs_cmd_802_11_sleep_params | ( | struct lbs_private * | priv, |
| uint16_t | cmd_action, | ||
| struct sleep_params * | sp | ||
| ) |
| void lbs_cmd_async | ( | struct lbs_private * | priv, |
| uint16_t | command, | ||
| struct cmd_header * | in_cmd, | ||
| int | in_cmd_size | ||
| ) |
| int lbs_cmd_copyback | ( | struct lbs_private * | priv, |
| unsigned long | extra, | ||
| struct cmd_header * | resp | ||
| ) |
| void lbs_complete_command | ( | struct lbs_private * | priv, |
| struct cmd_ctrl_node * | cmd, | ||
| int | result | ||
| ) |
| int lbs_execute_next_command | ( | struct lbs_private * | priv | ) |
lbs_execute_next_command - execute next command in command pending queue. Will put firmware back to PS mode if applicable.
: A pointer to &struct lbs_private structure
returns: 0 on success or -1 on error
| int lbs_free_cmd_buffer | ( | struct lbs_private * | priv | ) |
lbs_free_cmd_buffer - free the command buffer
: A pointer to &struct lbs_private structure
returns: 0 for success
lbs_get_reg - Read a MAC, Baseband, or RF register
: pointer to &struct lbs_private : register command, one of CMD_MAC_REG_ACCESS, CMD_BBP_REG_ACCESS, or CMD_RF_REG_ACCESS : byte offset of the register to get : on success, the value of the register at 'offset'
returns: 0 on success, error code on failure
| int lbs_get_rssi | ( | struct lbs_private * | priv, |
| s8 * | rssi, | ||
| s8 * | nf | ||
| ) |
lbs_get_rssi - Get current RSSI and noise floor
: A pointer to &struct lbs_private structure : On successful return, signal level in mBm : On successful return, Noise floor
returns: The channel on success, error on failure
| int lbs_get_snmp_mib | ( | struct lbs_private * | priv, |
| u32 | oid, | ||
| u16 * | out_val | ||
| ) |
lbs_get_tx_power - Get the min, max, and current TX power
: A pointer to &struct lbs_private structure : Current power level in dBm : Minimum supported power level in dBm (optional) : Maximum supported power level in dBm (optional)
returns: 0 on success, error on failure
| int lbs_host_sleep_cfg | ( | struct lbs_private * | priv, |
| uint32_t | criteria, | ||
| struct wol_config * | p_wol_config | ||
| ) |
| void lbs_ps_confirm_sleep | ( | struct lbs_private * | priv | ) |
lbs_ps_confirm_sleep - checks condition and prepares to send sleep confirm command to firmware if ok
: A pointer to &struct lbs_private structure
returns: n/a
| int lbs_set_11d_domain_info | ( | struct lbs_private * | priv | ) |
lbs_set_11d_domain_info - Send regulatory and 802.11d domain information to the firmware
: pointer to &struct lbs_private
returns: 0 on success, error code on failure
| int lbs_set_channel | ( | struct lbs_private * | priv, |
| u8 | channel | ||
| ) |
| int lbs_set_deep_sleep | ( | struct lbs_private * | priv, |
| int | deep_sleep | ||
| ) |
| int lbs_set_host_sleep | ( | struct lbs_private * | priv, |
| int | host_sleep | ||
| ) |
| void lbs_set_mac_control | ( | struct lbs_private * | priv | ) |
| int lbs_set_mac_control_sync | ( | struct lbs_private * | priv | ) |
| int lbs_set_monitor_mode | ( | struct lbs_private * | priv, |
| int | enable | ||
| ) |
lbs_set_monitor_mode - Enable or disable monitor mode (only implemented on OLPC usb8388 FW)
: A pointer to &struct lbs_private structure : 1 to enable monitor mode, 0 to disable
returns: 0 on success, error on failure
| int lbs_set_power_adapt_cfg | ( | struct lbs_private * | priv, |
| int | enable, | ||
| int8_t | p0, | ||
| int8_t | p1, | ||
| int8_t | p2 | ||
| ) |
lbs_set_power_adapt_cfg - Configures the power adaptation settings
: A pointer to &struct lbs_private structure : Power adaptation enable : Power level for 1, 2, 5.5 and 11 Mbps (dBm). : Power level for 6, 9, 12, 18, 22, 24 and 36 Mbps (dBm). : Power level for 48 and 54 Mbps (dBm).
returns: 0 on Success
| int lbs_set_ps_mode | ( | struct lbs_private * | priv, |
| u16 | cmd_action, | ||
| bool | block | ||
| ) |
| int lbs_set_radio | ( | struct lbs_private * | priv, |
| u8 | preamble, | ||
| u8 | radio_on | ||
| ) |
lbs_set_reg - Write a MAC, Baseband, or RF register
: pointer to &struct lbs_private : register command, one of CMD_MAC_REG_ACCESS, CMD_BBP_REG_ACCESS, or CMD_RF_REG_ACCESS : byte offset of the register to set : the value to write to the register at 'offset'
returns: 0 on success, error code on failure
| int lbs_set_snmp_mib | ( | struct lbs_private * | priv, |
| u32 | oid, | ||
| u16 | val | ||
| ) |
| int lbs_set_tpc_cfg | ( | struct lbs_private * | priv, |
| int | enable, | ||
| int8_t | p0, | ||
| int8_t | p1, | ||
| int8_t | p2, | ||
| int | usesnr | ||
| ) |
lbs_set_tpc_cfg - Configures the transmission power control functionality
: A pointer to &struct lbs_private structure : Transmission power control enable : Power level when link quality is good (dBm). : Power level when link quality is fair (dBm). : Power level when link quality is poor (dBm). : Use Signal to Noise Ratio in TPC
returns: 0 on success
| int lbs_set_tx_power | ( | struct lbs_private * | priv, |
| s16 | dbm | ||
| ) |
| int lbs_update_channel | ( | struct lbs_private * | priv | ) |
| int lbs_update_hw_spec | ( | struct lbs_private * | priv | ) |
lbs_update_hw_spec - Updates the hardware details like MAC address and regulatory region
: A pointer to &struct lbs_private structure
returns: 0 on success, error on failure
1.8.2