linux/drivers/staging/rtl8712/mp_custom_oid.h

/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
 *
 * Modifications for inclusion into the Linux staging tree are
 * Copyright(c) 2010 Larry Finger. All rights reserved.
 *
 * Contact information:
 * WLAN FAE <[email protected]>
 * Larry Finger <[email protected]>
 *
 ******************************************************************************/
#ifndef	__CUSTOM_OID_H
#define __CUSTOM_OID_H

/* 0xFF818000 - 0xFF81802F		RTL8180 Mass Production Kit
 * 0xFF818500 - 0xFF81850F		RTL8185 Setup Utility
 * 0xFF818580 - 0xFF81858F		RTL8185 Phy Status Utility
 *
 * by Owen for Production Kit
 * For Production Kit with Agilent Equipments
 * in order to make our custom oids hopefully somewhat unique
 * we will use 0xFF (indicating implementation specific OID)
 *	 81(first byte of non zero Realtek unique identifier)
 *	 80 (second byte of non zero Realtek unique identifier)
 *	 XX (the custom OID number - providing 255 possible custom oids)
 */
#define OID_RT_PRO_RESET_DUT
#define OID_RT_PRO_SET_DATA_RATE
#define OID_RT_PRO_START_TEST
#define OID_RT_PRO_STOP_TEST
#define OID_RT_PRO_SET_PREAMBLE
#define OID_RT_PRO_SET_SCRAMBLER
#define OID_RT_PRO_SET_FILTER_BB
#define OID_RT_PRO_SET_MANUAL_DIVERSITY_BB
#define OID_RT_PRO_SET_CHANNEL_DIRECT_CALL
#define OID_RT_PRO_SET_SLEEP_MODE_DIRECT_CALL
#define OID_RT_PRO_SET_WAKE_MODE_DIRECT_CALL

