Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
zd_chip.h File Reference
#include <net/mac80211.h>
#include "zd_rf.h"
#include "zd_usb.h"

Go to the source code of this file.

Data Structures

struct  zd_chip
 
struct  zd_mc_hash
 

Macros

#define CTL_REG(offset)   ((zd_addr_t)(CR_START + (offset)))
 
#define E2P_DATA(offset)   ((zd_addr_t)(E2P_START + E2P_DATA_OFFSET + (offset)))
 
#define FWRAW_DATA(offset)   ((zd_addr_t)(FW_START + (offset)))
 
#define ZD_CR0   CTL_REG(0x0000)
 
#define ZD_CR1   CTL_REG(0x0004)
 
#define ZD_CR2   CTL_REG(0x0008)
 
#define ZD_CR3   CTL_REG(0x000C)
 
#define ZD_CR5   CTL_REG(0x0010)
 
#define ZD_CR6   CTL_REG(0x0014)
 
#define ZD_CR7   CTL_REG(0x0018)
 
#define ZD_CR8   CTL_REG(0x001C)
 
#define ZD_CR4   CTL_REG(0x0020)
 
#define ZD_CR9   CTL_REG(0x0024)
 
#define ZD_CR10   CTL_REG(0x0028)
 
#define ZD_CR11   CTL_REG(0x002C)
 
#define ZD_CR12   CTL_REG(0x0030)
 
#define ZD_CR13   CTL_REG(0x0034)
 
#define ZD_CR14   CTL_REG(0x0038)
 
#define ZD_CR15   CTL_REG(0x003C)
 
#define ZD_CR16   CTL_REG(0x0040)
 
#define ZD_CR17   CTL_REG(0x0044)
 
#define ZD_CR18   CTL_REG(0x0048)
 
#define ZD_CR19   CTL_REG(0x004C)
 
#define ZD_CR20   CTL_REG(0x0050)
 
#define ZD_CR21   CTL_REG(0x0054)
 
#define ZD_CR22   CTL_REG(0x0058)
 
#define ZD_CR23   CTL_REG(0x005C)
 
#define ZD_CR24   CTL_REG(0x0060) /* CCA threshold */
 
#define ZD_CR25   CTL_REG(0x0064)
 
#define ZD_CR26   CTL_REG(0x0068)
 
#define ZD_CR27   CTL_REG(0x006C)
 
#define ZD_CR28   CTL_REG(0x0070)
 
#define ZD_CR29   CTL_REG(0x0074)
 
#define ZD_CR30   CTL_REG(0x0078)
 
#define ZD_CR31
 
#define ZD_CR32   CTL_REG(0x0080)
 
#define ZD_CR33   CTL_REG(0x0084)
 
#define ZD_CR34   CTL_REG(0x0088)
 
#define ZD_CR35   CTL_REG(0x008C)
 
#define ZD_CR36   CTL_REG(0x0090)
 
#define ZD_CR37   CTL_REG(0x0094)
 
#define ZD_CR38   CTL_REG(0x0098)
 
#define ZD_CR39   CTL_REG(0x009C)
 
#define ZD_CR40   CTL_REG(0x00A0)
 
#define ZD_CR41   CTL_REG(0x00A4)
 
#define ZD_CR42   CTL_REG(0x00A8)
 
#define ZD_CR43   CTL_REG(0x00AC)
 
#define ZD_CR44   CTL_REG(0x00B0)
 
#define ZD_CR45   CTL_REG(0x00B4)
 
#define ZD_CR46   CTL_REG(0x00B8)
 
#define ZD_CR47
 
#define ZD_CR48   CTL_REG(0x00C0)
 
#define ZD_CR49   CTL_REG(0x00C4)
 
#define ZD_CR50   CTL_REG(0x00C8)
 
#define ZD_CR51
 
#define ZD_CR52
 
#define ZD_CR53
 
#define ZD_CR54   CTL_REG(0x00D8)
 
#define ZD_CR55   CTL_REG(0x00DC)
 
#define ZD_CR56   CTL_REG(0x00E0)
 
#define ZD_CR57   CTL_REG(0x00E4)
 
#define ZD_CR58   CTL_REG(0x00E8)
 
#define ZD_CR59   CTL_REG(0x00EC)
 
#define ZD_CR60   CTL_REG(0x00F0)
 
#define ZD_CR61   CTL_REG(0x00F4)
 
#define ZD_CR62   CTL_REG(0x00F8)
 
#define ZD_CR63   CTL_REG(0x00FC)
 
#define ZD_CR64   CTL_REG(0x0100)
 
#define ZD_CR65   CTL_REG(0x0104) /* OFDM 54M calibration */
 
#define ZD_CR66   CTL_REG(0x0108) /* OFDM 48M calibration */
 
#define ZD_CR67   CTL_REG(0x010C) /* OFDM 36M calibration */
 
#define ZD_CR68   CTL_REG(0x0110) /* CCK calibration */
 
#define ZD_CR69   CTL_REG(0x0114)
 
#define ZD_CR70   CTL_REG(0x0118)
 
#define ZD_CR71   CTL_REG(0x011C)
 
#define ZD_CR72   CTL_REG(0x0120)
 
#define ZD_CR73   CTL_REG(0x0124)
 
#define ZD_CR74   CTL_REG(0x0128)
 
#define ZD_CR75   CTL_REG(0x012C)
 
#define ZD_CR76   CTL_REG(0x0130)
 
#define ZD_CR77   CTL_REG(0x0134)
 
#define ZD_CR78   CTL_REG(0x0138)
 
#define ZD_CR79   CTL_REG(0x013C)
 
#define ZD_CR80   CTL_REG(0x0140)
 
#define ZD_CR81   CTL_REG(0x0144)
 
#define ZD_CR82   CTL_REG(0x0148)
 
#define ZD_CR83   CTL_REG(0x014C)
 
#define ZD_CR84   CTL_REG(0x0150)
 
#define ZD_CR85   CTL_REG(0x0154)
 
#define ZD_CR86   CTL_REG(0x0158)
 
#define ZD_CR87   CTL_REG(0x015C)
 
#define ZD_CR88   CTL_REG(0x0160)
 
#define ZD_CR89   CTL_REG(0x0164)
 
#define ZD_CR90   CTL_REG(0x0168)
 
#define ZD_CR91   CTL_REG(0x016C)
 
#define ZD_CR92   CTL_REG(0x0170)
 
#define ZD_CR93   CTL_REG(0x0174)
 
#define ZD_CR94   CTL_REG(0x0178)
 
#define ZD_CR95   CTL_REG(0x017C)
 
#define ZD_CR96   CTL_REG(0x0180)
 
#define ZD_CR97   CTL_REG(0x0184)
 
#define ZD_CR98   CTL_REG(0x0188)
 
#define ZD_CR99   CTL_REG(0x018C)
 
#define ZD_CR100   CTL_REG(0x0190)
 
#define ZD_CR101   CTL_REG(0x0194)
 
#define ZD_CR102   CTL_REG(0x0198)
 
#define ZD_CR103   CTL_REG(0x019C)
 
#define ZD_CR104   CTL_REG(0x01A0)
 
#define ZD_CR105   CTL_REG(0x01A4)
 
#define ZD_CR106   CTL_REG(0x01A8)
 
#define ZD_CR107   CTL_REG(0x01AC)
 
#define ZD_CR108   CTL_REG(0x01B0)
 
#define ZD_CR109   CTL_REG(0x01B4)
 
#define ZD_CR110   CTL_REG(0x01B8)
 
#define ZD_CR111   CTL_REG(0x01BC)
 
#define ZD_CR112   CTL_REG(0x01C0)
 
#define ZD_CR113   CTL_REG(0x01C4)
 
#define ZD_CR114   CTL_REG(0x01C8)
 
#define ZD_CR115   CTL_REG(0x01CC)
 
#define ZD_CR116   CTL_REG(0x01D0)
 
#define ZD_CR117   CTL_REG(0x01D4)
 
#define ZD_CR118   CTL_REG(0x01D8)
 
#define ZD_CR119   CTL_REG(0x01DC)
 
#define ZD_CR120   CTL_REG(0x01E0)
 
#define ZD_CR121   CTL_REG(0x01E4)
 
#define ZD_CR122   CTL_REG(0x01E8)
 
#define ZD_CR123   CTL_REG(0x01EC)
 
#define ZD_CR124   CTL_REG(0x01F0)
 
#define ZD_CR125   CTL_REG(0x01F4)
 
#define ZD_CR126   CTL_REG(0x01F8)
 
#define ZD_CR127   CTL_REG(0x01FC)
 
#define ZD_CR128   CTL_REG(0x0200)
 
#define ZD_CR129   CTL_REG(0x0204)
 
#define ZD_CR130   CTL_REG(0x0208)
 
#define ZD_CR131   CTL_REG(0x020C)
 
#define ZD_CR132   CTL_REG(0x0210)
 
#define ZD_CR133   CTL_REG(0x0214)
 
#define ZD_CR134   CTL_REG(0x0218)
 
#define ZD_CR135   CTL_REG(0x021C)
 
#define ZD_CR136   CTL_REG(0x0220)
 
#define ZD_CR137   CTL_REG(0x0224)
 
#define ZD_CR138   CTL_REG(0x0228)
 
#define ZD_CR139   CTL_REG(0x022C)
 
#define ZD_CR140   CTL_REG(0x0230)
 
#define ZD_CR141   CTL_REG(0x0234)
 
#define ZD_CR142   CTL_REG(0x0238)
 
#define ZD_CR143   CTL_REG(0x023C)
 
#define ZD_CR144   CTL_REG(0x0240)
 
#define ZD_CR145   CTL_REG(0x0244)
 
#define ZD_CR146   CTL_REG(0x0248)
 
#define ZD_CR147   CTL_REG(0x024C)
 
#define ZD_CR148   CTL_REG(0x0250)
 
#define ZD_CR149   CTL_REG(0x0254)
 
#define ZD_CR150   CTL_REG(0x0258)
 
#define ZD_CR151   CTL_REG(0x025C)
 
#define ZD_CR152   CTL_REG(0x0260)
 
#define ZD_CR153   CTL_REG(0x0264)
 
#define ZD_CR154   CTL_REG(0x0268)
 
#define ZD_CR155   CTL_REG(0x026C)
 
#define ZD_CR156   CTL_REG(0x0270)
 
#define ZD_CR157   CTL_REG(0x0274)
 
#define ZD_CR158   CTL_REG(0x0278)
 
#define ZD_CR159   CTL_REG(0x027C)
 
#define ZD_CR160   CTL_REG(0x0280)
 
#define ZD_CR161   CTL_REG(0x0284)
 
#define ZD_CR162   CTL_REG(0x0288)
 
#define ZD_CR163   CTL_REG(0x028C)
 
#define ZD_CR164   CTL_REG(0x0290)
 
#define ZD_CR165   CTL_REG(0x0294)
 
#define ZD_CR166   CTL_REG(0x0298)
 
#define ZD_CR167   CTL_REG(0x029C)
 
#define ZD_CR168   CTL_REG(0x02A0)
 
#define ZD_CR169   CTL_REG(0x02A4)
 
#define ZD_CR170   CTL_REG(0x02A8)
 
#define ZD_CR171   CTL_REG(0x02AC)
 
#define ZD_CR172   CTL_REG(0x02B0)
 
#define ZD_CR173   CTL_REG(0x02B4)
 
#define ZD_CR174   CTL_REG(0x02B8)
 
#define ZD_CR175   CTL_REG(0x02BC)
 
#define ZD_CR176   CTL_REG(0x02C0)
 
#define ZD_CR177   CTL_REG(0x02C4)
 
#define ZD_CR178   CTL_REG(0x02C8)
 
#define ZD_CR179   CTL_REG(0x02CC)
 
#define ZD_CR180   CTL_REG(0x02D0)
 
#define ZD_CR181   CTL_REG(0x02D4)
 
#define ZD_CR182   CTL_REG(0x02D8)
 
#define ZD_CR183   CTL_REG(0x02DC)
 
#define ZD_CR184   CTL_REG(0x02E0)
 
#define ZD_CR185   CTL_REG(0x02E4)
 
#define ZD_CR186   CTL_REG(0x02E8)
 
