Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
zd_chip.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include "zd_def.h"
#include "zd_chip.h"
#include "zd_mac.h"
#include "zd_rf.h"

Go to the source code of this file.

Data Structures

struct  aw_pt_bi
 

Functions

void zd_chip_init (struct zd_chip *chip, struct ieee80211_hw *hw, struct usb_interface *intf)
 
void zd_chip_clear (struct zd_chip *chip)
 
int zd_ioread32v_locked (struct zd_chip *chip, u32 *values, const zd_addr_t *addr, unsigned int count)
 
int _zd_iowrite32v_locked (struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count)
 
int zd_iowrite16a_locked (struct zd_chip *chip, const struct zd_ioreq16 *ioreqs, unsigned int count)
 
int zd_iowrite32a_locked (struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count)
 
int zd_ioread16 (struct zd_chip *chip, zd_addr_t addr, u16 *value)
 
int zd_ioread32 (struct zd_chip *chip, zd_addr_t addr, u32 *value)
 
int zd_iowrite16 (struct zd_chip *chip, zd_addr_t addr, u16 value)
 
int zd_iowrite32 (struct zd_chip *chip, zd_addr_t addr, u32 value)
 
int zd_ioread32v (struct zd_chip *chip, const zd_addr_t *addresses, u32 *values, unsigned int count)
 
int zd_iowrite32a (struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count)
 
int zd_write_mac_addr (struct zd_chip *chip, const u8 *mac_addr)
 
int zd_write_bssid (struct zd_chip *chip, const u8 *bssid)
 
int zd_read_regdomain (struct zd_chip *chip, u8 *regdomain)
 
int zd_chip_lock_phy_regs (struct zd_chip *chip)
 
int zd_chip_unlock_phy_regs (struct zd_chip *chip)
 
int zd_chip_generic_patch_6m_band (struct zd_chip *chip, int channel)
 
int zd_set_beacon_interval (struct zd_chip *chip, u16 interval, u8 dtim_period, int type)
 
int zd_chip_set_rts_cts_rate_locked (struct zd_chip *chip, int preamble)
 
int zd_chip_enable_hwint (struct zd_chip *chip)
 
int zd_chip_disable_hwint (struct zd_chip *chip)
 
int zd_chip_read_mac_addr_fw (struct zd_chip *chip, u8 *addr)
 
int zd_chip_init_hw (struct zd_chip *chip)
 
int zd_chip_set_channel (struct zd_chip *chip, u8 channel)
 
u8 zd_chip_get_channel (struct zd_chip *chip)
 
int zd_chip_control_leds (struct zd_chip *chip, enum led_status status)
 
int zd_chip_set_basic_rates (struct zd_chip *chip, u16 cr_rates)
 
u8 zd_rx_rate (const void *rx_frame, const struct rx_status *status)
 
int zd_chip_switch_radio_on (struct zd_chip *chip)
 
int zd_chip_switch_radio_off (struct zd_chip *chip)
 
int zd_chip_enable_int (struct zd_chip *chip)
 
void zd_chip_disable_int (struct zd_chip *chip)
 
int zd_chip_enable_rxtx (struct zd_chip *chip)
 
void zd_chip_disable_rxtx (struct zd_chip *chip)
 
int zd_rfwritev_locked (struct zd_chip *chip, const u32 *values, unsigned int count, u8 bits)
 
int zd_rfwrite_cr_locked (struct zd_chip *chip, u32 value)
 
int zd_rfwritev_cr_locked (struct zd_chip *chip, const u32 *values, unsigned int count)
 
int zd_chip_set_multicast_hash (struct zd_chip *chip, struct zd_mc_hash *hash)
 
u64 zd_chip_get_tsf (struct zd_chip *chip)
 

Function Documentation

int _zd_iowrite32v_locked ( struct zd_chip chip,
const struct zd_ioreq32 ioreqs,
unsigned int  count 
)

Definition at line 184 of file zd_chip.c.

void zd_chip_clear ( struct zd_chip chip)

Definition at line 45 of file zd_chip.c.

int zd_chip_control_leds ( struct zd_chip chip,
enum led_status  status 
)

Definition at line 1315 of file zd_chip.c.

int zd_chip_disable_hwint ( struct zd_chip chip)

Definition at line 1094 of file zd_chip.c.

void zd_chip_disable_int ( struct zd_chip chip)

Definition at line 1455 of file zd_chip.c.

void zd_chip_disable_rxtx ( struct zd_chip chip)

Definition at line 1477 of file zd_chip.c.

int zd_chip_enable_hwint ( struct zd_chip chip)

Definition at line 1079 of file zd_chip.c.

int zd_chip_enable_int ( struct zd_chip chip)

Definition at line 1445 of file zd_chip.c.

int zd_chip_enable_rxtx ( struct zd_chip chip)

