OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="bmi.h" company="Atheros"> |
| 3 // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved. |
| 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 // |
| 9 // Software distributed under the License is distributed on an "AS |
| 10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 11 // implied. See the License for the specific language governing |
| 12 // rights and limitations under the License. |
| 13 // |
| 14 // |
| 15 //------------------------------------------------------------------------------ |
| 16 //============================================================================== |
| 17 // BMI declarations and prototypes |
| 18 // |
| 19 // Author(s): ="Atheros" |
| 20 //============================================================================== |
| 21 #ifndef _BMI_H_ |
| 22 #define _BMI_H_ |
| 23 |
| 24 #ifdef __cplusplus |
| 25 extern "C" { |
| 26 #endif /* __cplusplus */ |
| 27 |
| 28 /* Header files */ |
| 29 #include "a_config.h" |
| 30 #include "athdefs.h" |
| 31 #include "a_types.h" |
| 32 #include "hif.h" |
| 33 #include "a_osapi.h" |
| 34 #include "bmi_msg.h" |
| 35 |
| 36 void |
| 37 BMIInit(void); |
| 38 |
| 39 A_STATUS |
| 40 BMIDone(HIF_DEVICE *device); |
| 41 |
| 42 A_STATUS |
| 43 BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info); |
| 44 |
| 45 A_STATUS |
| 46 BMIReadMemory(HIF_DEVICE *device, |
| 47 A_UINT32 address, |
| 48 A_UCHAR *buffer, |
| 49 A_UINT32 length); |
| 50 |
| 51 A_STATUS |
| 52 BMIWriteMemory(HIF_DEVICE *device, |
| 53 A_UINT32 address, |
| 54 A_UCHAR *buffer, |
| 55 A_UINT32 length); |
| 56 |
| 57 A_STATUS |
| 58 BMIExecute(HIF_DEVICE *device, |
| 59 A_UINT32 address, |
| 60 A_UINT32 *param); |
| 61 |
| 62 A_STATUS |
| 63 BMISetAppStart(HIF_DEVICE *device, |
| 64 A_UINT32 address); |
| 65 |
| 66 A_STATUS |
| 67 BMIReadSOCRegister(HIF_DEVICE *device, |
| 68 A_UINT32 address, |
| 69 A_UINT32 *param); |
| 70 |
| 71 A_STATUS |
| 72 BMIWriteSOCRegister(HIF_DEVICE *device, |
| 73 A_UINT32 address, |
| 74 A_UINT32 param); |
| 75 |
| 76 A_STATUS |
| 77 BMIrompatchInstall(HIF_DEVICE *device, |
| 78 A_UINT32 ROM_addr, |
| 79 A_UINT32 RAM_addr, |
| 80 A_UINT32 nbytes, |
| 81 A_UINT32 do_activate, |
| 82 A_UINT32 *patch_id); |
| 83 |
| 84 A_STATUS |
| 85 BMIrompatchUninstall(HIF_DEVICE *device, |
| 86 A_UINT32 rompatch_id); |
| 87 |
| 88 A_STATUS |
| 89 BMIrompatchActivate(HIF_DEVICE *device, |
| 90 A_UINT32 rompatch_count, |
| 91 A_UINT32 *rompatch_list); |
| 92 |
| 93 A_STATUS |
| 94 BMIrompatchDeactivate(HIF_DEVICE *device, |
| 95 A_UINT32 rompatch_count, |
| 96 A_UINT32 *rompatch_list); |
| 97 |
| 98 A_STATUS |
| 99 BMILZStreamStart(HIF_DEVICE *device, |
| 100 A_UINT32 address); |
| 101 |
| 102 A_STATUS |
| 103 BMILZData(HIF_DEVICE *device, |
| 104 A_UCHAR *buffer, |
| 105 A_UINT32 length); |
| 106 |
| 107 A_STATUS |
| 108 BMIFastDownload(HIF_DEVICE *device, |
| 109 A_UINT32 address, |
| 110 A_UCHAR *buffer, |
| 111 A_UINT32 length); |
| 112 |
| 113 A_STATUS |
| 114 BMIRawWrite(HIF_DEVICE *device, |
| 115 A_UCHAR *buffer, |
| 116 A_UINT32 length); |
| 117 |
| 118 A_STATUS |
| 119 BMIRawRead(HIF_DEVICE *device, |
| 120 A_UCHAR *buffer, |
| 121 A_UINT32 length, |
| 122 A_BOOL want_timeout); |
| 123 |
| 124 #ifdef __cplusplus |
| 125 } |
| 126 #endif |
| 127 |
| 128 #endif /* _BMI_H_ */ |
OLD | NEW |