#define ZD_CR187   CTL_REG(0x02EC)
 
#define ZD_CR188   CTL_REG(0x02F0)
 
#define ZD_CR189   CTL_REG(0x02F4)
 
#define ZD_CR190   CTL_REG(0x02F8)
 
#define ZD_CR191   CTL_REG(0x02FC)
 
#define ZD_CR192   CTL_REG(0x0300)
 
#define ZD_CR193   CTL_REG(0x0304)
 
#define ZD_CR194   CTL_REG(0x0308)
 
#define ZD_CR195   CTL_REG(0x030C)
 
#define ZD_CR196   CTL_REG(0x0310)
 
#define ZD_CR197   CTL_REG(0x0314)
 
#define ZD_CR198   CTL_REG(0x0318)
 
#define ZD_CR199   CTL_REG(0x031C)
 
#define ZD_CR200   CTL_REG(0x0320)
 
#define ZD_CR201   CTL_REG(0x0324)
 
#define ZD_CR202   CTL_REG(0x0328)
 
#define ZD_CR203
 
#define ZD_CR204   CTL_REG(0x0330)
 
#define ZD_CR205   CTL_REG(0x0334)
 
#define ZD_CR206   CTL_REG(0x0338)
 
#define ZD_CR207   CTL_REG(0x033C)
 
#define ZD_CR208   CTL_REG(0x0340)
 
#define ZD_CR209   CTL_REG(0x0344)
 
#define ZD_CR210   CTL_REG(0x0348)
 
#define ZD_CR211   CTL_REG(0x034C)
 
#define ZD_CR212   CTL_REG(0x0350)
 
#define ZD_CR213   CTL_REG(0x0354)
 
#define ZD_CR214   CTL_REG(0x0358)
 
#define ZD_CR215   CTL_REG(0x035C)
 
#define ZD_CR216   CTL_REG(0x0360)
 
#define ZD_CR217   CTL_REG(0x0364)
 
#define ZD_CR218   CTL_REG(0x0368)
 
#define ZD_CR219   CTL_REG(0x036C)
 
#define ZD_CR220   CTL_REG(0x0370)
 
#define ZD_CR221   CTL_REG(0x0374)
 
#define ZD_CR222   CTL_REG(0x0378)
 
#define ZD_CR223   CTL_REG(0x037C)
 
#define ZD_CR224   CTL_REG(0x0380)
 
#define ZD_CR225   CTL_REG(0x0384)
 
#define ZD_CR226   CTL_REG(0x0388)
 
#define ZD_CR227   CTL_REG(0x038C)
 
#define ZD_CR228   CTL_REG(0x0390)
 
#define ZD_CR229   CTL_REG(0x0394)
 
#define ZD_CR230   CTL_REG(0x0398)
 
#define ZD_CR231   CTL_REG(0x039C)
 
#define ZD_CR232   CTL_REG(0x03A0)
 
#define ZD_CR233   CTL_REG(0x03A4)
 
#define ZD_CR234   CTL_REG(0x03A8)
 
#define ZD_CR235   CTL_REG(0x03AC)
 
#define ZD_CR236   CTL_REG(0x03B0)
 
#define ZD_CR240   CTL_REG(0x03C0)
 
#define ZD_CR241   CTL_REG(0x03C4)
 
#define ZD_CR242   CTL_REG(0x03C8)
 
#define ZD_CR243   CTL_REG(0x03CC)
 
#define ZD_CR244   CTL_REG(0x03D0)
 
#define ZD_CR245   CTL_REG(0x03D4)
 
#define ZD_CR251
 
#define ZD_CR252   CTL_REG(0x03F0)
 
#define ZD_CR253   CTL_REG(0x03F4)
 
#define ZD_CR254   CTL_REG(0x03F8)
 
#define ZD_CR255   CTL_REG(0x03FC)
 
#define CR_MAX_PHY_REG   255
 
#define CR_RF_IF_CLK   CTL_REG(0x0400)
 
#define CR_RF_IF_DATA   CTL_REG(0x0404)
 
#define CR_PE1_PE2   CTL_REG(0x0408)
 
#define CR_PE2_DLY   CTL_REG(0x040C)
 
#define CR_LE1   CTL_REG(0x0410)
 
#define CR_LE2   CTL_REG(0x0414)
 
#define CR_GPI_EN   CTL_REG(0x0418)
 
#define CR_RADIO_PD   CTL_REG(0x042C)
 
#define CR_RF2948_PD   CTL_REG(0x042C)
 
#define CR_ENABLE_PS_MANUAL_AGC   CTL_REG(0x043C)
 
#define CR_CONFIG_PHILIPS   CTL_REG(0x0440)
 
#define CR_SA2400_SER_AP   CTL_REG(0x0444)
 
#define CR_I2C_WRITE   CTL_REG(0x0444)
 
#define CR_SA2400_SER_RP   CTL_REG(0x0448)
 
#define CR_RADIO_PE   CTL_REG(0x0458)
 
#define CR_RST_BUS_MASTER   CTL_REG(0x045C)
 
#define CR_RFCFG   CTL_REG(0x0464)
 
#define CR_HSTSCHG   CTL_REG(0x046C)
 
#define CR_PHY_ON   CTL_REG(0x0474)
 
#define CR_RX_DELAY   CTL_REG(0x0478)
 
#define CR_RX_PE_DELAY   CTL_REG(0x047C)
 
#define CR_GPIO_1   CTL_REG(0x0490)
 
#define CR_GPIO_2   CTL_REG(0x0494)
 
#define CR_EncryBufMux   CTL_REG(0x04A8)
 
#define CR_PS_CTRL   CTL_REG(0x0500)
 
#define CR_ADDA_PWR_DWN   CTL_REG(0x0504)
 
#define CR_ADDA_MBIAS_WARMTIME   CTL_REG(0x0508)
 
#define CR_MAC_PS_STATE   CTL_REG(0x050C)
 
#define CR_INTERRUPT   CTL_REG(0x0510)
 
#define INT_TX_COMPLETE   (1 << 0)
 
#define INT_RX_COMPLETE   (1 << 1)
 
#define INT_RETRY_FAIL   (1 << 2)
 
#define INT_WAKEUP   (1 << 3)
 
#define INT_DTIM_NOTIFY   (1 << 5)
 
#define INT_CFG_NEXT_BCN   (1 << 6)
 
#define INT_BUS_ABORT   (1 << 7)
 
#define INT_TX_FIFO_READY   (1 << 8)
 
#define INT_UART   (1 << 9)
 
#define INT_TX_COMPLETE_EN   (1 << 16)
 
#define INT_RX_COMPLETE_EN   (1 << 17)
 
#define INT_RETRY_FAIL_EN   (1 << 18)
 
#define INT_WAKEUP_EN   (1 << 19)
 
#define INT_DTIM_NOTIFY_EN   (1 << 21)
 
#define INT_CFG_NEXT_BCN_EN   (1 << 22)
 
#define INT_BUS_ABORT_EN   (1 << 23)
 
#define INT_TX_FIFO_READY_EN   (1 << 24)
 
#define INT_UART_EN   (1 << 25)
 
#define CR_TSF_LOW_PART   CTL_REG(0x0514)
 
#define CR_TSF_HIGH_PART   CTL_REG(0x0518)
 
#define CR_ATIM_WND_PERIOD   CTL_REG(0x051C)
 
#define CR_BCN_INTERVAL   CTL_REG(0x0520)
 
#define CR_PRE_TBTT   CTL_REG(0x0524)
 
#define CR_UART_RBR_THR_DLL   CTL_REG(0x0540)
 
#define CR_UART_DLM_IER   CTL_REG(0x0544)
 
#define CR_UART_IIR_FCR   CTL_REG(0x0548)
 
#define CR_UART_LCR   CTL_REG(0x054c)
 
#define CR_UART_MCR   CTL_REG(0x0550)
 
#define CR_UART_LSR   CTL_REG(0x0554)
 
#define CR_UART_MSR   CTL_REG(0x0558)
 
#define CR_UART_ECR   CTL_REG(0x055c)
 
#define CR_UART_STATUS   CTL_REG(0x0560)
 
#define CR_PCI_TX_ADDR_P1   CTL_REG(0x0600)
 
#define CR_PCI_TX_AddR_P2   CTL_REG(0x0604)
 
#define CR_PCI_RX_AddR_P1   CTL_REG(0x0608)
 
#define CR_PCI_RX_AddR_P2   CTL_REG(0x060C)
 
#define CR_MAC_ADDR_P1   CTL_REG(0x0610)
 
#define CR_MAC_ADDR_P2   CTL_REG(0x0614)
 
#define CR_BSSID_P1   CTL_REG(0x0618)
 
#define CR_BSSID_P2   CTL_REG(0x061C)
 
#define CR_BCN_PLCP_CFG   CTL_REG(0x0620)
 
#define CR_GROUP_HASH_P1   CTL_REG(0x0624)
 
#define CR_GROUP_HASH_P2   CTL_REG(0x0628)
 
#define CR_RX_TIMEOUT   CTL_REG(0x062C)
 
#define CR_BASIC_RATE_TBL   CTL_REG(0x0630)
 
#define CR_RATE_1M   (1 << 0) /* 802.11b */
 
#define CR_RATE_2M   (1 << 1) /* 802.11b */
 
#define CR_RATE_5_5M   (1 << 2) /* 802.11b */
 
#define CR_RATE_11M   (1 << 3) /* 802.11b */
 
#define CR_RATE_6M   (1 << 8) /* 802.11g */
 
#define CR_RATE_9M   (1 << 9) /* 802.11g */
 
#define CR_RATE_12M   (1 << 10) /* 802.11g */
 
#define CR_RATE_18M   (1 << 11) /* 802.11g */
 
#define CR_RATE_24M   (1 << 12) /* 802.11g */
 
#define CR_RATE_36M   (1 << 13) /* 802.11g */
 
#define CR_RATE_48M   (1 << 14) /* 802.11g */
 
#define CR_RATE_54M   (1 << 15) /* 802.11g */
 
#define CR_RATES_80211G   0xff00
 
#define CR_RATES_80211B   0x000f
 
#define CR_MANDATORY_RATE_TBL   CTL_REG(0x0634)
 
#define CR_RTS_CTS_RATE   CTL_REG(0x0638)
 
#define RTSCTS_SH_RTS_RATE   0
 
#define RTSCTS_SH_EXP_CTS_RATE   4
 
#define RTSCTS_SH_RTS_MOD_TYPE   8
 
#define RTSCTS_SH_RTS_PMB_TYPE   9
 
#define RTSCTS_SH_CTS_RATE   16
 
#define RTSCTS_SH_CTS_MOD_TYPE   24
 
#define RTSCTS_SH_CTS_PMB_TYPE   25
 
#define CR_WEP_PROTECT   CTL_REG(0x063C)
 
#define CR_RX_THRESHOLD   CTL_REG(0x0640)
 
#define CR_LED   CTL_REG(0x0644)
 
#define LED1   (1 << 8)
 
#define LED2   (1 << 9)
 
#define LED_SW   (1 << 10)
 
#define CR_AFTER_PNP   CTL_REG(0x0648)
 
#define CR_ACK_TIME_80211   CTL_REG(0x0658)
 
#define CR_RX_OFFSET   CTL_REG(0x065c)
 
#define CR_BCN_LENGTH   CTL_REG(0x0664)
 
#define CR_PHY_DELAY   CTL_REG(0x066C)
 
#define CR_BCN_FIFO   CTL_REG(0x0670)
 
#define CR_SNIFFER_ON   CTL_REG(0x0674)
 
#define CR_ENCRYPTION_TYPE   CTL_REG(0x0678)
 
#define NO_WEP   0
 
#define WEP64   1
 
#define WEP128   5
 
#define WEP256   6
 
#define ENC_SNIFFER   8
 
#define CR_ZD1211_RETRY_MAX   CTL_REG(0x067C)
 
#define CR_REG1   CTL_REG(0x0680)
 
#define UNLOCK_PHY_REGS   (1 << 7)
 
#define CR_DEVICE_STATE   CTL_REG(0x0684)
 
#define CR_UNDERRUN_CNT   CTL_REG(0x0688)
 
#define CR_RX_FILTER   CTL_REG(0x068c)
 
