dbglog_api.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #include "dbglog.h"
  27. #define DBGLOG_HOST_LOG_BUFFER_SIZE DBGLOG_LOG_BUFFER_SIZE
  28. #define DBGLOG_GET_DBGID(arg) \
  29. ((arg & DBGLOG_DBGID_MASK) >> DBGLOG_DBGID_OFFSET)
  30. #define DBGLOG_GET_MODULEID(arg) \
  31. ((arg & DBGLOG_MODULEID_MASK) >> DBGLOG_MODULEID_OFFSET)
  32. #define DBGLOG_GET_NUMARGS(arg) \
  33. ((arg & DBGLOG_NUM_ARGS_MASK) >> DBGLOG_NUM_ARGS_OFFSET)
  34. #define DBGLOG_GET_TIMESTAMP(arg) \
  35. ((arg & DBGLOG_TIMESTAMP_MASK) >> DBGLOG_TIMESTAMP_OFFSET)
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif /* _DBGLOG_API_H_ */