#define OID_RT_PRO_SET_TX_ANTENNA_BB
#define OID_RT_PRO_SET_ANTENNA_BB
#define OID_RT_PRO_SET_CR_SCRAMBLER
#define OID_RT_PRO_SET_CR_NEW_FILTER
#define OID_RT_PRO_SET_TX_POWER_CONTROL
#define OID_RT_PRO_SET_CR_TX_CONFIG
#define OID_RT_PRO_GET_TX_POWER_CONTROL
#define OID_RT_PRO_GET_CR_SIGNAL_QUALITY
#define OID_RT_PRO_SET_CR_SETPOINT
#define OID_RT_PRO_SET_INTEGRATOR
#define OID_RT_PRO_SET_SIGNAL_QUALITY
#define OID_RT_PRO_GET_INTEGRATOR
#define OID_RT_PRO_GET_SIGNAL_QUALITY
#define OID_RT_PRO_QUERY_EEPROM_TYPE
#define OID_RT_PRO_WRITE_MAC_ADDRESS
#define OID_RT_PRO_READ_MAC_ADDRESS
#define OID_RT_PRO_WRITE_CIS_DATA
#define OID_RT_PRO_READ_CIS_DATA
#define OID_RT_PRO_WRITE_POWER_CONTROL
#define OID_RT_PRO_READ_POWER_CONTROL
#define OID_RT_PRO_WRITE_EEPROM
#define OID_RT_PRO_READ_EEPROM
#define OID_RT_PRO_RESET_TX_PACKET_SENT
#define OID_RT_PRO_QUERY_TX_PACKET_SENT
#define OID_RT_PRO_RESET_RX_PACKET_RECEIVED
#define OID_RT_PRO_QUERY_RX_PACKET_RECEIVED
#define OID_RT_PRO_QUERY_RX_PACKET_CRC32_ERROR
#define OID_RT_PRO_QUERY_CURRENT_ADDRESS
#define OID_RT_PRO_QUERY_PERMANENT_ADDRESS
#define OID_RT_PRO_SET_PHILIPS_RF_PARAMETERS
#define OID_RT_PRO_RECEIVE_PACKET
#define OID_RT_PRO_WRITE_EEPROM_BYTE
#define OID_RT_PRO_READ_EEPROM_BYTE
#define OID_RT_PRO_SET_MODULATION
#define OID_RT_DRIVER_OPTION
#define OID_RT_RF_OFF
#define OID_RT_AUTH_STATUS
#define OID_RT_PRO_SET_CONTINUOUS_TX
#define OID_RT_PRO_SET_SINGLE_CARRIER_TX
#define OID_RT_PRO_SET_CARRIER_SUPPRESSION_TX
#define OID_RT_PRO_SET_SINGLE_TONE_TX
#define OID_RT_UTILITY_FALSE_ALARM_COUNTERS
#define OID_RT_UTILITY_SELECT_DEBUG_MODE
#define OID_RT_UTILITY_SELECT_SUBCARRIER_NUMBER
#define OID_RT_UTILITY_GET_RSSI_STATUS
#define OID_RT_UTILITY_GET_FRAME_DETECTION_STATUS
#define OID_RT_UTILITY_GET_AGC_AND_FREQUENCY_OFFSET_ESTIMATION_STATUS
#define OID_RT_UTILITY_GET_CHANNEL_ESTIMATION_STATUS
#define OID_RT_WIRELESS_MODE
#define OID_RT_SUPPORTED_RATES
#define OID_RT_DESIRED_RATES
#define OID_RT_WIRELESS_MODE_STARTING_ADHOC
#define OID_RT_GET_CONNECT_STATE
#define OID_RT_RESCAN
#define OID_RT_SET_KEY_LENGTH
#define OID_RT_SET_DEFAULT_KEY_ID
#define OID_RT_SET_CHANNEL
#define OID_RT_SET_SNIFFER_MODE
#define OID_RT_GET_SIGNAL_QUALITY
#define OID_RT_GET_SMALL_PACKET_CRC
#define OID_RT_GET_MIDDLE_PACKET_CRC
#define OID_RT_GET_LARGE_PACKET_CRC
#define OID_RT_GET_TX_RETRY
#define OID_RT_GET_RX_RETRY
#define OID_RT_PRO_SET_FW_DIG_STATE
#define OID_RT_PRO_SET_FW_RA_STATE
#define OID_RT_GET_RX_TOTAL_PACKET
#define OID_RT_GET_TX_BEACON_OK
#define OID_RT_GET_TX_BEACON_ERR
#define OID_RT_GET_RX_ICV_ERR
#define OID_RT_SET_ENCRYPTION_ALGORITHM
#define OID_RT_SET_NO_AUTO_RESCAN
#define OID_RT_GET_PREAMBLE_MODE
#define OID_RT_GET_DRIVER_UP_DELTA_TIME
#define OID_RT_GET_AP_IP
#define OID_RT_GET_CHANNELPLAN
#define OID_RT_SET_PREAMBLE_MODE
#define OID_RT_SET_BCN_INTVL
#define OID_RT_GET_RF_VENDER
#define OID_RT_DEDICATE_PROBE
#define OID_RT_PRO_RX_FILTER_PATTERN
#define OID_RT_GET_DCST_CURRENT_THRESHOLD
#define OID_RT_GET_CCA_ERR
#define OID_RT_GET_CCA_UPGRADE_THRESHOLD
#define OID_RT_GET_CCA_FALLBACK_THRESHOLD
#define OID_RT_GET_CCA_UPGRADE_EVALUATE_TIMES
#define OID_RT_GET_CCA_FALLBACK_EVALUATE_TIMES
#define OID_RT_SET_RATE_ADAPTIVE
#define OID_RT_GET_DCST_EVALUATE_PERIOD
#define OID_RT_GET_DCST_TIME_UNIT_INDEX
#define OID_RT_GET_TOTAL_TX_BYTES
#define OID_RT_GET_TOTAL_RX_BYTES
#define OID_RT_CURRENT_TX_POWER_LEVEL
#define OID_RT_GET_ENC_KEY_MISMATCH_COUNT
#define OID_RT_GET_ENC_KEY_MATCH_COUNT
#define OID_RT_GET_CHANNEL
#define OID_RT_SET_CHANNELPLAN
#define OID_RT_GET_HARDWARE_RADIO_OFF
#define OID_RT_CHANNELPLAN_BY_COUNTRY
#define OID_RT_SCAN_AVAILABLE_BSSID
#define OID_RT_GET_HARDWARE_VERSION
#define OID_RT_GET_IS_ROAMING
#define OID_RT_GET_IS_PRIVACY
#define OID_RT_GET_KEY_MISMATCH
#define OID_RT_SET_RSSI_ROAM_TRAFFIC_TH
#define OID_RT_SET_RSSI_ROAM_SIGNAL_TH
#define OID_RT_RESET_LOG
#define OID_RT_GET_LOG
#define OID_RT_SET_INDICATE_HIDDEN_AP
#define OID_RT_GET_HEADER_FAIL
#define OID_RT_SUPPORTED_WIRELESS_MODE
#define OID_RT_GET_CHANNEL_LIST
#define OID_RT_GET_SCAN_IN_PROGRESS
#define OID_RT_GET_TX_INFO
#define OID_RT_RF_READ_WRITE_OFFSET
#define OID_RT_RF_READ_WRITE
#define OID_RT_FORCED_DATA_RATE
#define OID_RT_WIRELESS_MODE_FOR_SCAN_LIST
#define OID_RT_GET_BSS_WIRELESS_MODE
#define OID_RT_SCAN_WITH_MAGIC_PACKET
#define OID_RT_PRO_RX_FILTER
#define OID_CE_USB_WRITE_REGISTRY
#define OID_CE_USB_READ_REGISTRY
#define OID_RT_PRO_SET_INITIAL_GAIN
#define OID_RT_PRO_SET_BB_RF_STANDBY_MODE
#define OID_RT_PRO_SET_BB_RF_SHUTDOWN_MODE
#define OID_RT_PRO_SET_TX_CHARGE_PUMP
#define OID_RT_PRO_SET_RX_CHARGE_PUMP
#define OID_RT_PRO_RF_WRITE_REGISTRY
#define OID_RT_PRO_RF_READ_REGISTRY
#define OID_RT_PRO_QUERY_RF_TYPE
#define OID_RT_AP_GET_ASSOCIATED_STATION_LIST
#define OID_RT_AP_GET_CURRENT_TIME_STAMP
#define OID_RT_AP_SWITCH_INTO_AP_MODE
#define OID_RT_AP_SET_DTIM_PERIOD
#define OID_RT_AP_SUPPORTED
#define OID_RT_AP_SET_PASSPHRASE
#define OID_RT_PRO8187_WI_POLL
#define OID_RT_PRO_WRITE_BB_REG
#define OID_RT_PRO_READ_BB_REG
#define OID_RT_PRO_WRITE_RF_REG
#define OID_RT_PRO_READ_RF_REG
#define OID_RT_MH_VENDER_ID
#define OID_RT_PRO8711_JOIN_BSS
#define OID_RT_PRO_READ_REGISTER
#define OID_RT_PRO_WRITE_REGISTER
#define OID_RT_PRO_BURST_READ_REGISTER
#define OID_RT_PRO_BURST_WRITE_REGISTER
#define OID_RT_PRO_WRITE_TXCMD
#define OID_RT_PRO_READ16_EEPROM
#define OID_RT_PRO_WRITE16_EEPROM
#define OID_RT_PRO_H2C_SET_COMMAND
#define OID_RT_PRO_H2C_QUERY_RESULT
#define OID_RT_PRO8711_WI_POLL
#define OID_RT_PRO8711_PKT_LOSS
#define OID_RT_RD_ATTRIB_MEM
#define OID_RT_WR_ATTRIB_MEM
/*Method 2 for H2C/C2H*/
#define OID_RT_PRO_H2C_CMD_MODE
#define OID_RT_PRO_H2C_CMD_RSP_MODE
#define OID_RT_PRO_H2C_CMD_EVENT_MODE
#define OID_RT_PRO_WAIT_C2H_EVENT
#define OID_RT_PRO_RW_ACCESS_PROTOCOL_TEST
#define OID_RT_PRO_SCSI_ACCESS_TEST
#define OID_RT_PRO_SCSI_TCPIPOFFLOAD_OUT
#define OID_RT_PRO_SCSI_TCPIPOFFLOAD_IN
#define OID_RT_RRO_RX_PKT_VIA_IOCTRL
#define OID_RT_RRO_RX_PKTARRAY_VIA_IOCTRL
#define OID_RT_RPO_SET_PWRMGT_TEST
#define OID_RT_PRO_QRY_PWRMGT_TEST
#define OID_RT_RPO_ASYNC_RWIO_TEST
#define OID_RT_RPO_ASYNC_RWIO_POLL
#define OID_RT_PRO_SET_RF_INTFS
#define OID_RT_POLL_RX_STATUS
#define OID_RT_PRO_CFG_DEBUG_MESSAGE
#define OID_RT_PRO_SET_DATA_RATE_EX
#define OID_RT_PRO_SET_BASIC_RATE
#define OID_RT_PRO_READ_TSSI
#define OID_RT_PRO_SET_POWER_TRACKING
#define OID_RT_PRO_QRY_PWRSTATE
#define OID_RT_PRO_SET_PWRSTATE
/*Method 2 , using workitem */
#define OID_RT_SET_READ_REG
#define OID_RT_SET_WRITE_REG
#define OID_RT_SET_BURST_READ_REG
#define OID_RT_SET_BURST_WRITE_REG
#define OID_RT_SET_WRITE_TXCMD
#define OID_RT_SET_READ16_EEPROM
#define OID_RT_SET_WRITE16_EEPROM
#define OID_RT_QRY_POLL_WKITEM

