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