linux/drivers/staging/winbond/wb35reg_f.h
<<
>>
Prefs
   1#ifndef __WINBOND_WB35REG_F_H
   2#define __WINBOND_WB35REG_F_H
   3
   4#include "wbhal_s.h"
   5
   6//====================================
   7// Interface function declare
   8//====================================
   9unsigned char Wb35Reg_initial(  struct hw_data * pHwData );
  10void Uxx_power_on_procedure(  struct hw_data * pHwData );
  11void Uxx_power_off_procedure(  struct hw_data * pHwData );
  12void Uxx_ReadEthernetAddress(  struct hw_data * pHwData );
  13void Dxx_initial(  struct hw_data * pHwData );
  14void Mxx_initial(  struct hw_data * pHwData );
  15void RFSynthesizer_initial(  struct hw_data * pHwData );
  16//void RFSynthesizer_SwitchingChannel(  struct hw_data * pHwData,  s8 Channel );
  17void RFSynthesizer_SwitchingChannel(  struct hw_data * pHwData,  ChanInfo Channel );
  18void BBProcessor_initial(  struct hw_data * pHwData );
  19void BBProcessor_RateChanging(  struct hw_data * pHwData,  u8 rate ); // 20060613.1
  20//void RF_RateChanging(  struct hw_data * pHwData,  u8 rate ); // 20060626.5.c Add
  21u8 RFSynthesizer_SetPowerIndex(  struct hw_data * pHwData,  u8 PowerIndex );
  22u8 RFSynthesizer_SetMaxim2828_24Power(  struct hw_data *,  u8 index );
  23u8 RFSynthesizer_SetMaxim2828_50Power(  struct hw_data *,  u8 index );
  24u8 RFSynthesizer_SetMaxim2827_24Power(  struct hw_data *,  u8 index );
  25u8 RFSynthesizer_SetMaxim2827_50Power(  struct hw_data *,  u8 index );
  26u8 RFSynthesizer_SetMaxim2825Power(  struct hw_data *,  u8 index );
  27u8 RFSynthesizer_SetAiroha2230Power(  struct hw_data *,  u8 index );
  28u8 RFSynthesizer_SetAiroha7230Power(  struct hw_data *,  u8 index );
  29u8 RFSynthesizer_SetWinbond242Power(  struct hw_data *,  u8 index );
  30void GetTxVgaFromEEPROM(  struct hw_data * pHwData );
  31void EEPROMTxVgaAdjust(  struct hw_data * pHwData ); // 20060619.5 Add
  32
  33#define RFWriteControlData( _A, _V ) Wb35Reg_Write( _A, 0x0864, _V )
  34
  35void Wb35Reg_destroy(  struct hw_data * pHwData );
  36
  37unsigned char Wb35Reg_Read(  struct hw_data * pHwData,  u16 RegisterNo,   u32 * pRegisterValue );
  38unsigned char Wb35Reg_ReadSync(  struct hw_data * pHwData,  u16 RegisterNo,   u32 * pRegisterValue );
  39unsigned char Wb35Reg_Write(  struct hw_data * pHwData,  u16 RegisterNo,  u32 RegisterValue );
  40unsigned char Wb35Reg_WriteSync(  struct hw_data * pHwData,  u16 RegisterNo,  u32 RegisterValue );
  41unsigned char Wb35Reg_WriteWithCallbackValue(  struct hw_data * pHwData,
  42                                                                 u16 RegisterNo,
  43                                                                 u32 RegisterValue,
  44                                                                 s8 *pValue,
  45                                                                 s8 Len);
  46unsigned char Wb35Reg_BurstWrite(  struct hw_data * pHwData,  u16 RegisterNo,  u32 * pRegisterData,  u8 NumberOfData,  u8 Flag );
  47
  48void Wb35Reg_EP0VM(  struct hw_data * pHwData );
  49void Wb35Reg_EP0VM_start(  struct hw_data * pHwData );
  50void Wb35Reg_EP0VM_complete(struct urb *urb);
  51
  52u32 BitReverse( u32 dwData, u32 DataLength);
  53
  54void CardGetMulticastBit(   u8 Address[MAC_ADDR_LENGTH],  u8 *Byte,  u8 *Value );
  55u32 CardComputeCrc(  u8 * Buffer,  u32 Length );
  56
  57void Wb35Reg_phy_calibration(  struct hw_data * pHwData );
  58void Wb35Reg_Update(  struct hw_data * pHwData,  u16 RegisterNo,  u32 RegisterValue );
  59unsigned char adjust_TXVGA_for_iq_mag(  struct hw_data * pHwData );
  60
  61#endif
  62