ath6kl: remove-typedef HIF_DEVICE
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / ath6kl / include / dbglog_api.h
bloba53aed316e3b1fd70b44cf4a1550ee94657af922
1 //------------------------------------------------------------------------------
2 // <copyright file="dbglog_api.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.
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // This file contains host side debug primitives.
23 // Author(s): ="Atheros"
24 //==============================================================================
25 #ifndef _DBGLOG_API_H_
26 #define _DBGLOG_API_H_
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
32 #include "dbglog.h"
34 #define DBGLOG_HOST_LOG_BUFFER_SIZE DBGLOG_LOG_BUFFER_SIZE
36 #define DBGLOG_GET_DBGID(arg) \
37 ((arg & DBGLOG_DBGID_MASK) >> DBGLOG_DBGID_OFFSET)
39 #define DBGLOG_GET_MODULEID(arg) \
40 ((arg & DBGLOG_MODULEID_MASK) >> DBGLOG_MODULEID_OFFSET)
42 #define DBGLOG_GET_NUMARGS(arg) \
43 ((arg & DBGLOG_NUM_ARGS_MASK) >> DBGLOG_NUM_ARGS_OFFSET)
45 #define DBGLOG_GET_TIMESTAMP(arg) \
46 ((arg & DBGLOG_TIMESTAMP_MASK) >> DBGLOG_TIMESTAMP_OFFSET)
48 #ifdef __cplusplus
50 #endif
52 #endif /* _DBGLOG_API_H_ */