#define RX_FILTER_ASSOC_REQUEST   (1 << 0)
 
#define RX_FILTER_ASSOC_RESPONSE   (1 << 1)
 
#define RX_FILTER_REASSOC_REQUEST   (1 << 2)
 
#define RX_FILTER_REASSOC_RESPONSE   (1 << 3)
 
#define RX_FILTER_PROBE_REQUEST   (1 << 4)
 
#define RX_FILTER_PROBE_RESPONSE   (1 << 5)
 
#define RX_FILTER_BEACON   (1 << 8)
 
#define RX_FILTER_ATIM   (1 << 9)
 
#define RX_FILTER_DISASSOC   (1 << 10)
 
#define RX_FILTER_AUTH   (1 << 11)
 
#define RX_FILTER_DEAUTH   (1 << 12)
 
#define RX_FILTER_PSPOLL   (1 << 26)
 
#define RX_FILTER_RTS   (1 << 27)
 
#define RX_FILTER_CTS   (1 << 28)
 
#define RX_FILTER_ACK   (1 << 29)
 
#define RX_FILTER_CFEND   (1 << 30)
 
#define RX_FILTER_CFACK   (1 << 31)
 
#define STA_RX_FILTER
 
#define RX_FILTER_CTRL
 
#define BCN_MODE_AP   0x1000000
 
#define BCN_MODE_IBSS   0x2000000
 
#define CR_ACK_TIMEOUT_EXT   CTL_REG(0x0690)
 
#define CR_BCN_FIFO_SEMAPHORE   CTL_REG(0x0694)
 
#define CR_IFS_VALUE   CTL_REG(0x0698)
 
#define IFS_VALUE_DIFS_SH   0
 
#define IFS_VALUE_EIFS_SH   12
 
#define IFS_VALUE_SIFS_SH   24
 
#define IFS_VALUE_DEFAULT
 
#define CR_RX_TIME_OUT   CTL_REG(0x069C)
 
#define CR_TOTAL_RX_FRM   CTL_REG(0x06A0)
 
#define CR_CRC32_CNT   CTL_REG(0x06A4)
 
#define CR_CRC16_CNT   CTL_REG(0x06A8)
 
#define CR_DECRYPTION_ERR_UNI   CTL_REG(0x06AC)
 
#define CR_RX_FIFO_OVERRUN   CTL_REG(0x06B0)
 
#define CR_DECRYPTION_ERR_MUL   CTL_REG(0x06BC)
 
#define CR_NAV_CNT   CTL_REG(0x06C4)
 
#define CR_NAV_CCA   CTL_REG(0x06C8)
 
#define CR_RETRY_CNT   CTL_REG(0x06CC)
 
#define CR_READ_TCB_ADDR   CTL_REG(0x06E8)
 
#define CR_READ_RFD_ADDR   CTL_REG(0x06EC)
 
#define CR_CWMIN_CWMAX   CTL_REG(0x06F0)
 
#define CR_TOTAL_TX_FRM   CTL_REG(0x06F4)
 
#define CR_CAM_MODE   CTL_REG(0x0700)
 
#define MODE_IBSS   0x0
 
#define MODE_AP   0x1
 
#define MODE_STA   0x2
 
#define MODE_AP_WDS   0x3
 
#define CR_CAM_ROLL_TB_LOW   CTL_REG(0x0704)
 
#define CR_CAM_ROLL_TB_HIGH   CTL_REG(0x0708)
 
#define CR_CAM_ADDRESS   CTL_REG(0x070C)
 
#define CR_CAM_DATA   CTL_REG(0x0710)
 
#define CR_ROMDIR   CTL_REG(0x0714)
 
#define CR_DECRY_ERR_FLG_LOW   CTL_REG(0x0714)
 
#define CR_DECRY_ERR_FLG_HIGH   CTL_REG(0x0718)
 
#define CR_WEPKEY0   CTL_REG(0x0720)
 
#define CR_WEPKEY1   CTL_REG(0x0724)
 
#define CR_WEPKEY2   CTL_REG(0x0728)
 
#define CR_WEPKEY3   CTL_REG(0x072C)
 
#define CR_WEPKEY4   CTL_REG(0x0730)
 
#define CR_WEPKEY5   CTL_REG(0x0734)
 
#define CR_WEPKEY6   CTL_REG(0x0738)
 
#define CR_WEPKEY7   CTL_REG(0x073C)
 
#define CR_WEPKEY8   CTL_REG(0x0740)
 
#define CR_WEPKEY9   CTL_REG(0x0744)
 
#define CR_WEPKEY10   CTL_REG(0x0748)
 
#define CR_WEPKEY11   CTL_REG(0x074C)
 
#define CR_WEPKEY12   CTL_REG(0x0750)
 
#define CR_WEPKEY13   CTL_REG(0x0754)
 
#define CR_WEPKEY14   CTL_REG(0x0758)
 
#define CR_WEPKEY15   CTL_REG(0x075c)
 
#define CR_TKIP_MODE   CTL_REG(0x0760)
 
#define CR_EEPROM_PROTECT0   CTL_REG(0x0758)
 
#define CR_EEPROM_PROTECT1   CTL_REG(0x075C)
 
#define CR_DBG_FIFO_RD   CTL_REG(0x0800)
 
#define CR_DBG_SELECT   CTL_REG(0x0804)
 
#define CR_FIFO_Length   CTL_REG(0x0808)
 
#define CR_RSSI_MGC   CTL_REG(0x0810)
 
#define CR_PON   CTL_REG(0x0818)
 
#define CR_RX_ON   CTL_REG(0x081C)
 
#define CR_TX_ON   CTL_REG(0x0820)
 
#define CR_CHIP_EN   CTL_REG(0x0824)
 
#define CR_LO_SW   CTL_REG(0x0828)
 
#define CR_TXRX_SW   CTL_REG(0x082C)
 
#define CR_S_MD   CTL_REG(0x0830)
 
#define CR_USB_DEBUG_PORT   CTL_REG(0x0888)
 
#define CR_ZD1211B_CWIN_MAX_MIN_AC0   CTL_REG(0x0b00)
 
#define CR_ZD1211B_CWIN_MAX_MIN_AC1   CTL_REG(0x0b04)
 
#define CR_ZD1211B_CWIN_MAX_MIN_AC2   CTL_REG(0x0b08)
 
#define CR_ZD1211B_CWIN_MAX_MIN_AC3   CTL_REG(0x0b0c)
 
#define CR_ZD1211B_AIFS_CTL1   CTL_REG(0x0b10)
 
#define CR_ZD1211B_AIFS_CTL2   CTL_REG(0x0b14)
 
#define CR_ZD1211B_TXOP   CTL_REG(0x0b20)
 
#define CR_ZD1211B_RETRY_MAX   CTL_REG(0x0b28)
 
#define ZD1211_RETRY_COUNT   0
 
#define ZD1211B_RETRY_COUNT
 
#define UW2453_INTR_REG   ((zd_addr_t)0x85c1)
 
#define CWIN_SIZE   0x007f043f
 
#define HWINT_ENABLED
 
#define HWINT_DISABLED   0
 
#define E2P_PWR_INT_GUARD   8
 
#define E2P_CHANNEL_COUNT   14
 
#define E2P_SUBID   E2P_DATA(0x00)
 
#define E2P_POD   E2P_DATA(0x02)
 
#define E2P_MAC_ADDR_P1   E2P_DATA(0x04)
 
#define E2P_MAC_ADDR_P2   E2P_DATA(0x06)
 
#define E2P_PWR_CAL_VALUE1   E2P_DATA(0x08)
 
#define E2P_PWR_CAL_VALUE2   E2P_DATA(0x0a)
 
#define E2P_PWR_CAL_VALUE3   E2P_DATA(0x0c)
 
#define E2P_PWR_CAL_VALUE4   E2P_DATA(0x0e)
 
#define E2P_PWR_INT_VALUE1   E2P_DATA(0x10)
 
#define E2P_PWR_INT_VALUE2   E2P_DATA(0x12)
 
#define E2P_PWR_INT_VALUE3   E2P_DATA(0x14)
 
#define E2P_PWR_INT_VALUE4   E2P_DATA(0x16)
 
#define E2P_ALLOWED_CHANNEL   E2P_DATA(0x18)
 
#define E2P_DEVICE_VER   E2P_DATA(0x20)
 
#define E2P_PHY_REG   E2P_DATA(0x25)
 
#define E2P_36M_CAL_VALUE1   E2P_DATA(0x28)
 
#define E2P_36M_CAL_VALUE2   E2P_DATA(0x2a)
 
#define E2P_36M_CAL_VALUE3   E2P_DATA(0x2c)
 
#define E2P_36M_CAL_VALUE4   E2P_DATA(0x2e)
 
#define E2P_11A_INT_VALUE1   E2P_DATA(0x30)
 
#define E2P_11A_INT_VALUE2   E2P_DATA(0x32)
 
#define E2P_11A_INT_VALUE3   E2P_DATA(0x34)
 
#define E2P_11A_INT_VALUE4   E2P_DATA(0x36)
 
#define E2P_48M_CAL_VALUE1   E2P_DATA(0x38)
 
#define E2P_48M_CAL_VALUE2   E2P_DATA(0x3a)
 
#define E2P_48M_CAL_VALUE3   E2P_DATA(0x3c)
 
#define E2P_48M_CAL_VALUE4   E2P_DATA(0x3e)
 
#define E2P_48M_INT_VALUE1   E2P_DATA(0x40)
 
#define E2P_48M_INT_VALUE2   E2P_DATA(0x42)
 
#define E2P_48M_INT_VALUE3   E2P_DATA(0x44)
 
#define E2P_48M_INT_VALUE4   E2P_DATA(0x46)
 
#define E2P_54M_CAL_VALUE1   E2P_DATA(0x48) /* ??? */
 
#define E2P_54M_CAL_VALUE2   E2P_DATA(0x4a)
 
#define E2P_54M_CAL_VALUE3   E2P_DATA(0x4c)
 
#define E2P_54M_CAL_VALUE4   E2P_DATA(0x4e)
 
#define E2P_54M_INT_VALUE1   E2P_DATA(0x50)
 
#define E2P_54M_INT_VALUE2   E2P_DATA(0x52)
 
#define E2P_54M_INT_VALUE3   E2P_DATA(0x54)
 
#define E2P_54M_INT_VALUE4   E2P_DATA(0x56)
 
#define FWRAW_REGS_ADDR   FWRAW_DATA(0x1d)
 
#define FW_LINK_OFF   0x0
 
#define FW_LINK_TX   0x1
 
#define zd_chip_dev(chip)   (&(chip)->usb.intf->dev)
 

Enumerations

enum  {
  CR_START = 0x9000, FW_START = 0xee00, E2P_START = 0xf800, E2P_LEN = 0x800,
  E2P_LOAD_CODE_LEN = 0xe, E2P_LOAD_VECT_LEN = 0x9, E2P_DATA_LEN = 0x7e, E2P_BOOT_CODE_LEN = 0x760,
  E2P_INTR_VECT_LEN = 0xb, E2P_DATA_OFFSET = E2P_LOAD_CODE_LEN + E2P_LOAD_VECT_LEN, E2P_BOOT_CODE_OFFSET = E2P_DATA_OFFSET + E2P_DATA_LEN
}
 
enum  {
  FW_REG_FIRMWARE_VER = 0, FW_REG_USB_SPEED = 1, FW_REG_FIX_TX_RATE = 2, FW_REG_LED_LINK_STATUS = 3,
  FW_REG_SOFT_RESET = 4, FW_REG_FLASH_CHK = 5
}
 
enum  { OFDM_36M_INDEX = 0, OFDM_48M_INDEX = 1, OFDM_54M_INDEX = 2 }
 
enum  led_status { ZD_LED_OFF = 0, ZD_LED_SCANNING = 1, ZD_LED_ASSOCIATED = 2 }
 

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_chip_read_mac_addr_fw (struct zd_chip *chip, u8 *addr)
 
int zd_chip_init_hw (struct zd_chip *chip)
 
int zd_chip_reset (struct zd_chip *chip)
 
int zd_ioread32v_locked (struct zd_chip *chip, u32 *values, const zd_addr_t *addresses, unsigned int count)
 
