Linux Kernel
3.7.1
|
#include <linux/slab.h>
#include <net/mac80211.h>
#include "types.h"
#include "main.h"
#include "phy_shim.h"
#include "antsel.h"
Go to the source code of this file.
Macros | |
#define | ANT_SELCFG_AUTO 0x80 /* bit indicates antenna sel AUTO */ |
#define | ANT_SELCFG_MASK 0x33 /* antenna configuration mask */ |
#define | ANT_SELCFG_TX_UNICAST 0 /* unicast tx antenna configuration */ |
#define | ANT_SELCFG_RX_UNICAST 1 /* unicast rx antenna configuration */ |
#define | ANT_SELCFG_TX_DEF 2 /* default tx antenna configuration */ |
#define | ANT_SELCFG_RX_DEF 3 /* default rx antenna configuration */ |
#define | BRCMS_ANTSEL_11N_0(ant) ((((ant) & ANT_SELCFG_MASK) >> 4) & 0xf) |
#define | BRCMS_ANTSEL_11N_1(ant) (((ant) & ANT_SELCFG_MASK) & 0xf) |
#define | BRCMS_ANTIDX_11N(ant) |
#define | BRCMS_ANT_ISAUTO_11N(ant) (((ant) & ANT_SELCFG_AUTO) == ANT_SELCFG_AUTO) |
#define | BRCMS_ANTSEL_11N(ant) ((ant) & ANT_SELCFG_MASK) |
#define | ANT_SELCFG_DEF_2x2 0x01 /* default antenna configuration */ |
#define | ANT_SELCFG_NUM_2x3 3 |
#define | ANT_SELCFG_DEF_2x3 0x01 /* default antenna configuration */ |
#define | ANT_SELCFG_NUM_2x4 4 |
#define | ANT_SELCFG_DEF_2x4 0x02 /* default antenna configuration */ |
Functions | |
struct antsel_info * | brcms_c_antsel_attach (struct brcms_c_info *wlc) |
void | brcms_c_antsel_detach (struct antsel_info *asi) |
void | brcms_c_antsel_init (struct antsel_info *asi) |
void | brcms_c_antsel_antcfg_get (struct antsel_info *asi, bool usedef, bool sel, u8 antselid, u8 fbantselid, u8 *antcfg, u8 *fbantcfg) |
u8 | brcms_c_antsel_antsel2id (struct antsel_info *asi, u16 antsel) |
#define ANT_SELCFG_AUTO 0x80 /* bit indicates antenna sel AUTO */ |
#define ANT_SELCFG_DEF_2x2 0x01 /* default antenna configuration */ |
#define ANT_SELCFG_DEF_2x3 0x01 /* default antenna configuration */ |
#define ANT_SELCFG_DEF_2x4 0x02 /* default antenna configuration */ |
#define ANT_SELCFG_MASK 0x33 /* antenna configuration mask */ |
#define BRCMS_ANT_ISAUTO_11N | ( | ant | ) | (((ant) & ANT_SELCFG_AUTO) == ANT_SELCFG_AUTO) |
#define BRCMS_ANTIDX_11N | ( | ant | ) |
#define BRCMS_ANTSEL_11N | ( | ant | ) | ((ant) & ANT_SELCFG_MASK) |
#define BRCMS_ANTSEL_11N_0 | ( | ant | ) | ((((ant) & ANT_SELCFG_MASK) >> 4) & 0xf) |
#define BRCMS_ANTSEL_11N_1 | ( | ant | ) | (((ant) & ANT_SELCFG_MASK) & 0xf) |
u8 brcms_c_antsel_antsel2id | ( | struct antsel_info * | asi, |
u16 | antsel | ||
) |
|
read |
void brcms_c_antsel_detach | ( | struct antsel_info * | asi | ) |
void brcms_c_antsel_init | ( | struct antsel_info * | asi | ) |