Definition at line 1465 of file zd_chip.c.

int zd_chip_generic_patch_6m_band ( struct zd_chip chip,
int  channel 
)

Definition at line 593 of file zd_chip.c.

u8 zd_chip_get_channel ( struct zd_chip chip)

Definition at line 1305 of file zd_chip.c.

u64 zd_chip_get_tsf ( struct zd_chip chip)

Definition at line 1542 of file zd_chip.c.

void zd_chip_init ( struct zd_chip chip,
struct ieee80211_hw hw,
struct usb_interface intf 
)

Definition at line 35 of file zd_chip.c.

int zd_chip_init_hw ( struct zd_chip chip)

Definition at line 1127 of file zd_chip.c.

int zd_chip_lock_phy_regs ( struct zd_chip chip)

Definition at line 519 of file zd_chip.c.

int zd_chip_read_mac_addr_fw ( struct zd_chip chip,
u8 addr 
)

Definition at line 1120 of file zd_chip.c.

int zd_chip_set_basic_rates ( struct zd_chip chip,
u16  cr_rates 
)

Definition at line 1372 of file zd_chip.c.

int zd_chip_set_channel ( struct zd_chip chip,
u8  channel 
)

Definition at line 1275 of file zd_chip.c.

int zd_chip_set_multicast_hash ( struct zd_chip chip,
struct zd_mc_hash hash 
)

Definition at line 1531 of file zd_chip.c.

int zd_chip_set_rts_cts_rate_locked ( struct zd_chip chip,
int  preamble 
)

Definition at line 1061 of file zd_chip.c.

int zd_chip_switch_radio_off ( struct zd_chip chip)

Definition at line 1435 of file zd_chip.c.

int zd_chip_switch_radio_on ( struct zd_chip chip)

Definition at line 1425 of file zd_chip.c.

int zd_chip_unlock_phy_regs ( struct zd_chip chip)

Definition at line 539 of file zd_chip.c.

int zd_ioread16 ( struct zd_chip chip,
zd_addr_t  addr,
u16 value 
)

Definition at line 269 of file zd_chip.c.

int zd_ioread32 ( struct zd_chip chip,
zd_addr_t  addr,
u32 value 
)

Definition at line 279 of file zd_chip.c.

int zd_ioread32v ( struct zd_chip chip,
const zd_addr_t addresses,
u32 values,
unsigned int  count 
)

Definition at line 309 of file zd_chip.c.

int zd_ioread32v_locked ( struct zd_chip chip,
u32 values,
const zd_addr_t addr,
unsigned int  count 
)

Definition at line 106 of file zd_chip.c.

int zd_iowrite16 ( struct zd_chip chip,
zd_addr_t  addr,
u16  value 
)

Definition at line 289 of file zd_chip.c.

int zd_iowrite16a_locked ( struct zd_chip chip,
const struct zd_ioreq16 ioreqs,
unsigned int  count 
)

Definition at line 198 of file zd_chip.c.

int zd_iowrite32 ( struct zd_chip chip,
zd_addr_t  addr,
u32  value 
)

Definition at line 299 of file zd_chip.c.

int zd_iowrite32a ( struct zd_chip chip,
const struct zd_ioreq32 ioreqs,
unsigned int  count 
)

Definition at line 320 of file zd_chip.c.

int zd_iowrite32a_locked ( struct zd_chip chip,
const struct zd_ioreq32 ioreqs,
unsigned int  count 
)

Definition at line 236 of file zd_chip.c.

int zd_read_regdomain ( struct zd_chip chip,
u8 regdomain 
)

Definition at line 425 of file zd_chip.c.

int zd_rfwrite_cr_locked ( struct zd_chip chip,
u32  value 
)

Definition at line 1505 of file zd_chip.c.

int zd_rfwritev_cr_locked ( struct zd_chip chip,
const u32 values,
unsigned int  count 
)

Definition at line 1516 of file zd_chip.c.

int zd_rfwritev_locked ( struct zd_chip chip,
const u32 values,
unsigned int  count,
u8  bits 
)

Definition at line 1486 of file zd_chip.c.

u8 zd_rx_rate ( const void rx_frame,
const struct rx_status status 
)

zd_rx_rate - report zd-rate - received frame - rx_status as given by the device

This function converts the rate as encoded in the received packet to the zd-rate, we are using on other places in the driver.

Definition at line 1398 of file zd_chip.c.

int zd_set_beacon_interval ( struct zd_chip chip,
u16  interval,
u8  dtim_period,
int  type 
)

Definition at line 933 of file zd_chip.c.

int zd_write_bssid ( struct zd_chip chip,
const u8 bssid 
)

Definition at line 415 of file zd_chip.c.

int zd_write_mac_addr ( struct zd_chip chip,
const u8 mac_addr 
)

Definition at line 405 of file zd_chip.c.