int zd_iowrite16a_locked (struct zd_chip *chip, const struct zd_ioreq16 *ioreqs, unsigned int count)
 
int _zd_iowrite32v_locked (struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count)
 
int zd_iowrite32a_locked (struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count)
 
int zd_rfwrite_cr_locked (struct zd_chip *chip, u32 value)
 
int zd_rfwritev_locked (struct zd_chip *chip, const u32 *values, unsigned int count, u8 bits)
 
int zd_rfwritev_cr_locked (struct zd_chip *chip, const u32 *values, unsigned int count)
 
int zd_ioread16 (struct zd_chip *chip, zd_addr_t addr, u16 *value)
 
int zd_iowrite16 (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_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_chip_set_channel (struct zd_chip *chip, u8 channel)
 
u8 zd_chip_get_channel (struct zd_chip *chip)
 
int zd_read_regdomain (struct zd_chip *chip, u8 *regdomain)
 
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_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_chip_enable_hwint (struct zd_chip *chip)
 
int zd_chip_disable_hwint (struct zd_chip *chip)
 
int zd_chip_generic_patch_6m_band (struct zd_chip *chip, int channel)
 
int zd_chip_set_rts_cts_rate_locked (struct zd_chip *chip, int preamble)
 
int zd_chip_set_basic_rates (struct zd_chip *chip, u16 cr_rates)
 
int zd_chip_lock_phy_regs (struct zd_chip *chip)
 
int zd_chip_unlock_phy_regs (struct zd_chip *chip)
 
int zd_chip_control_leds (struct zd_chip *chip, enum led_status status)
 
int zd_set_beacon_interval (struct zd_chip *chip, u16 interval, u8 dtim_period, int type)
 
u8 zd_rx_rate (const void *rx_frame, const struct rx_status *status)
 
int zd_chip_set_multicast_hash (struct zd_chip *chip, struct zd_mc_hash *hash)
 
u64 zd_chip_get_tsf (struct zd_chip *chip)
 

Macro Definition Documentation

#define BCN_MODE_AP   0x1000000

Definition at line 547 of file zd_chip.h.

#define BCN_MODE_IBSS   0x2000000

Definition at line 548 of file zd_chip.h.

#define CR_ACK_TIME_80211   CTL_REG(0x0658)

Definition at line 486 of file zd_chip.h.

#define CR_ACK_TIMEOUT_EXT   CTL_REG(0x0690)

Definition at line 552 of file zd_chip.h.

#define CR_ADDA_MBIAS_WARMTIME   CTL_REG(0x0508)

Definition at line 367 of file zd_chip.h.

#define CR_ADDA_PWR_DWN   CTL_REG(0x0504)

Definition at line 366 of file zd_chip.h.

#define CR_AFTER_PNP   CTL_REG(0x0648)

Definition at line 485 of file zd_chip.h.

#define CR_ATIM_WND_PERIOD   CTL_REG(0x051C)

Definition at line 397 of file zd_chip.h.

#define CR_BASIC_RATE_TBL   CTL_REG(0x0630)

Definition at line 441 of file zd_chip.h.

#define CR_BCN_FIFO   CTL_REG(0x0670)

Definition at line 492 of file zd_chip.h.

#define CR_BCN_FIFO_SEMAPHORE   CTL_REG(0x0694)

Definition at line 553 of file zd_chip.h.

#define CR_BCN_INTERVAL   CTL_REG(0x0520)

Definition at line 398 of file zd_chip.h.

#define CR_BCN_LENGTH   CTL_REG(0x0664)

Definition at line 490 of file zd_chip.h.

#define CR_BCN_PLCP_CFG   CTL_REG(0x0620)

Definition at line 423 of file zd_chip.h.

#define CR_BSSID_P1   CTL_REG(0x0618)

Definition at line 421 of file zd_chip.h.

#define CR_BSSID_P2   CTL_REG(0x061C)

Definition at line 422 of file zd_chip.h.

#define CR_CAM_ADDRESS   CTL_REG(0x070C)

Definition at line 590 of file zd_chip.h.

#define CR_CAM_DATA   CTL_REG(0x0710)

Definition at line 591 of file zd_chip.h.

#define CR_CAM_MODE   CTL_REG(0x0700)

Definition at line 582 of file zd_chip.h.

#define CR_CAM_ROLL_TB_HIGH   CTL_REG(0x0708)

Definition at line 589 of file zd_chip.h.

#define CR_CAM_ROLL_TB_LOW   CTL_REG(0x0704)

Definition at line 588 of file zd_chip.h.

#define CR_CHIP_EN   CTL_REG(0x0824)

Definition at line 629 of file zd_chip.h.

#define CR_CONFIG_PHILIPS   CTL_REG(0x0440)

Definition at line 351 of file zd_chip.h.

#define CR_CRC16_CNT   CTL_REG(0x06A8)

Definition at line 566 of file zd_chip.h.

#define CR_CRC32_CNT   CTL_REG(0x06A4)

Definition at line 565 of file zd_chip.h.

#define CR_CWMIN_CWMAX   CTL_REG(0x06F0)

Definition at line 578 of file zd_chip.h.

#define CR_DBG_FIFO_RD   CTL_REG(0x0800)

Definition at line 619 of file zd_chip.h.

#define CR_DBG_SELECT   CTL_REG(0x0804)

Definition at line 620 of file zd_chip.h.

#define CR_DECRY_ERR_FLG_HIGH   CTL_REG(0x0718)

Definition at line 596 of file zd_chip.h.

#define CR_DECRY_ERR_FLG_LOW   CTL_REG(0x0714)

Definition at line 595 of file zd_chip.h.

#define CR_DECRYPTION_ERR_MUL   CTL_REG(0x06BC)

Definition at line 570 of file zd_chip.h.

#define CR_DECRYPTION_ERR_UNI   CTL_REG(0x06AC)

Definition at line 567 of file zd_chip.h.

#define CR_DEVICE_STATE   CTL_REG(0x0684)

Definition at line 511 of file zd_chip.h.

#define CR_EEPROM_PROTECT0   CTL_REG(0x0758)

Definition at line 616 of file zd_chip.h.

#define CR_EEPROM_PROTECT1   CTL_REG(0x075C)

Definition at line 617 of file zd_chip.h.

#define CR_ENABLE_PS_MANUAL_AGC   CTL_REG(0x043C)

Definition at line 350 of file zd_chip.h.

#define CR_EncryBufMux   CTL_REG(0x04A8)

Definition at line 364 of file zd_chip.h.

#define CR_ENCRYPTION_TYPE   CTL_REG(0x0678)

Definition at line 495 of file zd_chip.h.

#define CR_FIFO_Length   CTL_REG(0x0808)

Definition at line 621 of file zd_chip.h.

#define CR_GPI_EN   CTL_REG(0x0418)

Definition at line 347 of file zd_chip.h.

#define CR_GPIO_1   CTL_REG(0x0490)

Definition at line 362 of file zd_chip.h.

#define CR_GPIO_2   CTL_REG(0x0494)

Definition at line 363 of file zd_chip.h.

#define CR_GROUP_HASH_P1   CTL_REG(0x0624)

Definition at line 433 of file zd_chip.h.

#define CR_GROUP_HASH_P2   CTL_REG(0x0628)

Definition at line 434 of file zd_chip.h.

#define CR_HSTSCHG   CTL_REG(0x046C)

Definition at line 358 of file zd_chip.h.

#define CR_I2C_WRITE   CTL_REG(0x0444)

Definition at line 353 of file zd_chip.h.

#define CR_IFS_VALUE   CTL_REG(0x0698)

Definition at line 555 of file zd_chip.h.

#define CR_INTERRUPT   CTL_REG(0x0510)

Definition at line 370 of file zd_chip.h.

#define CR_LE1   CTL_REG(0x0410)

Definition at line 344 of file zd_chip.h.

#define CR_LE2   CTL_REG(0x0414)

Definition at line 345 of file zd_chip.h.

#define CR_LED   CTL_REG(0x0644)

Definition at line 477 of file zd_chip.h.

#define CR_LO_SW   CTL_REG(0x0828)

Definition at line 630 of file zd_chip.h.

#define CR_MAC_ADDR_P1   CTL_REG(0x0610)

Definition at line 419 of file zd_chip.h.

#define CR_MAC_ADDR_P2   CTL_REG(0x0614)

Definition at line 420 of file zd_chip.h.

#define CR_MAC_PS_STATE   CTL_REG(0x050C)

Definition at line 368 of file zd_chip.h.

#define CR_MANDATORY_RATE_TBL   CTL_REG(0x0634)

Definition at line 461 of file zd_chip.h.

#define CR_MAX_PHY_REG   255

Definition at line 334 of file zd_chip.h.

#define CR_NAV_CCA   CTL_REG(0x06C8)

Definition at line 573 of file zd_chip.h.

#define CR_NAV_CNT   CTL_REG(0x06C4)

Definition at line 572 of file zd_chip.h.

#define CR_PCI_RX_AddR_P1   CTL_REG(0x0608)

Definition at line 415 of file zd_chip.h.

#define CR_PCI_RX_AddR_P2   CTL_REG(0x060C)

Definition at line 416 of file zd_chip.h.

#define CR_PCI_TX_ADDR_P1   CTL_REG(0x0600)

Definition at line 413 of file zd_chip.h.

#define CR_PCI_TX_AddR_P2   CTL_REG(0x0604)

Definition at line 414 of file zd_chip.h.

#define CR_PE1_PE2   CTL_REG(0x0408)

Definition at line 342 of file zd_chip.h.

#define CR_PE2_DLY   CTL_REG(0x040C)

Definition at line 343 of file zd_chip.h.

#define CR_PHY_DELAY   CTL_REG(0x066C)

Definition at line 491 of file zd_chip.h.

#define CR_PHY_ON   CTL_REG(0x0474)

Definition at line 359 of file zd_chip.h.

#define CR_PON   CTL_REG(0x0818)

Definition at line 626 of file zd_chip.h.

#define CR_PRE_TBTT   CTL_REG(0x0524)

Definition at line 399 of file zd_chip.h.

#define CR_PS_CTRL   CTL_REG(0x0500)

Definition at line 365 of file zd_chip.h.

#define CR_RADIO_PD   CTL_REG(0x042C)

Definition at line 348 of file zd_chip.h.

#define CR_RADIO_PE   CTL_REG(0x0458)

Definition at line 355 of file zd_chip.h.

#define CR_RATE_11M   (1 << 3) /* 802.11b */

Definition at line 445 of file zd_chip.h.

#define CR_RATE_12M   (1 << 10) /* 802.11g */

Definition at line 448 of file zd_chip.h.

#define CR_RATE_18M   (1 << 11) /* 802.11g */

Definition at line 449 of file zd_chip.h.

#define CR_RATE_1M   (1 << 0) /* 802.11b */

Definition at line 442 of file zd_chip.h.

#define CR_RATE_24M   (1 << 12) /* 802.11g */

Definition at line 450 of file zd_chip.h.

#define CR_RATE_2M   (1 << 1) /* 802.11b */

Definition at line 443 of file zd_chip.h.

#define CR_RATE_36M   (1 << 13) /* 802.11g */

Definition at line 451 of file zd_chip.h.

#define CR_RATE_48M   (1 << 14) /* 802.11g */

Definition at line 452 of file zd_chip.h.

#define CR_RATE_54M   (1 << 15) /* 802.11g */

Definition at line 453 of file zd_chip.h.

#define CR_RATE_5_5M   (1 << 2) /* 802.11b */

Definition at line 444 of file zd_chip.h.

#define CR_RATE_6M   (1 << 8) /* 802.11g */

Definition at line 446 of file zd_chip.h.

#define CR_RATE_9M   (1 << 9) /* 802.11g */

Definition at line 447 of file zd_chip.h.

#define CR_RATES_80211B   0x000f

Definition at line 455 of file zd_chip.h.

#define CR_RATES_80211G   0xff00

Definition at line 454 of file zd_chip.h.

#define CR_READ_RFD_ADDR   CTL_REG(0x06EC)

Definition at line 577 of file zd_chip.h.

#define CR_READ_TCB_ADDR   CTL_REG(0x06E8)

Definition at line 576 of file zd_chip.h.

#define CR_REG1   CTL_REG(0x0680)

Definition at line 504 of file zd_chip.h.

#define CR_RETRY_CNT   CTL_REG(0x06CC)

Definition at line 574 of file zd_chip.h.

#define CR_RF2948_PD   CTL_REG(0x042C)

Definition at line 349 of file zd_chip.h.

#define CR_RF_IF_CLK   CTL_REG(0x0400)

Definition at line 340 of file zd_chip.h.

#define CR_RF_IF_DATA   CTL_REG(0x0404)

Definition at line 341 of file zd_chip.h.

#define CR_RFCFG   CTL_REG(0x0464)

Definition at line 357 of file zd_chip.h.

#define CR_ROMDIR   CTL_REG(0x0714)

Definition at line 593 of file zd_chip.h.

#define CR_RSSI_MGC   CTL_REG(0x0810)

Definition at line 624 of file zd_chip.h.

#define CR_RST_BUS_MASTER   CTL_REG(0x045C)

Definition at line 356 of file zd_chip.h.

#define CR_RTS_CTS_RATE   CTL_REG(0x0638)

Definition at line 462 of file zd_chip.h.

#define CR_RX_DELAY   CTL_REG(0x0478)

Definition at line 360 of file zd_chip.h.

#define CR_RX_FIFO_OVERRUN   CTL_REG(0x06B0)

Definition at line 568 of file zd_chip.h.

#define CR_RX_FILTER   CTL_REG(0x068c)

Definition at line 514 of file zd_chip.h.

#define CR_RX_OFFSET   CTL_REG(0x065c)

Definition at line 488 of file zd_chip.h.

#define CR_RX_ON   CTL_REG(0x081C)

Definition at line 627 of file zd_chip.h.

#define CR_RX_PE_DELAY   CTL_REG(0x047C)

Definition at line 361 of file zd_chip.h.

#define CR_RX_THRESHOLD   CTL_REG(0x0640)

Definition at line 474 of file zd_chip.h.

#define CR_RX_TIME_OUT   CTL_REG(0x069C)

Definition at line 563 of file zd_chip.h.

#define CR_RX_TIMEOUT   CTL_REG(0x062C)

Definition at line 436 of file zd_chip.h.

#define CR_S_MD   CTL_REG(0x0830)

Definition at line 632 of file zd_chip.h.

#define CR_SA2400_SER_AP   CTL_REG(0x0444)

Definition at line 352 of file zd_chip.h.

#define CR_SA2400_SER_RP   CTL_REG(0x0448)

Definition at line 354 of file zd_chip.h.

#define CR_SNIFFER_ON   CTL_REG(0x0674)

Definition at line 493 of file zd_chip.h.

#define CR_TKIP_MODE   CTL_REG(0x0760)

Definition at line 614 of file zd_chip.h.

#define CR_TOTAL_RX_FRM   CTL_REG(0x06A0)

Definition at line 564 of file zd_chip.h.

#define CR_TOTAL_TX_FRM   CTL_REG(0x06F4)

Definition at line 579 of file zd_chip.h.

#define CR_TSF_HIGH_PART   CTL_REG(0x0518)

Definition at line 391 of file zd_chip.h.

#define CR_TSF_LOW_PART   CTL_REG(0x0514)

Definition at line 390 of file zd_chip.h.

#define CR_TX_ON   CTL_REG(0x0820)

Definition at line 628 of file zd_chip.h.

#define CR_TXRX_SW   CTL_REG(0x082C)

Definition at line 631 of file zd_chip.h.

#define CR_UART_DLM_IER   CTL_REG(0x0544)

Definition at line 404 of file zd_chip.h.

#define CR_UART_ECR   CTL_REG(0x055c)

Definition at line 410 of file zd_chip.h.

#define CR_UART_IIR_FCR   CTL_REG(0x0548)

Definition at line 405 of file zd_chip.h.

#define CR_UART_LCR   CTL_REG(0x054c)

Definition at line 406 of file zd_chip.h.

#define CR_UART_LSR   CTL_REG(0x0554)

Definition at line 408 of file zd_chip.h.

#define CR_UART_MCR   CTL_REG(0x0550)

Definition at line 407 of file zd_chip.h.

#define CR_UART_MSR   CTL_REG(0x0558)

Definition at line 409 of file zd_chip.h.

#define CR_UART_RBR_THR_DLL   CTL_REG(0x0540)

Definition at line 403 of file zd_chip.h.

#define CR_UART_STATUS   CTL_REG(0x0560)

Definition at line 411 of file zd_chip.h.

#define CR_UNDERRUN_CNT   CTL_REG(0x0688)

Definition at line 512 of file zd_chip.h.

#define CR_USB_DEBUG_PORT   CTL_REG(0x0888)

Definition at line 634 of file zd_chip.h.

#define CR_WEP_PROTECT   CTL_REG(0x063C)

Definition at line 473 of file zd_chip.h.

#define CR_WEPKEY0   CTL_REG(0x0720)

Definition at line 598 of file zd_chip.h.

#define CR_WEPKEY1   CTL_REG(0x0724)

Definition at line 599 of file zd_chip.h.

#define CR_WEPKEY10   CTL_REG(0x0748)

Definition at line 608 of file zd_chip.h.

#define CR_WEPKEY11   CTL_REG(0x074C)

Definition at line 609 of file zd_chip.h.

#define CR_WEPKEY12   CTL_REG(0x0750)

Definition at line 610 of file zd_chip.h.

#define CR_WEPKEY13   CTL_REG(0x0754)

Definition at line 611 of file zd_chip.h.

#define CR_WEPKEY14   CTL_REG(0x0758)

Definition at line 612 of file zd_chip.h.

#define CR_WEPKEY15   CTL_REG(0x075c)

Definition at line 613 of file zd_chip.h.

#define CR_WEPKEY2   CTL_REG(0x0728)

Definition at line 600 of file zd_chip.h.

#define CR_WEPKEY3   CTL_REG(0x072C)

Definition at line 601 of file zd_chip.h.

#define CR_WEPKEY4   CTL_REG(0x0730)

Definition at line 602 of file zd_chip.h.

#define CR_WEPKEY5   CTL_REG(0x0734)

Definition at line 603 of file zd_chip.h.

#define CR_WEPKEY6   CTL_REG(0x0738)

Definition at line 604 of file zd_chip.h.

#define CR_WEPKEY7   CTL_REG(0x073C)

Definition at line 605 of file zd_chip.h.

#define CR_WEPKEY8   CTL_REG(0x0740)

Definition at line 606 of file zd_chip.h.

#define CR_WEPKEY9   CTL_REG(0x0744)

Definition at line 607 of file zd_chip.h.

#define CR_ZD1211_RETRY_MAX   CTL_REG(0x067C)

Definition at line 502 of file zd_chip.h.

#define CR_ZD1211B_AIFS_CTL1   CTL_REG(0x0b10)

Definition at line 639 of file zd_chip.h.

#define CR_ZD1211B_AIFS_CTL2   CTL_REG(0x0b14)

Definition at line 640 of file zd_chip.h.

#define CR_ZD1211B_CWIN_MAX_MIN_AC0   CTL_REG(0x0b00)

Definition at line 635 of file zd_chip.h.

#define CR_ZD1211B_CWIN_MAX_MIN_AC1   CTL_REG(0x0b04)

Definition at line 636 of file zd_chip.h.

#define CR_ZD1211B_CWIN_MAX_MIN_AC2   CTL_REG(0x0b08)

Definition at line 637 of file zd_chip.h.

#define CR_ZD1211B_CWIN_MAX_MIN_AC3   CTL_REG(0x0b0c)

Definition at line 638 of file zd_chip.h.

#define CR_ZD1211B_RETRY_MAX   CTL_REG(0x0b28)

Definition at line 642 of file zd_chip.h.

#define CR_ZD1211B_TXOP   CTL_REG(0x0b20)

Definition at line 641 of file zd_chip.h.

#define CTL_REG (   offset)    ((zd_addr_t)(CR_START + (offset)))

Definition at line 61 of file zd_chip.h.

#define CWIN_SIZE   0x007f043f

Definition at line 657 of file zd_chip.h.

#define E2P_11A_INT_VALUE1   E2P_DATA(0x30)

Definition at line 702 of file zd_chip.h.

#define E2P_11A_INT_VALUE2   E2P_DATA(0x32)

Definition at line 703 of file zd_chip.h.

#define E2P_11A_INT_VALUE3   E2P_DATA(0x34)

Definition at line 704 of file zd_chip.h.

#define E2P_11A_INT_VALUE4   E2P_DATA(0x36)

Definition at line 705 of file zd_chip.h.

#define E2P_36M_CAL_VALUE1   E2P_DATA(0x28)

Definition at line 698 of file zd_chip.h.

#define E2P_36M_CAL_VALUE2   E2P_DATA(0x2a)

Definition at line 699 of file zd_chip.h.

#define E2P_36M_CAL_VALUE3   E2P_DATA(0x2c)

Definition at line 700 of file zd_chip.h.

#define E2P_36M_CAL_VALUE4   E2P_DATA(0x2e)

Definition at line 701 of file zd_chip.h.

#define E2P_48M_CAL_VALUE1   E2P_DATA(0x38)

Definition at line 706 of file zd_chip.h.

#define E2P_48M_CAL_VALUE2   E2P_DATA(0x3a)

Definition at line 707 of file zd_chip.h.

#define E2P_48M_CAL_VALUE3   E2P_DATA(0x3c)

Definition at line 708 of file zd_chip.h.

#define E2P_48M_CAL_VALUE4   E2P_DATA(0x3e)

Definition at line 709 of file zd_chip.h.

#define E2P_48M_INT_VALUE1   E2P_DATA(0x40)

Definition at line 710 of file zd_chip.h.

#define E2P_48M_INT_VALUE2   E2P_DATA(0x42)

Definition at line 711 of file zd_chip.h.

#define E2P_48M_INT_VALUE3   E2P_DATA(0x44)

Definition at line 712 of file zd_chip.h.

#define E2P_48M_INT_VALUE4   E2P_DATA(0x46)

Definition at line 713 of file zd_chip.h.

#define E2P_54M_CAL_VALUE1   E2P_DATA(0x48) /* ??? */

Definition at line 714 of file zd_chip.h.

#define E2P_54M_CAL_VALUE2   E2P_DATA(0x4a)

Definition at line 715 of file zd_chip.h.

#define E2P_54M_CAL_VALUE3   E2P_DATA(0x4c)

Definition at line 716 of file zd_chip.h.

#define E2P_54M_CAL_VALUE4   E2P_DATA(0x4e)

Definition at line 717 of file zd_chip.h.

#define E2P_54M_INT_VALUE1   E2P_DATA(0x50)

Definition at line 718 of file zd_chip.h.

#define E2P_54M_INT_VALUE2   E2P_DATA(0x52)

Definition at line 719 of file zd_chip.h.

#define E2P_54M_INT_VALUE3   E2P_DATA(0x54)

Definition at line 720 of file zd_chip.h.

#define E2P_54M_INT_VALUE4   E2P_DATA(0x56)

Definition at line 721 of file zd_chip.h.

#define E2P_ALLOWED_CHANNEL   E2P_DATA(0x18)

Definition at line 694 of file zd_chip.h.

#define E2P_CHANNEL_COUNT   14

Definition at line 670 of file zd_chip.h.

#define E2P_DATA (   offset)    ((zd_addr_t)(E2P_START + E2P_DATA_OFFSET + (offset)))

Definition at line 62 of file zd_chip.h.

#define E2P_DEVICE_VER   E2P_DATA(0x20)

Definition at line 696 of file zd_chip.h.

#define E2P_MAC_ADDR_P1   E2P_DATA(0x04)

Definition at line 681 of file zd_chip.h.

#define E2P_MAC_ADDR_P2   E2P_DATA(0x06)

Definition at line 682 of file zd_chip.h.

#define E2P_PHY_REG   E2P_DATA(0x25)

Definition at line 697 of file zd_chip.h.

#define E2P_POD   E2P_DATA(0x02)

Definition at line 680 of file zd_chip.h.

#define E2P_PWR_CAL_VALUE1   E2P_DATA(0x08)

Definition at line 683 of file zd_chip.h.

#define E2P_PWR_CAL_VALUE2   E2P_DATA(0x0a)

Definition at line 684 of file zd_chip.h.

#define E2P_PWR_CAL_VALUE3   E2P_DATA(0x0c)

Definition at line 685 of file zd_chip.h.

#define E2P_PWR_CAL_VALUE4   E2P_DATA(0x0e)

Definition at line 686 of file zd_chip.h.

#define E2P_PWR_INT_GUARD   8

Definition at line 669 of file zd_chip.h.

#define E2P_PWR_INT_VALUE1   E2P_DATA(0x10)

Definition at line 687 of file zd_chip.h.

#define E2P_PWR_INT_VALUE2   E2P_DATA(0x12)

Definition at line 688 of file zd_chip.h.

#define E2P_PWR_INT_VALUE3   E2P_DATA(0x14)

Definition at line 689 of file zd_chip.h.

#define E2P_PWR_INT_VALUE4   E2P_DATA(0x16)

Definition at line 690 of file zd_chip.h.

#define E2P_SUBID   E2P_DATA(0x00)

Definition at line 679 of file zd_chip.h.

#define ENC_SNIFFER   8

Definition at line 500 of file zd_chip.h.

#define FW_LINK_OFF   0x0

Definition at line 739 of file zd_chip.h.

#define FW_LINK_TX   0x1

Definition at line 740 of file zd_chip.h.

#define FWRAW_DATA (   offset)    ((zd_addr_t)(FW_START + (offset)))

Definition at line 63 of file zd_chip.h.

#define FWRAW_REGS_ADDR   FWRAW_DATA(0x1d)

Definition at line 724 of file zd_chip.h.

#define HWINT_DISABLED   0

Definition at line 667 of file zd_chip.h.

#define HWINT_ENABLED
Value:
INT_RX_COMPLETE_EN| \
INT_RETRY_FAIL_EN| \
INT_WAKEUP_EN| \
INT_CFG_NEXT_BCN_EN)

