diff options
Diffstat (limited to 'drivers/net/wireless/ti/wl12xx/cmd.h')
-rw-r--r-- | drivers/net/wireless/ti/wl12xx/cmd.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/cmd.h b/drivers/net/wireless/ti/wl12xx/cmd.h new file mode 100644 index 000000000000..ff458302ab04 --- /dev/null +++ b/drivers/net/wireless/ti/wl12xx/cmd.h | |||
@@ -0,0 +1,110 @@ | |||
1 | /* | ||
2 | * This file is part of wl12xx | ||
3 | * | ||
4 | * Copyright (C) 1998-2009, 2011 Texas Instruments. All rights reserved. | ||
5 | * Copyright (C) 2009 Nokia Corporation | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of the GNU General Public License | ||
9 | * version 2 as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, but | ||
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
19 | * 02110-1301 USA | ||
20 | * | ||
21 | */ | ||
22 | |||
23 | #ifndef __WL12XX_CMD_H__ | ||
24 | #define __WL12XX_CMD_H__ | ||
25 | |||
26 | #define TEST_CMD_INI_FILE_RADIO_PARAM 0x19 | ||
27 | #define TEST_CMD_INI_FILE_GENERAL_PARAM 0x1E | ||
28 | |||
29 | struct wl1271_general_parms_cmd { | ||
30 | struct wl1271_cmd_header header; | ||
31 | |||
32 | struct wl1271_cmd_test_header test; | ||
33 | |||
34 | struct wl1271_ini_general_params general_params; | ||
35 | |||
36 | u8 sr_debug_table[WL1271_INI_MAX_SMART_REFLEX_PARAM]; | ||
37 | u8 sr_sen_n_p; | ||
38 | u8 sr_sen_n_p_gain; | ||
39 | u8 sr_sen_nrn; | ||
40 | u8 sr_sen_prn; | ||
41 | u8 padding[3]; | ||
42 | } __packed; | ||
43 | |||
44 | struct wl128x_general_parms_cmd { | ||
45 | struct wl1271_cmd_header header; | ||
46 | |||
47 | struct wl1271_cmd_test_header test; | ||
48 | |||
49 | struct wl128x_ini_general_params general_params; | ||
50 | |||
51 | u8 sr_debug_table[WL1271_INI_MAX_SMART_REFLEX_PARAM]; | ||
52 | u8 sr_sen_n_p; | ||
53 | u8 sr_sen_n_p_gain; | ||
54 | u8 sr_sen_nrn; | ||
55 | u8 sr_sen_prn; | ||
56 | u8 padding[3]; | ||
57 | } __packed; | ||
58 | |||
59 | struct wl1271_radio_parms_cmd { | ||
60 | struct wl1271_cmd_header header; | ||
61 | |||
62 | struct wl1271_cmd_test_header test; | ||
63 | |||
64 | /* Static radio parameters */ | ||
65 | struct wl1271_ini_band_params_2 static_params_2; | ||
66 | struct wl1271_ini_band_params_5 static_params_5; | ||
67 | |||
68 | /* Dynamic radio parameters */ | ||
69 | struct wl1271_ini_fem_params_2 dyn_params_2; | ||
70 | u8 padding2; | ||
71 | struct wl1271_ini_fem_params_5 dyn_params_5; | ||
72 | u8 padding3[2]; | ||
73 | } __packed; | ||
74 | |||
75 | struct wl128x_radio_parms_cmd { | ||
76 | struct wl1271_cmd_header header; | ||
77 | |||
78 | struct wl1271_cmd_test_header test; | ||
79 | |||
80 | /* Static radio parameters */ | ||
81 | struct wl128x_ini_band_params_2 static_params_2; | ||
82 | struct wl128x_ini_band_params_5 static_params_5; | ||
83 | |||
84 | u8 fem_vendor_and_options; | ||
85 | |||
86 | /* Dynamic radio parameters */ | ||
87 | struct wl128x_ini_fem_params_2 dyn_params_2; | ||
88 | u8 padding2; | ||
89 | struct wl128x_ini_fem_params_5 dyn_params_5; | ||
90 | } __packed; | ||
91 | |||
92 | #define TEST_CMD_INI_FILE_RF_EXTENDED_PARAM 0x26 | ||
93 | |||
94 | struct wl1271_ext_radio_parms_cmd { | ||
95 | struct wl1271_cmd_header header; | ||
96 | |||
97 | struct wl1271_cmd_test_header test; | ||
98 | |||
99 | u8 tx_per_channel_power_compensation_2[CONF_TX_PWR_COMPENSATION_LEN_2]; | ||
100 | u8 tx_per_channel_power_compensation_5[CONF_TX_PWR_COMPENSATION_LEN_5]; | ||
101 | u8 padding[3]; | ||
102 | } __packed; | ||
103 | |||
104 | int wl1271_cmd_general_parms(struct wl1271 *wl); | ||
105 | int wl128x_cmd_general_parms(struct wl1271 *wl); | ||
106 | int wl1271_cmd_radio_parms(struct wl1271 *wl); | ||
107 | int wl128x_cmd_radio_parms(struct wl1271 *wl); | ||
108 | int wl1271_cmd_ext_radio_parms(struct wl1271 *wl); | ||
109 | |||
110 | #endif /* __WL12XX_CMD_H__ */ | ||