Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
phy_shim.c File Reference
#include <linux/slab.h>
#include <net/mac80211.h>
#include "main.h"
#include "mac80211_if.h"
#include "phy_shim.h"

Go to the source code of this file.

Data Structures

struct  phy_shim_info
 

Functions

struct phy_shim_infowlc_phy_shim_attach (struct brcms_hardware *wlc_hw, struct brcms_info *wl, struct brcms_c_info *wlc)
 
void wlc_phy_shim_detach (struct phy_shim_info *physhim)
 
struct wlapi_timer * wlapi_init_timer (struct phy_shim_info *physhim, void(*fn)(struct brcms_phy *pi), void *arg, const char *name)
 
void wlapi_free_timer (struct wlapi_timer *t)
 
void wlapi_add_timer (struct wlapi_timer *t, uint ms, int periodic)
 
bool wlapi_del_timer (struct wlapi_timer *t)
 
void wlapi_intrson (struct phy_shim_info *physhim)
 
u32 wlapi_intrsoff (struct phy_shim_info *physhim)
 
void wlapi_intrsrestore (struct phy_shim_info *physhim, u32 macintmask)
 
void wlapi_bmac_write_shm (struct phy_shim_info *physhim, uint offset, u16 v)
 
u16 wlapi_bmac_read_shm (struct phy_shim_info *physhim, uint offset)
 
void wlapi_bmac_mhf (struct phy_shim_info *physhim, u8 idx, u16 mask, u16 val, int bands)
 
void wlapi_bmac_corereset (struct phy_shim_info *physhim, u32 flags)
 
void wlapi_suspend_mac_and_wait (struct phy_shim_info *physhim)
 
void wlapi_switch_macfreq (struct phy_shim_info *physhim, u8 spurmode)
 
void wlapi_enable_mac (struct phy_shim_info *physhim)
 
void wlapi_bmac_mctrl (struct phy_shim_info *physhim, u32 mask, u32 val)
 
void wlapi_bmac_phy_reset (struct phy_shim_info *physhim)
 
void wlapi_bmac_bw_set (struct phy_shim_info *physhim, u16 bw)
 
u16 wlapi_bmac_get_txant (struct phy_shim_info *physhim)
 
void wlapi_bmac_phyclk_fgc (struct phy_shim_info *physhim, bool clk)
 
void wlapi_bmac_macphyclk_set (struct phy_shim_info *physhim, bool clk)
 
void wlapi_bmac_core_phypll_ctl (struct phy_shim_info *physhim, bool on)
 
void wlapi_bmac_core_phypll_reset (struct phy_shim_info *physhim)
 
void wlapi_bmac_ucode_wake_override_phyreg_set (struct phy_shim_info *physhim)
 
void wlapi_bmac_ucode_wake_override_phyreg_clear (struct phy_shim_info *physhim)
 
void wlapi_bmac_write_template_ram (struct phy_shim_info *physhim, int offset, int len, void *buf)
 
u16 wlapi_bmac_rate_shm_offset (struct phy_shim_info *physhim, u8 rate)
 
void wlapi_ucode_sample_init (struct phy_shim_info *physhim)
 
void wlapi_copyfrom_objmem (struct phy_shim_info *physhim, uint offset, void *buf, int len, u32 sel)
 
void wlapi_copyto_objmem (struct phy_shim_info *physhim, uint offset, const void *buf, int l, u32 sel)
 

Function Documentation

void wlapi_add_timer ( struct wlapi_timer *  t,
uint  ms,
int  periodic 
)

Definition at line 74 of file phy_shim.c.

void wlapi_bmac_bw_set ( struct phy_shim_info physhim,
u16  bw 
)

Definition at line 146 of file phy_shim.c.

void wlapi_bmac_core_phypll_ctl ( struct phy_shim_info physhim,
bool  on 
)

Definition at line 166 of file phy_shim.c.

void wlapi_bmac_core_phypll_reset ( struct phy_shim_info physhim)

Definition at line 171 of file phy_shim.c.