Definition at line 660 of file zd_chip.h.

#define IFS_VALUE_DEFAULT
Value:
(( 50 << IFS_VALUE_DIFS_SH) | \
(1148 << IFS_VALUE_EIFS_SH) | \

Definition at line 559 of file zd_chip.h.

#define IFS_VALUE_DIFS_SH   0

Definition at line 556 of file zd_chip.h.

#define IFS_VALUE_EIFS_SH   12

Definition at line 557 of file zd_chip.h.

#define IFS_VALUE_SIFS_SH   24

Definition at line 558 of file zd_chip.h.

#define INT_BUS_ABORT   (1 << 7)

Definition at line 377 of file zd_chip.h.

#define INT_BUS_ABORT_EN   (1 << 23)

Definition at line 386 of file zd_chip.h.

#define INT_CFG_NEXT_BCN   (1 << 6)

Definition at line 376 of file zd_chip.h.

#define INT_CFG_NEXT_BCN_EN   (1 << 22)

Definition at line 385 of file zd_chip.h.

#define INT_DTIM_NOTIFY   (1 << 5)

Definition at line 375 of file zd_chip.h.

#define INT_DTIM_NOTIFY_EN   (1 << 21)

Definition at line 384 of file zd_chip.h.

#define INT_RETRY_FAIL   (1 << 2)

Definition at line 373 of file zd_chip.h.

#define INT_RETRY_FAIL_EN   (1 << 18)

Definition at line 382 of file zd_chip.h.

#define INT_RX_COMPLETE   (1 << 1)

Definition at line 372 of file zd_chip.h.

#define INT_RX_COMPLETE_EN   (1 << 17)

Definition at line 381 of file zd_chip.h.

#define INT_TX_COMPLETE   (1 << 0)

Definition at line 371 of file zd_chip.h.

#define INT_TX_COMPLETE_EN   (1 << 16)

Definition at line 380 of file zd_chip.h.

#define INT_TX_FIFO_READY   (1 << 8)

Definition at line 378 of file zd_chip.h.

#define INT_TX_FIFO_READY_EN   (1 << 24)

Definition at line 387 of file zd_chip.h.

#define INT_UART   (1 << 9)

Definition at line 379 of file zd_chip.h.

#define INT_UART_EN   (1 << 25)

Definition at line 388 of file zd_chip.h.

#define INT_WAKEUP   (1 << 3)

Definition at line 374 of file zd_chip.h.

#define INT_WAKEUP_EN   (1 << 19)

Definition at line 383 of file zd_chip.h.

#define LED1   (1 << 8)

Definition at line 479 of file zd_chip.h.

#define LED2   (1 << 9)

Definition at line 480 of file zd_chip.h.

#define LED_SW   (1 << 10)

Definition at line 481 of file zd_chip.h.

#define MODE_AP   0x1

Definition at line 584 of file zd_chip.h.

#define MODE_AP_WDS   0x3

Definition at line 586 of file zd_chip.h.

#define MODE_IBSS   0x0

Definition at line 583 of file zd_chip.h.

#define MODE_STA   0x2

Definition at line 585 of file zd_chip.h.

#define NO_WEP   0

Definition at line 496 of file zd_chip.h.

#define RTSCTS_SH_CTS_MOD_TYPE   24

Definition at line 470 of file zd_chip.h.

#define RTSCTS_SH_CTS_PMB_TYPE   25

Definition at line 471 of file zd_chip.h.

#define RTSCTS_SH_CTS_RATE   16

Definition at line 469 of file zd_chip.h.

#define RTSCTS_SH_EXP_CTS_RATE   4

Definition at line 466 of file zd_chip.h.

#define RTSCTS_SH_RTS_MOD_TYPE   8

Definition at line 467 of file zd_chip.h.

#define RTSCTS_SH_RTS_PMB_TYPE   9

Definition at line 468 of file zd_chip.h.

#define RTSCTS_SH_RTS_RATE   0

Definition at line 465 of file zd_chip.h.

#define RX_FILTER_ACK   (1 << 29)

Definition at line 530 of file zd_chip.h.

#define RX_FILTER_ASSOC_REQUEST   (1 << 0)

Definition at line 515 of file zd_chip.h.

#define RX_FILTER_ASSOC_RESPONSE   (1 << 1)

Definition at line 516 of file zd_chip.h.

#define RX_FILTER_ATIM   (1 << 9)

Definition at line 523 of file zd_chip.h.

#define RX_FILTER_AUTH   (1 << 11)

Definition at line 525 of file zd_chip.h.

#define RX_FILTER_BEACON   (1 << 8)

Definition at line 522 of file zd_chip.h.

#define RX_FILTER_CFACK   (1 << 31)

Definition at line 532 of file zd_chip.h.

#define RX_FILTER_CFEND   (1 << 30)

Definition at line 531 of file zd_chip.h.

#define RX_FILTER_CTRL
Value:
RX_FILTER_CFEND | RX_FILTER_CFACK)

