| OLD | NEW |
| 1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="bmi.h" company="Atheros"> | 2 // <copyright file="bmi.h" company="Atheros"> |
| 3 // Copyright (c) 2004-2008 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 // BMI declarations and prototypes | 21 // BMI declarations and prototypes |
| 18 // | 22 // |
| 19 // Author(s): ="Atheros" | 23 // Author(s): ="Atheros" |
| 20 //============================================================================== | 24 //============================================================================== |
| 21 #ifndef _BMI_H_ | 25 #ifndef _BMI_H_ |
| 22 #define _BMI_H_ | 26 #define _BMI_H_ |
| 23 | 27 |
| 24 #ifdef __cplusplus | 28 #ifdef __cplusplus |
| 25 extern "C" { | 29 extern "C" { |
| 26 #endif /* __cplusplus */ | 30 #endif /* __cplusplus */ |
| 27 | 31 |
| 28 /* Header files */ | 32 /* Header files */ |
| 29 #include "a_config.h" | 33 #include "a_config.h" |
| 30 #include "athdefs.h" | 34 #include "athdefs.h" |
| 31 #include "a_types.h" | 35 #include "a_types.h" |
| 32 #include "hif.h" | 36 #include "hif.h" |
| 33 #include "a_osapi.h" | 37 #include "a_osapi.h" |
| 34 #include "bmi_msg.h" | 38 #include "bmi_msg.h" |
| 35 | 39 |
| 36 void | 40 void |
| 37 BMIInit(void); | 41 BMIInit(void); |
| 38 | 42 |
| 43 void |
| 44 BMICleanup(void); |
| 45 |
| 39 A_STATUS | 46 A_STATUS |
| 40 BMIDone(HIF_DEVICE *device); | 47 BMIDone(HIF_DEVICE *device); |
| 41 | 48 |
| 42 A_STATUS | 49 A_STATUS |
| 43 BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info); | 50 BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info); |
| 44 | 51 |
| 45 A_STATUS | 52 A_STATUS |
| 46 BMIReadMemory(HIF_DEVICE *device, | 53 BMIReadMemory(HIF_DEVICE *device, |
| 47 A_UINT32 address, | 54 A_UINT32 address, |
| 48 A_UCHAR *buffer, | 55 A_UCHAR *buffer, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 BMIRawRead(HIF_DEVICE *device, | 126 BMIRawRead(HIF_DEVICE *device, |
| 120 A_UCHAR *buffer, | 127 A_UCHAR *buffer, |
| 121 A_UINT32 length, | 128 A_UINT32 length, |
| 122 A_BOOL want_timeout); | 129 A_BOOL want_timeout); |
| 123 | 130 |
| 124 #ifdef __cplusplus | 131 #ifdef __cplusplus |
| 125 } | 132 } |
| 126 #endif | 133 #endif |
| 127 | 134 |
| 128 #endif /* _BMI_H_ */ | 135 #endif /* _BMI_H_ */ |
| OLD | NEW |