/*For SDIO INTERFACE only*/
#define OID_RT_PRO_SYNCPAGERW_SRAM
#define OID_RT_PRO_871X_DRV_EXT

/*For USB INTERFACE only*/
#define OID_RT_PRO_USB_VENDOR_REQ
#define OID_RT_PRO_SCSI_AUTO_TEST
#define OID_RT_PRO_USB_MAC_AC_FIFO_WRITE
#define OID_RT_PRO_USB_MAC_RX_FIFO_READ
#define OID_RT_PRO_USB_MAC_RX_FIFO_POLLING

#define OID_RT_PRO_H2C_SET_RATE_TABLE
#define OID_RT_PRO_H2C_GET_RATE_TABLE
#define OID_RT_PRO_H2C_C2H_LBK_TEST

#define OID_RT_PRO_ENCRYPTION_CTRL
#define OID_RT_PRO_ADD_STA_INFO
#define OID_RT_PRO_DELE_STA_INFO
#define OID_RT_PRO_QUERY_DR_VARIABLE

#define OID_RT_PRO_RX_PACKET_TYPE

#define OID_RT_PRO_READ_EFUSE
#define OID_RT_PRO_WRITE_EFUSE
#define OID_RT_PRO_RW_EFUSE_PGPKT
#define OID_RT_GET_EFUSE_CURRENT_SIZE

#define OID_RT_SET_BANDWIDTH
#define OID_RT_SET_CRYSTAL_CAP

#define OID_RT_SET_RX_PACKET_TYPE

#define OID_RT_GET_EFUSE_MAX_SIZE

#define OID_RT_PRO_SET_TX_AGC_OFFSET

#define OID_RT_PRO_SET_PKT_TEST_MODE

#define OID_RT_PRO_FOR_EVM_TEST_SETTING

#define OID_RT_PRO_GET_THERMAL_METER

#define OID_RT_RESET_PHY_RX_PACKET_COUNT
#define OID_RT_GET_PHY_RX_PACKET_RECEIVED
#define OID_RT_GET_PHY_RX_PACKET_CRC32_ERROR

#define OID_RT_SET_POWER_DOWN

#define OID_RT_GET_POWER_MODE

#define OID_RT_PRO_EFUSE
#define OID_RT_PRO_EFUSE_MAP

#endif /*#ifndef __CUSTOM_OID_H */