OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="dbglog_api.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 // This file contains host side debug primitives. |
| 18 // |
| 19 // Author(s): ="Atheros" |
| 20 //============================================================================== |
| 21 #ifndef _DBGLOG_API_H_ |
| 22 #define _DBGLOG_API_H_ |
| 23 |
| 24 #ifdef __cplusplus |
| 25 extern "C" { |
| 26 #endif |
| 27 |
| 28 #include "dbglog.h" |
| 29 |
| 30 #define DBGLOG_HOST_LOG_BUFFER_SIZE DBGLOG_LOG_BUFFER_SIZE |
| 31 |
| 32 #define DBGLOG_GET_DBGID(arg) \ |
| 33 ((arg & DBGLOG_DBGID_MASK) >> DBGLOG_DBGID_OFFSET) |
| 34 |
| 35 #define DBGLOG_GET_MODULEID(arg) \ |
| 36 ((arg & DBGLOG_MODULEID_MASK) >> DBGLOG_MODULEID_OFFSET) |
| 37 |
| 38 #define DBGLOG_GET_NUMARGS(arg) \ |
| 39 ((arg & DBGLOG_NUM_ARGS_MASK) >> DBGLOG_NUM_ARGS_OFFSET) |
| 40 |
| 41 #define DBGLOG_GET_TIMESTAMP(arg) \ |
| 42 ((arg & DBGLOG_TIMESTAMP_MASK) >> DBGLOG_TIMESTAMP_OFFSET) |
| 43 |
| 44 #ifdef __cplusplus |
| 45 } |
| 46 #endif |
| 47 |
| 48 #endif /* _DBGLOG_API_H_ */ |
OLD | NEW |