Use the rdtscl call only on x86 achitectures
[acx-mac80211.git] / acx_commands.h
blob0130d436f5877f1d0f1ab9c15596d609ee227d02
1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
3 * The ACX100 Open Source Project <acx100-devel@lists.sourceforge.net>
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _ACX_COMMANDS_H_
20 #define _ACX_COMMANDS_H_
22 /*
23 * ----------------------------------------------------------------------------
24 * Can be found in the cmdTable table on the "Rev. 1.5.0" (FW150) firmware
25 * ----------------------------------------------------------------------------
27 #define ACX1xx_CMD_RESET 0x00
28 #define ACX1xx_CMD_INTERROGATE 0x01
29 #define ACX1xx_CMD_CONFIGURE 0x02
30 #define ACX1xx_CMD_ENABLE_RX 0x03
31 #define ACX1xx_CMD_ENABLE_TX 0x04
32 #define ACX1xx_CMD_DISABLE_RX 0x05
33 #define ACX1xx_CMD_DISABLE_TX 0x06
34 #define ACX1xx_CMD_FLUSH_QUEUE 0x07
35 #define ACX1xx_CMD_SCAN 0x08
36 #define ACX1xx_CMD_STOP_SCAN 0x09
37 #define ACX1xx_CMD_CONFIG_TIM 0x0A
38 #define ACX1xx_CMD_JOIN 0x0D
39 #define ACX1xx_CMD_WEP_MGMT 0x0C
40 #ifndef OLD_FIRMWARE_VERSIONS
41 #define ACX1xx_CMD_MEM_READ 0x0D
42 #define ACX1xx_CMD_MEM_WRITE 0x0E
43 #else
44 #define ACX100_CMD_HALT 0x0E /* mapped to unknownCMD in FW150 */
45 #endif /* OLD_FIRMWARE_VERSIONS */
46 #define ACX1xx_CMD_SLEEP 0x0F
47 #define ACX1xx_CMD_WAKE 0x10
48 #define ACX1xx_CMD_UNKNOWN_11 0x11 /* mapped to unknownCMD in FW150 */
49 #define ACX100_CMD_INIT_MEMORY 0x12
50 #define ACX1FF_CMD_DISABLE_RADIO 0x12 /* new firmware? TNETW1450? + NOT in BSD driver */
51 #define ACX1xx_CMD_CONFIG_BEACON 0x13
52 #define ACX1xx_CMD_CONFIG_PROBE_RESPONSE 0x0014
53 #define ACX1xx_CMD_CONFIG_NULL_DATA 0x15
54 #define ACX1xx_CMD_CONFIG_PROBE_REQUEST 0x16
55 #define ACX1xx_CMD_FCC_TEST 0x17
56 #define ACX1xx_CMD_RADIOINIT 0x18
57 #define ACX111_CMD_RADIOCALIB 0x19
58 #define ACX1FF_CMD_NOISE_HISTOGRAM 0x1c /* new firmware? TNETW1450? */
59 #define ACX1FF_CMD_RX_RESET 0x1d /* new firmware? TNETW1450? */
60 #define ACX1FF_CMD_LNA_CONTROL 0x20 /* new firmware? TNETW1450? */
61 #define ACX1FF_CMD_CONTROL_DBG_TRACE 0x21 /* new firmware? TNETW1450? */
63 /* 'After Interrupt' Commands */
64 #define ACX_AFTER_IRQ_CMD_STOP_SCAN 0x01
65 #define ACX_AFTER_IRQ_CMD_ASSOCIATE 0x02
66 #define ACX_AFTER_IRQ_CMD_RADIO_RECALIB 0x04
67 #define ACX_AFTER_IRQ_UPDATE_CARD_CFG 0x08
68 #define ACX_AFTER_IRQ_TX_CLEANUP 0x10
69 #define ACX_AFTER_IRQ_COMPLETE_SCAN 0x20
70 #define ACX_AFTER_IRQ_RESTART_SCAN 0x40
72 #endif /* _ACX_COMMANDS_H_ */