0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef __BASEBAND_H__
0015 #define __BASEBAND_H__
0016
0017 #include "device.h"
0018
0019
0020
0021
0022 #define BB_MAX_CONTEXT_SIZE 256
0023
0024
0025
0026
0027
0028 #define PREAMBLE_LONG 0
0029 #define PREAMBLE_SHORT 1
0030
0031 #define F5G 0
0032 #define F2_4G 1
0033
0034 #define TOP_RATE_54M 0x80000000
0035 #define TOP_RATE_48M 0x40000000
0036 #define TOP_RATE_36M 0x20000000
0037 #define TOP_RATE_24M 0x10000000
0038 #define TOP_RATE_18M 0x08000000
0039 #define TOP_RATE_12M 0x04000000
0040 #define TOP_RATE_11M 0x02000000
0041 #define TOP_RATE_9M 0x01000000
0042 #define TOP_RATE_6M 0x00800000
0043 #define TOP_RATE_55M 0x00400000
0044 #define TOP_RATE_2M 0x00200000
0045 #define TOP_RATE_1M 0x00100000
0046
0047 unsigned int bb_get_frame_time(unsigned char preamble_type,
0048 unsigned char by_pkt_type,
0049 unsigned int cb_frame_length,
0050 unsigned short w_rate);
0051
0052 void vnt_get_phy_field(struct vnt_private *priv, u32 frame_length,
0053 u16 tx_rate, u8 pkt_type, struct vnt_phy_field *phy);
0054
0055 bool bb_read_embedded(struct vnt_private *priv, unsigned char by_bb_addr,
0056 unsigned char *pby_data);
0057 bool bb_write_embedded(struct vnt_private *priv, unsigned char by_bb_addr,
0058 unsigned char by_data);
0059
0060 void bb_set_short_slot_time(struct vnt_private *priv);
0061 void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data);
0062
0063
0064 bool bb_vt3253_init(struct vnt_private *priv);
0065 void bb_software_reset(struct vnt_private *priv);
0066 void bb_power_save_mode_on(struct vnt_private *priv);
0067 void bb_power_save_mode_off(struct vnt_private *priv);
0068 void bb_set_tx_antenna_mode(struct vnt_private *priv,
0069 unsigned char by_antenna_mode);
0070 void bb_set_rx_antenna_mode(struct vnt_private *priv,
0071 unsigned char by_antenna_mode);
0072 void bb_set_deep_sleep(struct vnt_private *priv, unsigned char by_local_id);
0073
0074 #endif