fwcmd.h (6288cf1e768ae73db5ddaaae54d85245cc1c2b56) | fwcmd.h (85ee5122abbc1b5c5f3622e46942291a2f6f1261) |
---|---|
1/* 2 * Shared Atheros AR9170 Header 3 * 4 * Firmware command interface definitions 5 * 6 * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> | 1/* 2 * Shared Atheros AR9170 Header 3 * 4 * Firmware command interface definitions 5 * 6 * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> |
7 * Copyright 2009, 2010, Christian Lamparter <chunkeey@googlemail.com> | 7 * Copyright 2009-2011 Christian Lamparter <chunkeey@googlemail.com> |
8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 33 unchanged lines hidden (view full) --- 49 CARL9170_CMD_RREG = 0x00, 50 CARL9170_CMD_WREG = 0x01, 51 CARL9170_CMD_ECHO = 0x02, 52 CARL9170_CMD_SWRST = 0x03, 53 CARL9170_CMD_REBOOT = 0x04, 54 CARL9170_CMD_BCN_CTRL = 0x05, 55 CARL9170_CMD_READ_TSF = 0x06, 56 CARL9170_CMD_RX_FILTER = 0x07, | 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 33 unchanged lines hidden (view full) --- 49 CARL9170_CMD_RREG = 0x00, 50 CARL9170_CMD_WREG = 0x01, 51 CARL9170_CMD_ECHO = 0x02, 52 CARL9170_CMD_SWRST = 0x03, 53 CARL9170_CMD_REBOOT = 0x04, 54 CARL9170_CMD_BCN_CTRL = 0x05, 55 CARL9170_CMD_READ_TSF = 0x06, 56 CARL9170_CMD_RX_FILTER = 0x07, |
57 CARL9170_CMD_WOL = 0x08, |
|
57 58 /* CAM */ 59 CARL9170_CMD_EKEY = 0x10, 60 CARL9170_CMD_DKEY = 0x11, 61 62 /* RF / PHY */ 63 CARL9170_CMD_FREQUENCY = 0x20, 64 CARL9170_CMD_RF_INIT = 0x21, --- 110 unchanged lines hidden (view full) --- 175 __le32 bcn_addr; 176 __le32 bcn_len; 177} __packed; 178#define CARL9170_BCN_CTRL_CMD_SIZE 16 179 180#define CARL9170_BCN_CTRL_DRAIN 0 181#define CARL9170_BCN_CTRL_CAB_TRIGGER 1 182 | 58 59 /* CAM */ 60 CARL9170_CMD_EKEY = 0x10, 61 CARL9170_CMD_DKEY = 0x11, 62 63 /* RF / PHY */ 64 CARL9170_CMD_FREQUENCY = 0x20, 65 CARL9170_CMD_RF_INIT = 0x21, --- 110 unchanged lines hidden (view full) --- 176 __le32 bcn_addr; 177 __le32 bcn_len; 178} __packed; 179#define CARL9170_BCN_CTRL_CMD_SIZE 16 180 181#define CARL9170_BCN_CTRL_DRAIN 0 182#define CARL9170_BCN_CTRL_CAB_TRIGGER 1 183 |
184struct carl9170_wol_cmd { 185 __le32 flags; 186 u8 mac[6]; 187 u8 bssid[6]; 188 __le32 null_interval; 189 __le32 free_for_use2; 190 __le32 mask; 191 u8 pattern[32]; 192} __packed; 193 194#define CARL9170_WOL_CMD_SIZE 60 195 196#define CARL9170_WOL_DISCONNECT 1 197#define CARL9170_WOL_MAGIC_PKT 2 198 |
|
183struct carl9170_cmd_head { 184 union { 185 struct { 186 u8 len; 187 u8 cmd; 188 u8 seq; 189 u8 ext; 190 } __packed; --- 7 unchanged lines hidden (view full) --- 198 union { 199 struct carl9170_set_key_cmd setkey; 200 struct carl9170_disable_key_cmd disablekey; 201 struct carl9170_u32_list echo; 202 struct carl9170_reg_list rreg; 203 struct carl9170_write_reg wreg; 204 struct carl9170_rf_init rf_init; 205 struct carl9170_psm psm; | 199struct carl9170_cmd_head { 200 union { 201 struct { 202 u8 len; 203 u8 cmd; 204 u8 seq; 205 u8 ext; 206 } __packed; --- 7 unchanged lines hidden (view full) --- 214 union { 215 struct carl9170_set_key_cmd setkey; 216 struct carl9170_disable_key_cmd disablekey; 217 struct carl9170_u32_list echo; 218 struct carl9170_reg_list rreg; 219 struct carl9170_write_reg wreg; 220 struct carl9170_rf_init rf_init; 221 struct carl9170_psm psm; |
222 struct carl9170_wol_cmd wol; |
|
206 struct carl9170_bcn_ctrl_cmd bcn_ctrl; 207 struct carl9170_rx_filter_cmd rx_filter; 208 u8 data[CARL9170_MAX_CMD_PAYLOAD_LEN]; 209 } __packed; 210} __packed __aligned(4); 211 212#define CARL9170_TX_STATUS_QUEUE 3 213#define CARL9170_TX_STATUS_QUEUE_S 0 --- 77 unchanged lines hidden --- | 223 struct carl9170_bcn_ctrl_cmd bcn_ctrl; 224 struct carl9170_rx_filter_cmd rx_filter; 225 u8 data[CARL9170_MAX_CMD_PAYLOAD_LEN]; 226 } __packed; 227} __packed __aligned(4); 228 229#define CARL9170_TX_STATUS_QUEUE 3 230#define CARL9170_TX_STATUS_QUEUE_S 0 --- 77 unchanged lines hidden --- |