• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
5  *
6  * Modifications for inclusion into the Linux staging tree are
7  * Copyright(c) 2010 Larry Finger. All rights reserved.
8  *
9  * Contact information:
10  * WLAN FAE <wlanfae@realtek.com>
11  * Larry Finger <Larry.Finger@lwfinger.net>
12  *
13  ******************************************************************************/
14 #ifndef	__CUSTOM_OID_H
15 #define __CUSTOM_OID_H
16 
17 /* 0xFF818000 - 0xFF81802F		RTL8180 Mass Production Kit
18  * 0xFF818500 - 0xFF81850F		RTL8185 Setup Utility
19  * 0xFF818580 - 0xFF81858F		RTL8185 Phy Status Utility
20  *
21  * by Owen for Production Kit
22  * For Production Kit with Agilent Equipments
23  * in order to make our custom oids hopefully somewhat unique
24  * we will use 0xFF (indicating implementation specific OID)
25  *	 81(first byte of non zero Realtek unique identifier)
26  *	 80 (second byte of non zero Realtek unique identifier)
27  *	 XX (the custom OID number - providing 255 possible custom oids)
28  */
29 #define OID_RT_PRO_RESET_DUT				0xFF818000
30 #define OID_RT_PRO_SET_DATA_RATE			0xFF818001
31 #define OID_RT_PRO_START_TEST				0xFF818002
32 #define OID_RT_PRO_STOP_TEST				0xFF818003
33 #define OID_RT_PRO_SET_PREAMBLE				0xFF818004
34 #define OID_RT_PRO_SET_SCRAMBLER			0xFF818005
35 #define OID_RT_PRO_SET_FILTER_BB			0xFF818006
36 #define OID_RT_PRO_SET_MANUAL_DIVERSITY_BB		0xFF818007
37 #define OID_RT_PRO_SET_CHANNEL_DIRECT_CALL		0xFF818008
38 #define OID_RT_PRO_SET_SLEEP_MODE_DIRECT_CALL		0xFF818009
39 #define OID_RT_PRO_SET_WAKE_MODE_DIRECT_CALL		0xFF81800A
40 
41 #define OID_RT_PRO_SET_TX_ANTENNA_BB			0xFF81800D
42 #define OID_RT_PRO_SET_ANTENNA_BB			0xFF81800E
43 #define OID_RT_PRO_SET_CR_SCRAMBLER			0xFF81800F
44 #define OID_RT_PRO_SET_CR_NEW_FILTER			0xFF818010
45 #define OID_RT_PRO_SET_TX_POWER_CONTROL			0xFF818011
46 #define OID_RT_PRO_SET_CR_TX_CONFIG			0xFF818012
47 #define OID_RT_PRO_GET_TX_POWER_CONTROL			0xFF818013
48 #define OID_RT_PRO_GET_CR_SIGNAL_QUALITY		0xFF818014
49 #define OID_RT_PRO_SET_CR_SETPOINT			0xFF818015
50 #define OID_RT_PRO_SET_INTEGRATOR			0xFF818016
51 #define OID_RT_PRO_SET_SIGNAL_QUALITY			0xFF818017
52 #define OID_RT_PRO_GET_INTEGRATOR			0xFF818018
53 #define OID_RT_PRO_GET_SIGNAL_QUALITY			0xFF818019
54 #define OID_RT_PRO_QUERY_EEPROM_TYPE			0xFF81801A
55 #define OID_RT_PRO_WRITE_MAC_ADDRESS			0xFF81801B
56 #define OID_RT_PRO_READ_MAC_ADDRESS			0xFF81801C
57 #define OID_RT_PRO_WRITE_CIS_DATA			0xFF81801D
58 #define OID_RT_PRO_READ_CIS_DATA			0xFF81801E
59 #define OID_RT_PRO_WRITE_POWER_CONTROL			0xFF81801F
60 #define OID_RT_PRO_READ_POWER_CONTROL			0xFF818020
61 #define OID_RT_PRO_WRITE_EEPROM				0xFF818021
62 #define OID_RT_PRO_READ_EEPROM				0xFF818022
63 #define OID_RT_PRO_RESET_TX_PACKET_SENT			0xFF818023
64 #define OID_RT_PRO_QUERY_TX_PACKET_SENT			0xFF818024
65 #define OID_RT_PRO_RESET_RX_PACKET_RECEIVED		0xFF818025
66 #define OID_RT_PRO_QUERY_RX_PACKET_RECEIVED		0xFF818026
67 #define OID_RT_PRO_QUERY_RX_PACKET_CRC32_ERROR		0xFF818027
68 #define OID_RT_PRO_QUERY_CURRENT_ADDRESS		0xFF818028
69 #define OID_RT_PRO_QUERY_PERMANENT_ADDRESS		0xFF818029
70 #define OID_RT_PRO_SET_PHILIPS_RF_PARAMETERS		0xFF81802A
71 #define OID_RT_PRO_RECEIVE_PACKET			0xFF81802C
72 #define OID_RT_PRO_WRITE_EEPROM_BYTE			0xFF81802D
73 #define OID_RT_PRO_READ_EEPROM_BYTE			0xFF81802E
74 #define OID_RT_PRO_SET_MODULATION			0xFF81802F
75 #define OID_RT_DRIVER_OPTION				0xFF818080
76 #define OID_RT_RF_OFF					0xFF818081
77 #define OID_RT_AUTH_STATUS				0xFF818082
78 #define OID_RT_PRO_SET_CONTINUOUS_TX			0xFF81800B
79 #define OID_RT_PRO_SET_SINGLE_CARRIER_TX		0xFF81800C
80 #define OID_RT_PRO_SET_CARRIER_SUPPRESSION_TX		0xFF81802B
81 #define OID_RT_PRO_SET_SINGLE_TONE_TX			0xFF818043
82 #define OID_RT_UTILITY_FALSE_ALARM_COUNTERS		0xFF818580
83 #define OID_RT_UTILITY_SELECT_DEBUG_MODE		0xFF818581
84 #define OID_RT_UTILITY_SELECT_SUBCARRIER_NUMBER		0xFF818582
85 #define OID_RT_UTILITY_GET_RSSI_STATUS			0xFF818583
86 #define OID_RT_UTILITY_GET_FRAME_DETECTION_STATUS	0xFF818584
87 #define OID_RT_UTILITY_GET_AGC_AND_FREQUENCY_OFFSET_ESTIMATION_STATUS \
88 							0xFF818585
89 #define OID_RT_UTILITY_GET_CHANNEL_ESTIMATION_STATUS	0xFF818586
90 #define OID_RT_WIRELESS_MODE				0xFF818500
91 #define OID_RT_SUPPORTED_RATES				0xFF818501
92 #define OID_RT_DESIRED_RATES				0xFF818502
93 #define OID_RT_WIRELESS_MODE_STARTING_ADHOC		0xFF818503
94 #define OID_RT_GET_CONNECT_STATE			0xFF030001
95 #define OID_RT_RESCAN					0xFF030002
96 #define OID_RT_SET_KEY_LENGTH				0xFF030003
97 #define OID_RT_SET_DEFAULT_KEY_ID			0xFF030004
98 #define OID_RT_SET_CHANNEL				0xFF010182
99 #define OID_RT_SET_SNIFFER_MODE				0xFF010183
100 #define OID_RT_GET_SIGNAL_QUALITY			0xFF010184
101 #define OID_RT_GET_SMALL_PACKET_CRC			0xFF010185
102 #define OID_RT_GET_MIDDLE_PACKET_CRC			0xFF010186
103 #define OID_RT_GET_LARGE_PACKET_CRC			0xFF010187
104 #define OID_RT_GET_TX_RETRY				0xFF010188
105 #define OID_RT_GET_RX_RETRY				0xFF010189
106 #define OID_RT_PRO_SET_FW_DIG_STATE			0xFF01018A
107 #define OID_RT_PRO_SET_FW_RA_STATE			0xFF01018B
108 #define OID_RT_GET_RX_TOTAL_PACKET			0xFF010190
109 #define OID_RT_GET_TX_BEACON_OK				0xFF010191
110 #define OID_RT_GET_TX_BEACON_ERR			0xFF010192
111 #define OID_RT_GET_RX_ICV_ERR				0xFF010193
112 #define OID_RT_SET_ENCRYPTION_ALGORITHM			0xFF010194
113 #define OID_RT_SET_NO_AUTO_RESCAN			0xFF010195
114 #define OID_RT_GET_PREAMBLE_MODE			0xFF010196
115 #define OID_RT_GET_DRIVER_UP_DELTA_TIME			0xFF010197
116 #define OID_RT_GET_AP_IP				0xFF010198
117 #define OID_RT_GET_CHANNELPLAN				0xFF010199
118 #define OID_RT_SET_PREAMBLE_MODE			0xFF01019A
119 #define OID_RT_SET_BCN_INTVL				0xFF01019B
120 #define OID_RT_GET_RF_VENDER				0xFF01019C
121 #define OID_RT_DEDICATE_PROBE				0xFF01019D
122 #define OID_RT_PRO_RX_FILTER_PATTERN			0xFF01019E
123 #define OID_RT_GET_DCST_CURRENT_THRESHOLD		0xFF01019F
124 #define OID_RT_GET_CCA_ERR				0xFF0101A0
125 #define OID_RT_GET_CCA_UPGRADE_THRESHOLD		0xFF0101A1
126 #define OID_RT_GET_CCA_FALLBACK_THRESHOLD		0xFF0101A2
127 #define OID_RT_GET_CCA_UPGRADE_EVALUATE_TIMES		0xFF0101A3
128 #define OID_RT_GET_CCA_FALLBACK_EVALUATE_TIMES		0xFF0101A4
129 #define OID_RT_SET_RATE_ADAPTIVE			0xFF0101A5
130 #define OID_RT_GET_DCST_EVALUATE_PERIOD			0xFF0101A5
131 #define OID_RT_GET_DCST_TIME_UNIT_INDEX			0xFF0101A6
132 #define OID_RT_GET_TOTAL_TX_BYTES			0xFF0101A7
133 #define OID_RT_GET_TOTAL_RX_BYTES			0xFF0101A8
134 #define OID_RT_CURRENT_TX_POWER_LEVEL			0xFF0101A9
135 #define OID_RT_GET_ENC_KEY_MISMATCH_COUNT		0xFF0101AA
136 #define OID_RT_GET_ENC_KEY_MATCH_COUNT			0xFF0101AB
137 #define OID_RT_GET_CHANNEL				0xFF0101AC
138 #define OID_RT_SET_CHANNELPLAN				0xFF0101AD
139 #define OID_RT_GET_HARDWARE_RADIO_OFF			0xFF0101AE
140 #define OID_RT_CHANNELPLAN_BY_COUNTRY			0xFF0101AF
141 #define OID_RT_SCAN_AVAILABLE_BSSID			0xFF0101B0
142 #define OID_RT_GET_HARDWARE_VERSION			0xFF0101B1
143 #define OID_RT_GET_IS_ROAMING				0xFF0101B2
144 #define OID_RT_GET_IS_PRIVACY				0xFF0101B3
145 #define OID_RT_GET_KEY_MISMATCH				0xFF0101B4
146 #define OID_RT_SET_RSSI_ROAM_TRAFFIC_TH			0xFF0101B5
147 #define OID_RT_SET_RSSI_ROAM_SIGNAL_TH			0xFF0101B6
148 #define OID_RT_RESET_LOG				0xFF0101B7
149 #define OID_RT_GET_LOG					0xFF0101B8
150 #define OID_RT_SET_INDICATE_HIDDEN_AP			0xFF0101B9
151 #define OID_RT_GET_HEADER_FAIL				0xFF0101BA
152 #define OID_RT_SUPPORTED_WIRELESS_MODE			0xFF0101BB
153 #define OID_RT_GET_CHANNEL_LIST				0xFF0101BC
154 #define OID_RT_GET_SCAN_IN_PROGRESS			0xFF0101BD
155 #define OID_RT_GET_TX_INFO				0xFF0101BE
156 #define OID_RT_RF_READ_WRITE_OFFSET			0xFF0101BF
157 #define OID_RT_RF_READ_WRITE				0xFF0101C0
158 #define OID_RT_FORCED_DATA_RATE				0xFF0101C1
159 #define OID_RT_WIRELESS_MODE_FOR_SCAN_LIST		0xFF0101C2
160 #define OID_RT_GET_BSS_WIRELESS_MODE			0xFF0101C3
161 #define OID_RT_SCAN_WITH_MAGIC_PACKET			0xFF0101C4
162 #define OID_RT_PRO_RX_FILTER				0xFF0111C0
163 #define OID_CE_USB_WRITE_REGISTRY			0xFF0111C1
164 #define OID_CE_USB_READ_REGISTRY			0xFF0111C2
165 #define OID_RT_PRO_SET_INITIAL_GAIN			0xFF0111C3
166 #define OID_RT_PRO_SET_BB_RF_STANDBY_MODE		0xFF0111C4
167 #define OID_RT_PRO_SET_BB_RF_SHUTDOWN_MODE		0xFF0111C5
168 #define OID_RT_PRO_SET_TX_CHARGE_PUMP			0xFF0111C6
169 #define OID_RT_PRO_SET_RX_CHARGE_PUMP			0xFF0111C7
170 #define OID_RT_PRO_RF_WRITE_REGISTRY			0xFF0111C8
171 #define OID_RT_PRO_RF_READ_REGISTRY			0xFF0111C9
172 #define OID_RT_PRO_QUERY_RF_TYPE			0xFF0111CA
173 #define OID_RT_AP_GET_ASSOCIATED_STATION_LIST		0xFF010300
174 #define OID_RT_AP_GET_CURRENT_TIME_STAMP		0xFF010301
175 #define OID_RT_AP_SWITCH_INTO_AP_MODE			0xFF010302
176 #define OID_RT_AP_SET_DTIM_PERIOD			0xFF010303
177 #define OID_RT_AP_SUPPORTED				0xFF010304
178 #define OID_RT_AP_SET_PASSPHRASE			0xFF010305
179 #define OID_RT_PRO8187_WI_POLL				0xFF818780
180 #define OID_RT_PRO_WRITE_BB_REG				0xFF818781
181 #define OID_RT_PRO_READ_BB_REG				0xFF818782
182 #define OID_RT_PRO_WRITE_RF_REG				0xFF818783
183 #define OID_RT_PRO_READ_RF_REG				0xFF818784
184 #define OID_RT_MH_VENDER_ID				0xFFEDC100
185 #define OID_RT_PRO8711_JOIN_BSS				0xFF871100
186 #define OID_RT_PRO_READ_REGISTER			0xFF871101
187 #define OID_RT_PRO_WRITE_REGISTER			0xFF871102
188 #define OID_RT_PRO_BURST_READ_REGISTER			0xFF871103
189 #define OID_RT_PRO_BURST_WRITE_REGISTER			0xFF871104
190 #define OID_RT_PRO_WRITE_TXCMD				0xFF871105
191 #define OID_RT_PRO_READ16_EEPROM			0xFF871106
192 #define OID_RT_PRO_WRITE16_EEPROM			0xFF871107
193 #define OID_RT_PRO_H2C_SET_COMMAND			0xFF871108
194 #define OID_RT_PRO_H2C_QUERY_RESULT			0xFF871109
195 #define OID_RT_PRO8711_WI_POLL				0xFF87110A
196 #define OID_RT_PRO8711_PKT_LOSS				0xFF87110B
197 #define OID_RT_RD_ATTRIB_MEM				0xFF87110C
198 #define OID_RT_WR_ATTRIB_MEM				0xFF87110D
199 /*Method 2 for H2C/C2H*/
200 #define OID_RT_PRO_H2C_CMD_MODE				0xFF871110
201 #define OID_RT_PRO_H2C_CMD_RSP_MODE			0xFF871111
202 #define OID_RT_PRO_H2C_CMD_EVENT_MODE			0xFF871112
203 #define OID_RT_PRO_WAIT_C2H_EVENT			0xFF871113
204 #define OID_RT_PRO_RW_ACCESS_PROTOCOL_TEST		0xFF871114
205 #define OID_RT_PRO_SCSI_ACCESS_TEST			0xFF871115
206 #define OID_RT_PRO_SCSI_TCPIPOFFLOAD_OUT		0xFF871116
207 #define OID_RT_PRO_SCSI_TCPIPOFFLOAD_IN			0xFF871117
208 #define OID_RT_RRO_RX_PKT_VIA_IOCTRL			0xFF871118
209 #define OID_RT_RRO_RX_PKTARRAY_VIA_IOCTRL		0xFF871119
210 #define OID_RT_RPO_SET_PWRMGT_TEST			0xFF87111A
211 #define OID_RT_PRO_QRY_PWRMGT_TEST			0XFF87111B
212 #define OID_RT_RPO_ASYNC_RWIO_TEST			0xFF87111C
213 #define OID_RT_RPO_ASYNC_RWIO_POLL			0xFF87111D
214 #define OID_RT_PRO_SET_RF_INTFS				0xFF87111E
215 #define OID_RT_POLL_RX_STATUS				0xFF87111F
216 #define OID_RT_PRO_CFG_DEBUG_MESSAGE			0xFF871120
217 #define OID_RT_PRO_SET_DATA_RATE_EX			0xFF871121
218 #define OID_RT_PRO_SET_BASIC_RATE			0xFF871122
219 #define OID_RT_PRO_READ_TSSI				0xFF871123
220 #define OID_RT_PRO_SET_POWER_TRACKING			0xFF871124
221 #define OID_RT_PRO_QRY_PWRSTATE				0xFF871150
222 #define OID_RT_PRO_SET_PWRSTATE				0xFF871151
223 /*Method 2 , using workitem */
224 #define OID_RT_SET_READ_REG				0xFF871181
225 #define OID_RT_SET_WRITE_REG				0xFF871182
226 #define OID_RT_SET_BURST_READ_REG			0xFF871183
227 #define OID_RT_SET_BURST_WRITE_REG			0xFF871184
228 #define OID_RT_SET_WRITE_TXCMD				0xFF871185
229 #define OID_RT_SET_READ16_EEPROM			0xFF871186
230 #define OID_RT_SET_WRITE16_EEPROM			0xFF871187
231 #define OID_RT_QRY_POLL_WKITEM				0xFF871188
232 
233 /*For SDIO INTERFACE only*/
234 #define OID_RT_PRO_SYNCPAGERW_SRAM			0xFF8711A0
235 #define OID_RT_PRO_871X_DRV_EXT				0xFF8711A1
236 
237 /*For USB INTERFACE only*/
238 #define OID_RT_PRO_USB_VENDOR_REQ			0xFF8711B0
239 #define OID_RT_PRO_SCSI_AUTO_TEST			0xFF8711B1
240 #define OID_RT_PRO_USB_MAC_AC_FIFO_WRITE		0xFF8711B2
241 #define OID_RT_PRO_USB_MAC_RX_FIFO_READ			0xFF8711B3
242 #define OID_RT_PRO_USB_MAC_RX_FIFO_POLLING		0xFF8711B4
243 
244 #define OID_RT_PRO_H2C_SET_RATE_TABLE			0xFF8711FB
245 #define OID_RT_PRO_H2C_GET_RATE_TABLE			0xFF8711FC
246 #define OID_RT_PRO_H2C_C2H_LBK_TEST			0xFF8711FE
247 
248 #define OID_RT_PRO_ENCRYPTION_CTRL			0xFF871200
249 #define OID_RT_PRO_ADD_STA_INFO				0xFF871201
250 #define OID_RT_PRO_DELE_STA_INFO			0xFF871202
251 #define OID_RT_PRO_QUERY_DR_VARIABLE			0xFF871203
252 
253 #define OID_RT_PRO_RX_PACKET_TYPE			0xFF871204
254 
255 #define OID_RT_PRO_READ_EFUSE				0xFF871205
256 #define OID_RT_PRO_WRITE_EFUSE				0xFF871206
257 #define OID_RT_PRO_RW_EFUSE_PGPKT			0xFF871207
258 #define OID_RT_GET_EFUSE_CURRENT_SIZE			0xFF871208
259 
260 #define OID_RT_SET_BANDWIDTH				0xFF871209
261 #define OID_RT_SET_CRYSTAL_CAP				0xFF87120A
262 
263 #define OID_RT_SET_RX_PACKET_TYPE			0xFF87120B
264 
265 #define OID_RT_GET_EFUSE_MAX_SIZE			0xFF87120C
266 
267 #define OID_RT_PRO_SET_TX_AGC_OFFSET			0xFF87120D
268 
269 #define OID_RT_PRO_SET_PKT_TEST_MODE			0xFF87120E
270 
271 #define OID_RT_PRO_FOR_EVM_TEST_SETTING			0xFF87120F
272 
273 #define OID_RT_PRO_GET_THERMAL_METER			0xFF871210
274 
275 #define OID_RT_RESET_PHY_RX_PACKET_COUNT		0xFF871211
276 #define OID_RT_GET_PHY_RX_PACKET_RECEIVED		0xFF871212
277 #define OID_RT_GET_PHY_RX_PACKET_CRC32_ERROR		0xFF871213
278 
279 #define OID_RT_SET_POWER_DOWN				0xFF871214
280 
281 #define OID_RT_GET_POWER_MODE				0xFF871215
282 
283 #define OID_RT_PRO_EFUSE				0xFF871216
284 #define OID_RT_PRO_EFUSE_MAP				0xFF871217
285 
286 #endif /*#ifndef __CUSTOM_OID_H */
287 
288