Definition at line 544 of file zd_chip.h.

#define RX_FILTER_CTS   (1 << 28)

Definition at line 529 of file zd_chip.h.

#define RX_FILTER_DEAUTH   (1 << 12)

Definition at line 526 of file zd_chip.h.

#define RX_FILTER_DISASSOC   (1 << 10)

Definition at line 524 of file zd_chip.h.

#define RX_FILTER_PROBE_REQUEST   (1 << 4)

Definition at line 519 of file zd_chip.h.

#define RX_FILTER_PROBE_RESPONSE   (1 << 5)

Definition at line 520 of file zd_chip.h.

#define RX_FILTER_PSPOLL   (1 << 26)

Definition at line 527 of file zd_chip.h.

#define RX_FILTER_REASSOC_REQUEST   (1 << 2)

Definition at line 517 of file zd_chip.h.

#define RX_FILTER_REASSOC_RESPONSE   (1 << 3)

Definition at line 518 of file zd_chip.h.

#define RX_FILTER_RTS   (1 << 27)

Definition at line 528 of file zd_chip.h.

#define STA_RX_FILTER
Value:
RX_FILTER_REASSOC_REQUEST | RX_FILTER_REASSOC_RESPONSE | \
RX_FILTER_PROBE_REQUEST | RX_FILTER_PROBE_RESPONSE | \
(0x3 << 6) /* vendor driver sets these reserved bits */ | \
(0x7 << 13) /* vendor driver sets these reserved bits */ | \
RX_FILTER_PSPOLL | RX_FILTER_ACK) /* 0x2400ffff */

Definition at line 535 of file zd_chip.h.

#define UNLOCK_PHY_REGS   (1 << 7)

Definition at line 509 of file zd_chip.h.

#define UW2453_INTR_REG   ((zd_addr_t)0x85c1)

Definition at line 655 of file zd_chip.h.

#define WEP128   5

Definition at line 498 of file zd_chip.h.

#define WEP256   6

Definition at line 499 of file zd_chip.h.

#define WEP64   1

Definition at line 497 of file zd_chip.h.

#define ZD1211_RETRY_COUNT   0

Definition at line 647 of file zd_chip.h.

#define ZD1211B_RETRY_COUNT
Value:

Definition at line 648 of file zd_chip.h.

#define zd_chip_dev (   chip)    (&(chip)->usb.intf->dev)

Definition at line 779 of file zd_chip.h.

#define ZD_CR0   CTL_REG(0x0000)

Definition at line 66 of file zd_chip.h.

#define ZD_CR1   CTL_REG(0x0004)

Definition at line 67 of file zd_chip.h.

#define ZD_CR10   CTL_REG(0x0028)

Definition at line 83 of file zd_chip.h.

#define ZD_CR100   CTL_REG(0x0190)

Definition at line 179 of file zd_chip.h.

#define ZD_CR101   CTL_REG(0x0194)

Definition at line 180 of file zd_chip.h.

#define ZD_CR102   CTL_REG(0x0198)

Definition at line 181 of file zd_chip.h.

#define ZD_CR103   CTL_REG(0x019C)

Definition at line 182 of file zd_chip.h.

#define ZD_CR104   CTL_REG(0x01A0)

Definition at line 183 of file zd_chip.h.

#define ZD_CR105   CTL_REG(0x01A4)

Definition at line 184 of file zd_chip.h.

#define ZD_CR106   CTL_REG(0x01A8)

Definition at line 185 of file zd_chip.h.

#define ZD_CR107   CTL_REG(0x01AC)

Definition at line 186 of file zd_chip.h.

#define ZD_CR108   CTL_REG(0x01B0)

Definition at line 187 of file zd_chip.h.

#define ZD_CR109   CTL_REG(0x01B4)

Definition at line 188 of file zd_chip.h.

#define ZD_CR11   CTL_REG(0x002C)

Definition at line 87 of file zd_chip.h.

#define ZD_CR110   CTL_REG(0x01B8)

Definition at line 189 of file zd_chip.h.

#define ZD_CR111   CTL_REG(0x01BC)

Definition at line 190 of file zd_chip.h.

#define ZD_CR112   CTL_REG(0x01C0)

Definition at line 191 of file zd_chip.h.

#define ZD_CR113   CTL_REG(0x01C4)

Definition at line 192 of file zd_chip.h.

#define ZD_CR114   CTL_REG(0x01C8)

Definition at line 193 of file zd_chip.h.

#define ZD_CR115   CTL_REG(0x01CC)

Definition at line 194 of file zd_chip.h.

#define ZD_CR116   CTL_REG(0x01D0)

Definition at line 195 of file zd_chip.h.

#define ZD_CR117   CTL_REG(0x01D4)

Definition at line 196 of file zd_chip.h.

#define ZD_CR118   CTL_REG(0x01D8)

Definition at line 197 of file zd_chip.h.

#define ZD_CR119   CTL_REG(0x01DC)

Definition at line 198 of file zd_chip.h.

#define ZD_CR12   CTL_REG(0x0030)

Definition at line 91 of file zd_chip.h.

#define ZD_CR120   CTL_REG(0x01E0)

Definition at line 199 of file zd_chip.h.

#define ZD_CR121   CTL_REG(0x01E4)

Definition at line 200 of file zd_chip.h.

#define ZD_CR122   CTL_REG(0x01E8)

Definition at line 201 of file zd_chip.h.

#define ZD_CR123   CTL_REG(0x01EC)

Definition at line 202 of file zd_chip.h.

#define ZD_CR124   CTL_REG(0x01F0)

Definition at line 203 of file zd_chip.h.

#define ZD_CR125   CTL_REG(0x01F4)

