| OLD | NEW |
| 1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="testcmd.h" company="Atheros"> | 2 // <copyright file="testcmd.h" company="Atheros"> |
| 3 // Copyright (c) 2004-2005 Atheros Corporation. All rights reserved. | 3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. |
| 4 // | 4 // |
| 5 // This program is free software; you can redistribute it and/or modify | |
| 6 // it under the terms of the GNU General Public License version 2 as | |
| 7 // published by the Free Software Foundation; | |
| 8 // | 5 // |
| 9 // Software distributed under the License is distributed on an "AS | 6 // Permission to use, copy, modify, and/or distribute this software for any |
| 10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | 7 // purpose with or without fee is hereby granted, provided that the above |
| 11 // implied. See the License for the specific language governing | 8 // copyright notice and this permission notice appear in all copies. |
| 12 // rights and limitations under the License. | 9 // |
| 10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 13 // | 17 // |
| 14 // | 18 // |
| 15 //------------------------------------------------------------------------------ | 19 //------------------------------------------------------------------------------ |
| 16 //============================================================================== | 20 //============================================================================== |
| 17 // Author(s): ="Atheros" | 21 // Author(s): ="Atheros" |
| 18 //============================================================================== | 22 //============================================================================== |
| 19 | 23 |
| 20 #ifndef TESTCMD_H_ | 24 #ifndef TESTCMD_H_ |
| 21 #define TESTCMD_H_ | 25 #define TESTCMD_H_ |
| 22 | 26 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 }POSTPACK antswitchtable; | 150 }POSTPACK antswitchtable; |
| 147 } POSTPACK u; | 151 } POSTPACK u; |
| 148 } POSTPACK TCMD_CONT_RX; | 152 } POSTPACK TCMD_CONT_RX; |
| 149 | 153 |
| 150 /* Force sleep/wake test cmd | 154 /* Force sleep/wake test cmd |
| 151 mode: TCMD_PM_WAKEUP - Wakeup the target | 155 mode: TCMD_PM_WAKEUP - Wakeup the target |
| 152 TCMD_PM_SLEEP - Force the target to sleep. | 156 TCMD_PM_SLEEP - Force the target to sleep. |
| 153 */ | 157 */ |
| 154 typedef enum { | 158 typedef enum { |
| 155 TCMD_PM_WAKEUP = 1, /* be consistent with target */ | 159 TCMD_PM_WAKEUP = 1, /* be consistent with target */ |
| 156 TCMD_PM_SLEEP | 160 TCMD_PM_SLEEP, |
| 161 TCMD_PM_DEEPSLEEP |
| 157 } TCMD_PM_MODE; | 162 } TCMD_PM_MODE; |
| 158 | 163 |
| 159 typedef PREPACK struct { | 164 typedef PREPACK struct { |
| 160 A_UINT32 testCmdId; | 165 A_UINT32 testCmdId; |
| 161 A_UINT32 mode; | 166 A_UINT32 mode; |
| 162 } POSTPACK TCMD_PM; | 167 } POSTPACK TCMD_PM; |
| 163 | 168 |
| 164 typedef enum { | 169 typedef enum { |
| 165 TCMD_CONT_TX_ID, | 170 TCMD_CONT_TX_ID, |
| 166 TCMD_CONT_RX_ID, | 171 TCMD_CONT_RX_ID, |
| 167 TCMD_PM_ID | 172 TCMD_PM_ID |
| 168 } TCMD_ID; | 173 } TCMD_ID; |
| 169 | 174 |
| 170 typedef PREPACK union { | 175 typedef PREPACK union { |
| 171 TCMD_CONT_TX contTx; | 176 TCMD_CONT_TX contTx; |
| 172 TCMD_CONT_RX contRx; | 177 TCMD_CONT_RX contRx; |
| 173 TCMD_PM pm; | 178 TCMD_PM pm; |
| 174 } POSTPACK TEST_CMD; | 179 } POSTPACK TEST_CMD; |
| 175 | 180 |
| 176 #ifdef __cplusplus | 181 #ifdef __cplusplus |
| 177 } | 182 } |
| 178 #endif | 183 #endif |
| 179 | 184 |
| 180 #endif /* TESTCMD_H_ */ | 185 #endif /* TESTCMD_H_ */ |
| OLD | NEW |