1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33#ifndef __BASEBAND_H__
34#define __BASEBAND_H__
35
36#include "tether.h"
37#include "device.h"
38
39#define PREAMBLE_LONG 0
40#define PREAMBLE_SHORT 1
41
42
43
44
45#define BB_MAX_CONTEXT_SIZE 256
46
47#define C_SIFS_A 16
48#define C_SIFS_BG 10
49
50#define C_EIFS 80
51
52#define C_SLOT_SHORT 9
53#define C_SLOT_LONG 20
54
55#define C_CWMIN_A 15
56#define C_CWMIN_B 31
57
58#define C_CWMAX 1023
59
60
61#define BB_TYPE_11A 0
62#define BB_TYPE_11B 1
63#define BB_TYPE_11G 2
64
65
66#define PK_TYPE_11A 0
67#define PK_TYPE_11B 1
68#define PK_TYPE_11GB 2
69#define PK_TYPE_11GA 3
70
71#define TOP_RATE_54M 0x80000000
72#define TOP_RATE_48M 0x40000000
73#define TOP_RATE_36M 0x20000000
74#define TOP_RATE_24M 0x10000000
75#define TOP_RATE_18M 0x08000000
76#define TOP_RATE_12M 0x04000000
77#define TOP_RATE_11M 0x02000000
78#define TOP_RATE_9M 0x01000000
79#define TOP_RATE_6M 0x00800000
80#define TOP_RATE_55M 0x00400000
81#define TOP_RATE_2M 0x00200000
82#define TOP_RATE_1M 0x00100000
83
84unsigned int
85BBuGetFrameTime(
86 u8 byPreambleType,
87 u8 byFreqType,
88 unsigned int cbFrameLength,
89 u16 wRate
90 );
91
92void BBvCalculateParameter(struct vnt_private *, u32 cbFrameLength,
93 u16 wRate, u8 byPacketType, u16 *pwPhyLen, u8 *pbyPhySrv,
94 u8 *pbyPhySgn);
95
96
97
98void TimerSQ3CallBack(struct vnt_private *);
99void TimerSQ3Tmax3CallBack(struct vnt_private *);
100
101void BBvAntennaDiversity(struct vnt_private *, u8 byRxRate, u8 bySQ3);
102
103void BBvSetShortSlotTime(struct vnt_private *);
104void BBvSetVGAGainOffset(struct vnt_private *, u8 byData);
105void BBvSetAntennaMode(struct vnt_private *, u8 byAntennaMode);
106int BBbVT3184Init(struct vnt_private *);
107void BBvSetDeepSleep(struct vnt_private *);
108void BBvExitDeepSleep(struct vnt_private *);
109void BBvUpdatePreEDThreshold(struct vnt_private *, int bScanning);
110
111#endif
112