Added the remaining changes left from the previous merge
[acx-mac80211.git] / acx_commands.h
bloba753863d48997aef30c24cbc751c29582580cb30
1 #ifndef _ACX_COMMANDS_H_
2 #define _ACX_COMMANDS_H_
4 /*
5 * acx_commands.h: querying/configuration commands. Differ depending on the
6 * chipset and bus type (PCI or USB - it appears that VLYNQ behaves like PCI
7 * most of the time - most).
9 * Copyright (c) 2003, 2008 ACX100 driver project.
11 * This file is licensed under the GPLv2. See the README file for more
12 * information.
14 * Part of the original comments can be seen between the dash lines below. I
15 * just cannot make sense of the first part right now.
17 * See also the file README.unknowncommands: it contains other commands gathered
18 * from snooping/anyothermeans of unhandled TI chipsets.
20 * ----------------------------------------------------------------------------
21 * NB: length includes JUST the data part of the IE
22 * (does not include size of the (type,len) pair)
24 * TODO: seems that acx100, acx100usb, acx111 have some differences,
25 * fix code with regard to this!
26 * ----------------------------------------------------------------------------
29 /*
30 * ----------------------------------------------------------------------------
31 * can be found in the cmdTable table in the "Rev. 1.5.0" (FW150) firmware
32 * ----------------------------------------------------------------------------
34 #define ACX1xx_CMD_RESET 0x0000
35 #define ACX1xx_CMD_INTERROGATE 0x0001
36 #define ACX1xx_CMD_CONFIGURE 0x0002
37 #define ACX1xx_CMD_ENABLE_RX 0x0003
38 #define ACX1xx_CMD_ENABLE_TX 0x0004
39 #define ACX1xx_CMD_DISABLE_RX 0x0005
40 #define ACX1xx_CMD_DISABLE_TX 0x0006
41 #define ACX1xx_CMD_FLUSH_QUEUE 0x0007
42 #define ACX1xx_CMD_SCAN 0x0008
43 #define ACX1xx_CMD_STOP_SCAN 0x0009
44 #define ACX1xx_CMD_CONFIG_TIM 0x000a
45 #define ACX1xx_CMD_JOIN 0x000b
46 #define ACX1xx_CMD_WEP_MGMT 0x000c
49 * FIXME: get rid of this? We don't have any old firmware lying around, do we?
51 #ifdef OLD_FIRMWARE_VERSIONS
52 /* mapped to unknownCMD in FW150 */
53 #define ACX100_CMD_HALT 0x000e
54 #else
55 #define ACX1xx_CMD_MEM_READ 0x000d
56 #define ACX1xx_CMD_MEM_WRITE 0x000e
57 #endif /* OLD_FIRMWARE_VERSIONS */
58 #define ACX1xx_CMD_SLEEP 0x000f
59 #define ACX1xx_CMD_WAKE 0x0010
60 /* mapped to unknownCMD in FW150 */
61 /* #define ACX1xx_CMD_UNKNOWN_11 0x0011 */ // not used by BSD driver too
62 #define ACX100_CMD_INIT_MEMORY 0x0012
63 #define ACX1FF_CMD_DISABLE_RADIO 0x0012 /* new firmware? TNETW1450? + NOT in BSD driver */
64 #define ACX1xx_CMD_CONFIG_BEACON 0x0013
65 #define ACX1xx_CMD_CONFIG_PROBE_RESPONSE 0x0014
66 #define ACX1xx_CMD_CONFIG_NULL_DATA 0x0015
67 #define ACX1xx_CMD_CONFIG_PROBE_REQUEST 0x0016
68 #define ACX1xx_CMD_FCC_TEST 0x0017 /* known as ACX_CMD_TEST in BSD driver */
69 #define ACX1xx_CMD_RADIOINIT 0x0018
70 #define ACX111_CMD_RADIOCALIB 0x0019
71 #define ACX1FF_CMD_NOISE_HISTOGRAM 0x001c /* new firmware? TNETW1450? */
72 #define ACX1FF_CMD_RX_RESET 0x001d /* new firmware? TNETW1450? */
73 #define ACX1FF_CMD_LNA_CONTROL 0x0020 /* new firmware? TNETW1450? */
74 #define ACX1FF_CMD_CONTROL_DBG_TRACE 0x0021 /* new firmware? TNETW1450? */
77 /* 'After Interrupt' Commands */
78 #define ACX_AFTER_IRQ_CMD_STOP_SCAN 0x01
79 #define ACX_AFTER_IRQ_CMD_ASSOCIATE 0x02
80 #define ACX_AFTER_IRQ_CMD_RADIO_RECALIB 0x04
81 #define ACX_AFTER_IRQ_UPDATE_CARD_CFG 0x08
82 #define ACX_AFTER_IRQ_TX_CLEANUP 0x10
83 #define ACX_AFTER_IRQ_COMPLETE_SCAN 0x20
84 #define ACX_AFTER_IRQ_RESTART_SCAN 0x40
86 #endif /* _ACX_COMMANDS_H_ */