-
Notifications
You must be signed in to change notification settings - Fork 114
/
testmode.h
executable file
·77 lines (67 loc) · 1.45 KB
/
testmode.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef __TEST_MODE
#define __TEST_MODE
enum {
TEST_CMD_UNSPEC,
TEST_CMD_ECHO,
TEST_CMD_ASK,
TEST_CMD_SLEEP,
TEST_CMD_WAKEUP,
TEST_CMD_LOOPBACK,
TEST_CMD_TX,
TEST_CMD_RX,
TEST_CMD_DEBUG,
TEST_CMD_SDIO_WR,
TEST_CMD_SDIO_RD,
TEST_CMD_ATE,
TEST_CMD_SDIOTEST,
TEST_CMD_SDIOSPEED,
__TEST_CMD_MAX,
};
#define TEST_CMD_MAX (__TEST_CMD_MAX - 1)
enum {
TEST_ATTR_UNSPEC,
TEST_ATTR_CMD_NAME,
TEST_ATTR_CMD_TYPE,
TEST_ATTR_PARA_NUM,
TEST_ATTR_PARA0,
TEST_ATTR_PARA1,
TEST_ATTR_PARA2,
TEST_ATTR_PARA3,
TEST_ATTR_PARA4,
TEST_ATTR_PARA5,
TEST_ATTR_PARA6,
TEST_ATTR_PARA7,
TEST_ATTR_STR,
__TEST_ATTR_MAX,
};
#define TEST_ATTR_MAX (__TEST_ATTR_MAX - 1)
#define TEST_ATTR_PARA(i) (TEST_ATTR_PARA0+(i))
enum {
RD_REG = 0,
WR_REG,
SET_SENSE,
SET_TX_RATE,
SET_TX_FREQ,
TKIP_MIC_ERROR,
RIFS_CTRL,
BACKOFF,
SET_RXSENSE,
CONFIGURE_TRC,
RDPER,
RDRSSI,
DBGTRC,
WRMEM,
RDMEM
};
u32 get_loopback_num(void);
u32 get_loopback_id(void);
void inc_loopback_id(void);
void esp_test_ate_done_cb(char *ep);
struct sdiotest_param {
atomic_t start;
u32 mode; //1: read 2: write 3: read&write
u32 addr;
u32 idle_period; //in msec
struct task_struct *thread;
};
#endif //__TEST_MODE