void wlapi_bmac_corereset ( struct phy_shim_info physhim,
u32  flags 
)

Definition at line 116 of file phy_shim.c.

u16 wlapi_bmac_get_txant ( struct phy_shim_info physhim)

Definition at line 151 of file phy_shim.c.

void wlapi_bmac_macphyclk_set ( struct phy_shim_info physhim,
bool  clk 
)

Definition at line 161 of file phy_shim.c.

void wlapi_bmac_mctrl ( struct phy_shim_info physhim,
u32  mask,
u32  val 
)

Definition at line 136 of file phy_shim.c.

void wlapi_bmac_mhf ( struct phy_shim_info physhim,
u8  idx,
u16  mask,
u16  val,
int  bands 
)

Definition at line 110 of file phy_shim.c.

void wlapi_bmac_phy_reset ( struct phy_shim_info physhim)

Definition at line 141 of file phy_shim.c.

void wlapi_bmac_phyclk_fgc ( struct phy_shim_info physhim,
bool  clk 
)

Definition at line 156 of file phy_shim.c.

u16 wlapi_bmac_rate_shm_offset ( struct phy_shim_info physhim,
u8  rate 
)

Definition at line 195 of file phy_shim.c.

u16 wlapi_bmac_read_shm ( struct phy_shim_info physhim,
uint  offset 
)

Definition at line 104 of file phy_shim.c.

void wlapi_bmac_ucode_wake_override_phyreg_clear ( struct phy_shim_info physhim)

Definition at line 182 of file phy_shim.c.

void wlapi_bmac_ucode_wake_override_phyreg_set ( struct phy_shim_info physhim)

Definition at line 176 of file phy_shim.c.

void wlapi_bmac_write_shm ( struct phy_shim_info physhim,
uint  offset,
u16  v 
)

Definition at line 99 of file phy_shim.c.

void wlapi_bmac_write_template_ram ( struct phy_shim_info physhim,
int  offset,
int  len,
void buf 
)

Definition at line 189 of file phy_shim.c.

void wlapi_copyfrom_objmem ( struct phy_shim_info physhim,
uint  offset,
void buf,
int  len,
u32  sel 
)

Definition at line 205 of file phy_shim.c.

void wlapi_copyto_objmem ( struct phy_shim_info physhim,
uint  offset,
const void buf,
int  l,
u32  sel 
)

Definition at line 212 of file phy_shim.c.

bool wlapi_del_timer ( struct wlapi_timer *  t)

Definition at line 79 of file phy_shim.c.

void wlapi_enable_mac ( struct phy_shim_info physhim)

Definition at line 131 of file phy_shim.c.

void wlapi_free_timer ( struct wlapi_timer *  t)

Definition at line 68 of file phy_shim.c.

struct wlapi_timer* wlapi_init_timer ( struct phy_shim_info physhim,
void(*)(struct brcms_phy *pi)  fn,
void arg,
const char name 
)
read

Definition at line 59 of file phy_shim.c.

u32 wlapi_intrsoff ( struct phy_shim_info physhim)

Definition at line 89 of file phy_shim.c.

void wlapi_intrson ( struct phy_shim_info physhim)

Definition at line 84 of file phy_shim.c.

void wlapi_intrsrestore ( struct phy_shim_info physhim,
u32  macintmask 
)

Definition at line 94 of file phy_shim.c.

void wlapi_suspend_mac_and_wait ( struct phy_shim_info physhim)

Definition at line 121 of file phy_shim.c.

void wlapi_switch_macfreq ( struct phy_shim_info physhim,
u8  spurmode 
)

Definition at line 126 of file phy_shim.c.

void wlapi_ucode_sample_init ( struct phy_shim_info physhim)

Definition at line 200 of file phy_shim.c.

struct phy_shim_info* wlc_phy_shim_attach ( struct brcms_hardware wlc_hw,
struct brcms_info wl,
struct brcms_c_info wlc 
)
read

Definition at line 38 of file phy_shim.c.

void wlc_phy_shim_detach ( struct phy_shim_info physhim)

Definition at line 54 of file phy_shim.c.