| OLD | NEW |
| 1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="bmi_internal.h" company="Atheros"> | 2 // Copyright (c) 2004-2010 Atheros Communications Inc. |
| 3 // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved. | 3 // 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 // | 21 // |
| 18 // Author(s): ="Atheros" | 22 // Author(s): ="Atheros" |
| 19 //============================================================================== | 23 //============================================================================== |
| 20 #ifndef BMI_INTERNAL_H | 24 #ifndef BMI_INTERNAL_H |
| 21 #define BMI_INTERNAL_H | 25 #define BMI_INTERNAL_H |
| 22 | 26 |
| 23 #include "a_config.h" | 27 #include "a_config.h" |
| 24 #include "athdefs.h" | 28 #include "athdefs.h" |
| 25 #include "a_types.h" | 29 #include "a_types.h" |
| 26 #include "a_osapi.h" | 30 #include "a_osapi.h" |
| 27 #define ATH_MODULE_NAME bmi | 31 #define ATH_MODULE_NAME bmi |
| 28 #include "a_debug.h" | 32 #include "a_debug.h" |
| 29 #include "AR6002/hw2.0/hw/mbox_host_reg.h" | 33 #include "AR6002/hw2.0/hw/mbox_host_reg.h" |
| 30 #include "bmi_msg.h" | 34 #include "bmi_msg.h" |
| 31 | 35 |
| 32 #define ATH_DEBUG_BMI ATH_DEBUG_MAKE_MODULE_MASK(0) | 36 #define ATH_DEBUG_BMI ATH_DEBUG_MAKE_MODULE_MASK(0) |
| 33 | 37 |
| 34 | 38 |
| 35 #define BMI_COMMUNICATION_TIMEOUT 100000 | 39 #define BMI_COMMUNICATION_TIMEOUT 100000 |
| 36 | 40 |
| 37 /* ------ Global Variable Declarations ------- */ | 41 /* ------ Global Variable Declarations ------- */ |
| 38 A_BOOL bmiDone; | 42 static A_BOOL bmiDone; |
| 39 | 43 |
| 40 A_STATUS | 44 A_STATUS |
| 41 bmiBufferSend(HIF_DEVICE *device, | 45 bmiBufferSend(HIF_DEVICE *device, |
| 42 A_UCHAR *buffer, | 46 A_UCHAR *buffer, |
| 43 A_UINT32 length); | 47 A_UINT32 length); |
| 44 | 48 |
| 45 A_STATUS | 49 A_STATUS |
| 46 bmiBufferReceive(HIF_DEVICE *device, | 50 bmiBufferReceive(HIF_DEVICE *device, |
| 47 A_UCHAR *buffer, | 51 A_UCHAR *buffer, |
| 48 A_UINT32 length, | 52 A_UINT32 length, |
| 49 A_BOOL want_timeout); | 53 A_BOOL want_timeout); |
| 50 | 54 |
| 51 #endif | 55 #endif |
| OLD | NEW |