Definition at line 204 of file zd_chip.h.

#define ZD_CR126   CTL_REG(0x01F8)

Definition at line 205 of file zd_chip.h.

#define ZD_CR127   CTL_REG(0x01FC)

Definition at line 206 of file zd_chip.h.

#define ZD_CR128   CTL_REG(0x0200)

Definition at line 207 of file zd_chip.h.

#define ZD_CR129   CTL_REG(0x0204)

Definition at line 208 of file zd_chip.h.

#define ZD_CR13   CTL_REG(0x0034)

Definition at line 92 of file zd_chip.h.

#define ZD_CR130   CTL_REG(0x0208)

Definition at line 209 of file zd_chip.h.

#define ZD_CR131   CTL_REG(0x020C)

Definition at line 210 of file zd_chip.h.

#define ZD_CR132   CTL_REG(0x0210)

Definition at line 211 of file zd_chip.h.

#define ZD_CR133   CTL_REG(0x0214)

Definition at line 212 of file zd_chip.h.

#define ZD_CR134   CTL_REG(0x0218)

Definition at line 213 of file zd_chip.h.

#define ZD_CR135   CTL_REG(0x021C)

Definition at line 214 of file zd_chip.h.

#define ZD_CR136   CTL_REG(0x0220)

Definition at line 215 of file zd_chip.h.

#define ZD_CR137   CTL_REG(0x0224)

Definition at line 216 of file zd_chip.h.

#define ZD_CR138   CTL_REG(0x0228)

Definition at line 217 of file zd_chip.h.

#define ZD_CR139   CTL_REG(0x022C)

Definition at line 218 of file zd_chip.h.

#define ZD_CR14   CTL_REG(0x0038)

Definition at line 93 of file zd_chip.h.

#define ZD_CR140   CTL_REG(0x0230)

Definition at line 219 of file zd_chip.h.

#define ZD_CR141   CTL_REG(0x0234)

Definition at line 220 of file zd_chip.h.

#define ZD_CR142   CTL_REG(0x0238)

Definition at line 221 of file zd_chip.h.

#define ZD_CR143   CTL_REG(0x023C)

Definition at line 222 of file zd_chip.h.

#define ZD_CR144   CTL_REG(0x0240)

Definition at line 223 of file zd_chip.h.

#define ZD_CR145   CTL_REG(0x0244)

Definition at line 224 of file zd_chip.h.

#define ZD_CR146   CTL_REG(0x0248)

Definition at line 225 of file zd_chip.h.

#define ZD_CR147   CTL_REG(0x024C)

Definition at line 226 of file zd_chip.h.

#define ZD_CR148   CTL_REG(0x0250)

Definition at line 227 of file zd_chip.h.

#define ZD_CR149   CTL_REG(0x0254)

Definition at line 228 of file zd_chip.h.

#define ZD_CR15   CTL_REG(0x003C)

Definition at line 94 of file zd_chip.h.

#define ZD_CR150   CTL_REG(0x0258)

Definition at line 229 of file zd_chip.h.

#define ZD_CR151   CTL_REG(0x025C)

Definition at line 230 of file zd_chip.h.

#define ZD_CR152   CTL_REG(0x0260)

Definition at line 231 of file zd_chip.h.

#define ZD_CR153   CTL_REG(0x0264)

Definition at line 232 of file zd_chip.h.

#define ZD_CR154   CTL_REG(0x0268)

Definition at line 233 of file zd_chip.h.

#define ZD_CR155   CTL_REG(0x026C)

Definition at line 234 of file zd_chip.h.

#define ZD_CR156   CTL_REG(0x0270)

Definition at line 235 of file zd_chip.h.

#define ZD_CR157   CTL_REG(0x0274)

Definition at line 236 of file zd_chip.h.

#define ZD_CR158   CTL_REG(0x0278)

Definition at line 237 of file zd_chip.h.

#define ZD_CR159   CTL_REG(0x027C)

Definition at line 238 of file zd_chip.h.

#define ZD_CR16   CTL_REG(0x0040)

Definition at line 95 of file zd_chip.h.

#define ZD_CR160   CTL_REG(0x0280)

Definition at line 239 of file zd_chip.h.

#define ZD_CR161   CTL_REG(0x0284)

Definition at line 240 of file zd_chip.h.

#define ZD_CR162   CTL_REG(0x0288)

Definition at line 241 of file zd_chip.h.

#define ZD_CR163   CTL_REG(0x028C)

Definition at line 242 of file zd_chip.h.

#define ZD_CR164   CTL_REG(0x0290)

Definition at line 243 of file zd_chip.h.

#define ZD_CR165   CTL_REG(0x0294)

Definition at line 244 of file zd_chip.h.

#define ZD_CR166   CTL_REG(0x0298)

Definition at line 245 of file zd_chip.h.

#define ZD_CR167   CTL_REG(0x029C)

Definition at line 246 of file zd_chip.h.

#define ZD_CR168   CTL_REG(0x02A0)

Definition at line 247 of file zd_chip.h.

#define ZD_CR169   CTL_REG(0x02A4)

Definition at line 248 of file zd_chip.h.

#define ZD_CR17   CTL_REG(0x0044)

Definition at line 96 of file zd_chip.h.

#define ZD_CR170   CTL_REG(0x02A8)

Definition at line 249 of file zd_chip.h.

#define ZD_CR171   CTL_REG(0x02AC)

Definition at line 250 of file zd_chip.h.

#define ZD_CR172   CTL_REG(0x02B0)

Definition at line 251 of file zd_chip.h.

#define ZD_CR173   CTL_REG(0x02B4)

Definition at line 252 of file zd_chip.h.

#define ZD_CR174   CTL_REG(0x02B8)

Definition at line 253 of file zd_chip.h.

#define ZD_CR175   CTL_REG(0x02BC)

Definition at line 254 of file zd_chip.h.

#define ZD_CR176   CTL_REG(0x02C0)

Definition at line 255 of file zd_chip.h.

#define ZD_CR177   CTL_REG(0x02C4)

Definition at line 256 of file zd_chip.h.

#define ZD_CR178   CTL_REG(0x02C8)

Definition at line 257 of file zd_chip.h.

#define ZD_CR179   CTL_REG(0x02CC)

Definition at line 258 of file zd_chip.h.

#define ZD_CR18   CTL_REG(0x0048)

Definition at line 97 of file zd_chip.h.

#define ZD_CR180   CTL_REG(0x02D0)

Definition at line 259 of file zd_chip.h.

#define ZD_CR181   CTL_REG(0x02D4)

Definition at line 260 of file zd_chip.h.

#define ZD_CR182   CTL_REG(0x02D8)

Definition at line 261 of file zd_chip.h.

#define ZD_CR183   CTL_REG(0x02DC)

Definition at line 262 of file zd_chip.h.

#define ZD_CR184   CTL_REG(0x02E0)

Definition at line 263 of file zd_chip.h.

#define ZD_CR185   CTL_REG(0x02E4)

Definition at line 264 of file zd_chip.h.

#define ZD_CR186   CTL_REG(0x02E8)

Definition at line 265 of file zd_chip.h.

#define ZD_CR187   CTL_REG(0x02EC)

Definition at line 266 of file zd_chip.h.

#define ZD_CR188   CTL_REG(0x02F0)

Definition at line 267 of file zd_chip.h.

#define ZD_CR189   CTL_REG(0x02F4)

Definition at line 268 of file zd_chip.h.

#define ZD_CR19   CTL_REG(0x004C)

Definition at line 98 of file zd_chip.h.

#define ZD_CR190   CTL_REG(0x02F8)

Definition at line 269 of file zd_chip.h.

#define ZD_CR191   CTL_REG(0x02FC)

Definition at line 270 of file zd_chip.h.

#define ZD_CR192   CTL_REG(0x0300)

Definition at line 271 of file zd_chip.h.

#define ZD_CR193   CTL_REG(0x0304)

Definition at line 272 of file zd_chip.h.

#define ZD_CR194   CTL_REG(0x0308)

Definition at line 273 of file zd_chip.h.

#define ZD_CR195   CTL_REG(0x030C)

Definition at line 274 of file zd_chip.h.

#define ZD_CR196   CTL_REG(0x0310)

Definition at line 275 of file zd_chip.h.

#define ZD_CR197   CTL_REG(0x0314)

Definition at line 276 of file zd_chip.h.

#define ZD_CR198   CTL_REG(0x0318)

Definition at line 277 of file zd_chip.h.

#define ZD_CR199   CTL_REG(0x031C)

Definition at line 278 of file zd_chip.h.

#define ZD_CR2   CTL_REG(0x0008)

Definition at line 68 of file zd_chip.h.

#define ZD_CR20   CTL_REG(0x0050)

Definition at line 99 of file zd_chip.h.

#define ZD_CR200   CTL_REG(0x0320)

Definition at line 279 of file zd_chip.h.

#define ZD_CR201   CTL_REG(0x0324)

Definition at line 280 of file zd_chip.h.

#define ZD_CR202   CTL_REG(0x0328)

Definition at line 281 of file zd_chip.h.

#define ZD_CR203
Value:
CTL_REG(0x032C) /* I2C bus template value & flash
* control
*/

Definition at line 282 of file zd_chip.h.

#define ZD_CR204   CTL_REG(0x0330)

Definition at line 283 of file zd_chip.h.

#define ZD_CR205   CTL_REG(0x0334)

Definition at line 284 of file zd_chip.h.

#define ZD_CR206   CTL_REG(0x0338)

Definition at line 285 of file zd_chip.h.

#define ZD_CR207   CTL_REG(0x033C)

Definition at line 286 of file zd_chip.h.

#define ZD_CR208   CTL_REG(0x0340)

Definition at line 287 of file zd_chip.h.

#define ZD_CR209   CTL_REG(0x0344)

Definition at line 288 of file zd_chip.h.

#define ZD_CR21   CTL_REG(0x0054)

Definition at line 100 of file zd_chip.h.

#define ZD_CR210   CTL_REG(0x0348)

Definition at line 289 of file zd_chip.h.

#define ZD_CR211   CTL_REG(0x034C)

Definition at line 290 of file zd_chip.h.

#define ZD_CR212   CTL_REG(0x0350)

Definition at line 291 of file zd_chip.h.

#define ZD_CR213   CTL_REG(0x0354)

Definition at line 292 of file zd_chip.h.

#define ZD_CR214   CTL_REG(0x0358)

Definition at line 293 of file zd_chip.h.

#define ZD_CR215   CTL_REG(0x035C)

Definition at line 294 of file zd_chip.h.

#define ZD_CR216   CTL_REG(0x0360)

Definition at line 295 of file zd_chip.h.

#define ZD_CR217   CTL_REG(0x0364)

Definition at line 296 of file zd_chip.h.

#define ZD_CR218   CTL_REG(0x0368)

Definition at line 297 of file zd_chip.h.

#define ZD_CR219   CTL_REG(0x036C)

Definition at line 298 of file zd_chip.h.

#define ZD_CR22   CTL_REG(0x0058)

Definition at line 101 of file zd_chip.h.

#define ZD_CR220   CTL_REG(0x0370)

Definition at line 299 of file zd_chip.h.

#define ZD_CR221   CTL_REG(0x0374)

Definition at line 300 of file zd_chip.h.

#define ZD_CR222   CTL_REG(0x0378)

Definition at line 301 of file zd_chip.h.

#define ZD_CR223   CTL_REG(0x037C)

Definition at line 302 of file zd_chip.h.

#define ZD_CR224   CTL_REG(0x0380)

Definition at line 303 of file zd_chip.h.

#define ZD_CR225   CTL_REG(0x0384)

Definition at line 304 of file zd_chip.h.

#define ZD_CR226   CTL_REG(0x0388)

Definition at line 305 of file zd_chip.h.

#define ZD_CR227   CTL_REG(0x038C)

Definition at line 306 of file zd_chip.h.

#define ZD_CR228   CTL_REG(0x0390)

Definition at line 307 of file zd_chip.h.

#define ZD_CR229   CTL_REG(0x0394)

Definition at line 308 of file zd_chip.h.

#define ZD_CR23   CTL_REG(0x005C)

Definition at line 102 of file zd_chip.h.

#define ZD_CR230   CTL_REG(0x0398)

