Root/drivers/staging/winbond/wb35reg_f.h

1#ifndef __WINBOND_WB35REG_F_H
2#define __WINBOND_WB35REG_F_H
3
4#include "wbhal.h"
5
6/*
7 * ====================================
8 * Interface function declare
9 * ====================================
10 */
11unsigned char Wb35Reg_initial(struct hw_data *hw_data);
12void Uxx_power_on_procedure(struct hw_data *hw_data);
13void Uxx_power_off_procedure(struct hw_data *hw_data);
14void Uxx_ReadEthernetAddress(struct hw_data *hw_data);
15void Dxx_initial(struct hw_data *hw_data);
16void Mxx_initial(struct hw_data *hw_data);
17void RFSynthesizer_initial(struct hw_data *hw_data);
18void RFSynthesizer_SwitchingChannel(struct hw_data *hw_data, struct chan_info channel);
19void BBProcessor_initial(struct hw_data *hw_data);
20void BBProcessor_RateChanging(struct hw_data *hw_data, u8 rate);
21u8 RFSynthesizer_SetPowerIndex(struct hw_data *hw_data, u8 power_index);
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 *hw_data);
31void EEPROMTxVgaAdjust(struct hw_data *hw_data);
32
33#define RFWriteControlData(_A, _V) Wb35Reg_Write(_A, 0x0864, _V)
34
35void Wb35Reg_destroy(struct hw_data *hw_data);
36
37unsigned char Wb35Reg_Read(struct hw_data *hw_data, u16 register_no, u32 *register_value);
38unsigned char Wb35Reg_ReadSync(struct hw_data *hw_data, u16 register_no, u32 *register_value);
39unsigned char Wb35Reg_Write(struct hw_data *hw_data, u16 register_no, u32 register_value);
40unsigned char Wb35Reg_WriteSync(struct hw_data *hw_data, u16 register_no, u32 register_value);
41unsigned char Wb35Reg_WriteWithCallbackValue(struct hw_data *hw_data,
42                             u16 register_no,
43                             u32 register_value,
44                             s8 *value,
45                             s8 len);
46unsigned char Wb35Reg_BurstWrite(struct hw_data *hw_data,
47                    u16 register_no,
48                    u32 *register_data,
49                    u8 number_of_data,
50                    u8 flag);
51
52void Wb35Reg_EP0VM(struct hw_data *hw_data);
53void Wb35Reg_EP0VM_start(struct hw_data *hw_data);
54void Wb35Reg_EP0VM_complete(struct urb *urb);
55
56u32 BitReverse(u32 data, u32 data_length);
57
58void CardGetMulticastBit(u8 address[MAC_ADDR_LENGTH], u8 *byte, u8 *value);
59u32 CardComputeCrc(u8 *buffer, u32 length);
60
61void Wb35Reg_phy_calibration(struct hw_data *hw_data);
62void Wb35Reg_Update(struct hw_data *hw_data, u16 register_no, u32 register_value);
63unsigned char adjust_TXVGA_for_iq_mag(struct hw_data *hw_data);
64
65#endif
66

Archive Download this file



interactive