Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
[pandora-kernel.git] / drivers / staging / ath6kl / include / ar6000_diag.h
1 //------------------------------------------------------------------------------
2 // <copyright file="ar6000_diag.h" company="Atheros">
3 //    Copyright (c) 2004-2010 Atheros Corporation.  All rights reserved.
4 // 
5 //
6 // Permission to use, copy, modify, and/or distribute this software for any
7 // purpose with or without fee is hereby granted, provided that the above
8 // copyright notice and this permission notice appear in all copies.
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.
17 //
18 //
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // Author(s): ="Atheros"
22 //==============================================================================
23
24 #ifndef AR6000_DIAG_H_
25 #define AR6000_DIAG_H_
26
27
28 A_STATUS
29 ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, A_UINT32 *address, A_UINT32 *data);
30
31 A_STATUS
32 ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, A_UINT32 *address, A_UINT32 *data);
33
34 A_STATUS
35 ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, A_UINT32 address,
36                     A_UCHAR *data, A_UINT32 length);
37
38 A_STATUS
39 ar6000_WriteDataDiag(HIF_DEVICE *hifDevice, A_UINT32 address,
40                      A_UCHAR *data, A_UINT32 length);
41
42 A_STATUS
43 ar6k_ReadTargetRegister(HIF_DEVICE *hifDevice, int regsel, A_UINT32 *regval);
44
45 void
46 ar6k_FetchTargetRegs(HIF_DEVICE *hifDevice, A_UINT32 *targregs);
47
48 #endif /*AR6000_DIAG_H_*/