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