Definition at line 309 of file zd_chip.h.

#define ZD_CR231   CTL_REG(0x039C)

Definition at line 310 of file zd_chip.h.

#define ZD_CR232   CTL_REG(0x03A0)

Definition at line 311 of file zd_chip.h.

#define ZD_CR233   CTL_REG(0x03A4)

Definition at line 312 of file zd_chip.h.

#define ZD_CR234   CTL_REG(0x03A8)

Definition at line 313 of file zd_chip.h.

#define ZD_CR235   CTL_REG(0x03AC)

Definition at line 314 of file zd_chip.h.

#define ZD_CR236   CTL_REG(0x03B0)

Definition at line 315 of file zd_chip.h.

#define ZD_CR24   CTL_REG(0x0060) /* CCA threshold */

Definition at line 103 of file zd_chip.h.

#define ZD_CR240   CTL_REG(0x03C0)

Definition at line 317 of file zd_chip.h.

#define ZD_CR241   CTL_REG(0x03C4)

Definition at line 322 of file zd_chip.h.

#define ZD_CR242   CTL_REG(0x03C8)

Definition at line 323 of file zd_chip.h.

#define ZD_CR243   CTL_REG(0x03CC)

Definition at line 324 of file zd_chip.h.

#define ZD_CR244   CTL_REG(0x03D0)

Definition at line 325 of file zd_chip.h.

#define ZD_CR245   CTL_REG(0x03D4)

Definition at line 326 of file zd_chip.h.

#define ZD_CR25   CTL_REG(0x0064)

Definition at line 104 of file zd_chip.h.

#define ZD_CR251
Value:
CTL_REG(0x03EC) /* only used for activation and
* deactivation of Airoha RFs AL2230
* and AL7230B
*/

Definition at line 328 of file zd_chip.h.

#define ZD_CR252   CTL_REG(0x03F0)

Definition at line 329 of file zd_chip.h.

#define ZD_CR253   CTL_REG(0x03F4)

Definition at line 330 of file zd_chip.h.

#define ZD_CR254   CTL_REG(0x03F8)

Definition at line 331 of file zd_chip.h.

#define ZD_CR255   CTL_REG(0x03FC)

Definition at line 332 of file zd_chip.h.

#define ZD_CR26   CTL_REG(0x0068)

Definition at line 105 of file zd_chip.h.

#define ZD_CR27   CTL_REG(0x006C)

Definition at line 106 of file zd_chip.h.

#define ZD_CR28   CTL_REG(0x0070)

Definition at line 107 of file zd_chip.h.

#define ZD_CR29   CTL_REG(0x0074)

Definition at line 108 of file zd_chip.h.

#define ZD_CR3   CTL_REG(0x000C)

Definition at line 69 of file zd_chip.h.

#define ZD_CR30   CTL_REG(0x0078)

Definition at line 109 of file zd_chip.h.

#define ZD_CR31
Value:
CTL_REG(0x007C) /* TX power control for RF in
* CCK mode
*/

Definition at line 110 of file zd_chip.h.

#define ZD_CR32   CTL_REG(0x0080)

Definition at line 111 of file zd_chip.h.

#define ZD_CR33   CTL_REG(0x0084)

Definition at line 112 of file zd_chip.h.

#define ZD_CR34   CTL_REG(0x0088)

Definition at line 113 of file zd_chip.h.

#define ZD_CR35   CTL_REG(0x008C)

Definition at line 114 of file zd_chip.h.

#define ZD_CR36   CTL_REG(0x0090)

Definition at line 115 of file zd_chip.h.

#define ZD_CR37   CTL_REG(0x0094)

Definition at line 116 of file zd_chip.h.

#define ZD_CR38   CTL_REG(0x0098)

Definition at line 117 of file zd_chip.h.

#define ZD_CR39   CTL_REG(0x009C)

Definition at line 118 of file zd_chip.h.

#define ZD_CR4   CTL_REG(0x0020)

Definition at line 79 of file zd_chip.h.

#define ZD_CR40   CTL_REG(0x00A0)

Definition at line 119 of file zd_chip.h.

#define ZD_CR41   CTL_REG(0x00A4)

Definition at line 120 of file zd_chip.h.

#define ZD_CR42   CTL_REG(0x00A8)

Definition at line 121 of file zd_chip.h.

#define ZD_CR43   CTL_REG(0x00AC)

Definition at line 122 of file zd_chip.h.

#define ZD_CR44   CTL_REG(0x00B0)

Definition at line 123 of file zd_chip.h.

#define ZD_CR45   CTL_REG(0x00B4)

Definition at line 124 of file zd_chip.h.

#define ZD_CR46   CTL_REG(0x00B8)

Definition at line 125 of file zd_chip.h.

#define ZD_CR47
Value:
CTL_REG(0x00BC) /* CCK baseband gain
* (patch value might be in EEPROM)
*/

Definition at line 126 of file zd_chip.h.

#define ZD_CR48   CTL_REG(0x00C0)

Definition at line 127 of file zd_chip.h.

#define ZD_CR49   CTL_REG(0x00C4)

Definition at line 128 of file zd_chip.h.

#define ZD_CR5   CTL_REG(0x0010)

Definition at line 71 of file zd_chip.h.

#define ZD_CR50   CTL_REG(0x00C8)

Definition at line 129 of file zd_chip.h.

#define ZD_CR51
Value:
CTL_REG(0x00CC) /* TX power control for RF in
* 6-36M modes
*/

Definition at line 130 of file zd_chip.h.

#define ZD_CR52
Value:
CTL_REG(0x00D0) /* TX power control for RF in
* 48M mode
*/

Definition at line 131 of file zd_chip.h.

#define ZD_CR53
Value:
CTL_REG(0x00D4) /* TX power control for RF in
* 54M mode
*/

Definition at line 132 of file zd_chip.h.

#define ZD_CR54   CTL_REG(0x00D8)

Definition at line 133 of file zd_chip.h.

#define ZD_CR55   CTL_REG(0x00DC)

Definition at line 134 of file zd_chip.h.

#define ZD_CR56   CTL_REG(0x00E0)

Definition at line 135 of file zd_chip.h.

#define ZD_CR57   CTL_REG(0x00E4)

Definition at line 136 of file zd_chip.h.

#define ZD_CR58   CTL_REG(0x00E8)

Definition at line 137 of file zd_chip.h.

#define ZD_CR59   CTL_REG(0x00EC)

Definition at line 138 of file zd_chip.h.

#define ZD_CR6   CTL_REG(0x0014)

Definition at line 75 of file zd_chip.h.

#define ZD_CR60   CTL_REG(0x00F0)

Definition at line 139 of file zd_chip.h.

#define ZD_CR61   CTL_REG(0x00F4)

Definition at line 140 of file zd_chip.h.

#define ZD_CR62   CTL_REG(0x00F8)

Definition at line 141 of file zd_chip.h.

#define ZD_CR63   CTL_REG(0x00FC)

Definition at line 142 of file zd_chip.h.

#define ZD_CR64   CTL_REG(0x0100)

Definition at line 143 of file zd_chip.h.

#define ZD_CR65   CTL_REG(0x0104) /* OFDM 54M calibration */

Definition at line 144 of file zd_chip.h.

#define ZD_CR66   CTL_REG(0x0108) /* OFDM 48M calibration */

Definition at line 145 of file zd_chip.h.

#define ZD_CR67   CTL_REG(0x010C) /* OFDM 36M calibration */

Definition at line 146 of file zd_chip.h.

#define ZD_CR68   CTL_REG(0x0110) /* CCK calibration */

Definition at line 147 of file zd_chip.h.

#define ZD_CR69   CTL_REG(0x0114)

Definition at line 148 of file zd_chip.h.

#define ZD_CR7   CTL_REG(0x0018)

Definition at line 76 of file zd_chip.h.

#define ZD_CR70   CTL_REG(0x0118)

Definition at line 149 of file zd_chip.h.

#define ZD_CR71   CTL_REG(0x011C)

Definition at line 150 of file zd_chip.h.

#define ZD_CR72   CTL_REG(0x0120)

Definition at line 151 of file zd_chip.h.

#define ZD_CR73   CTL_REG(0x0124)

Definition at line 152 of file zd_chip.h.

#define ZD_CR74   CTL_REG(0x0128)

Definition at line 153 of file zd_chip.h.

#define ZD_CR75   CTL_REG(0x012C)

Definition at line 154 of file zd_chip.h.

#define ZD_CR76   CTL_REG(0x0130)

Definition at line 155 of file zd_chip.h.

#define ZD_CR77   CTL_REG(0x0134)

Definition at line 156 of file zd_chip.h.

#define ZD_CR78   CTL_REG(0x0138)

Definition at line 157 of file zd_chip.h.

#define ZD_CR79   CTL_REG(0x013C)

Definition at line 158 of file zd_chip.h.

#define ZD_CR8   CTL_REG(0x001C)

Definition at line 77 of file zd_chip.h.

#define ZD_CR80   CTL_REG(0x0140)

Definition at line 159 of file zd_chip.h.

#define ZD_CR81   CTL_REG(0x0144)

Definition at line 160 of file zd_chip.h.

#define ZD_CR82   CTL_REG(0x0148)

Definition at line 161 of file zd_chip.h.

#define ZD_CR83   CTL_REG(0x014C)

Definition at line 162 of file zd_chip.h.

#define ZD_CR84   CTL_REG(0x0150)

Definition at line 163 of file zd_chip.h.

#define ZD_CR85   CTL_REG(0x0154)

Definition at line 164 of file zd_chip.h.

#define ZD_CR86   CTL_REG(0x0158)

Definition at line 165 of file zd_chip.h.

#define ZD_CR87   CTL_REG(0x015C)

Definition at line 166 of file zd_chip.h.

#define ZD_CR88   CTL_REG(0x0160)

Definition at line 167 of file zd_chip.h.

#define ZD_CR89   CTL_REG(0x0164)

Definition at line 168 of file zd_chip.h.

#define ZD_CR9   CTL_REG(0x0024)

Definition at line 81 of file zd_chip.h.

#define ZD_CR90   CTL_REG(0x0168)

Definition at line 169 of file zd_chip.h.

#define ZD_CR91   CTL_REG(0x016C)

Definition at line 170 of file zd_chip.h.

#define ZD_CR92   CTL_REG(0x0170)

Definition at line 171 of file zd_chip.h.

#define ZD_CR93   CTL_REG(0x0174)

Definition at line 172 of file zd_chip.h.

#define ZD_CR94   CTL_REG(0x0178)

Definition at line 173 of file zd_chip.h.

#define ZD_CR95   CTL_REG(0x017C)

Definition at line 174 of file zd_chip.h.

#define ZD_CR96   CTL_REG(0x0180)

Definition at line 175 of file zd_chip.h.

#define ZD_CR97   CTL_REG(0x0184)

Definition at line 176 of file zd_chip.h.

#define ZD_CR98   CTL_REG(0x0188)

Definition at line 177 of file zd_chip.h.

#define ZD_CR99   CTL_REG(0x018C)

Definition at line 178 of file zd_chip.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CR_START 
FW_START 
E2P_START 
E2P_LEN 
E2P_LOAD_CODE_LEN 
E2P_LOAD_VECT_LEN 
E2P_DATA_LEN 
E2P_BOOT_CODE_LEN 
E2P_INTR_VECT_LEN 
E2P_DATA_OFFSET 
E2P_BOOT_CODE_OFFSET 

Definition at line 35 of file zd_chip.h.

anonymous enum
Enumerator:
FW_REG_FIRMWARE_VER 
FW_REG_USB_SPEED 
FW_REG_FIX_TX_RATE 
FW_REG_LED_LINK_STATUS 
FW_REG_SOFT_RESET 
FW_REG_FLASH_CHK 

Definition at line 727 of file zd_chip.h.

anonymous enum
Enumerator:
OFDM_36M_INDEX 
OFDM_48M_INDEX 
OFDM_54M_INDEX 

Definition at line 743 of file zd_chip.h.

enum led_status
Enumerator:
ZD_LED_OFF 
ZD_LED_SCANNING 
ZD_LED_ASSOCIATED 

Definition at line 915 of file zd_chip.h.

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_reset ( struct zd_chip chip)
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 addresses,
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.