debug.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: LGPL-2.1 OR BSD-3-Clause */
  2. //--=========================================================================--
  3. // This file is a part of VPU Reference API project
  4. //-----------------------------------------------------------------------------
  5. //
  6. // This confidential and proprietary software may be used only
  7. // as authorized by a licensing agreement from Chips&Media Inc.
  8. // In the event of publication, the following notice is applicable:
  9. //
  10. // (C) COPYRIGHT CHIPS&MEDIA INC.
  11. // ALL RIGHTS RESERVED
  12. //
  13. // The entire notice above must be reproduced on all authorized
  14. // copies.
  15. //
  16. //--=========================================================================--
  17. #ifndef _DEBUG_H_
  18. #define _DEBUG_H_
  19. #include "config.h"
  20. #include "../main_helper.h"
  21. enum {
  22. CNMQC_ENV_NONE,
  23. CNMQC_ENV_GDBSERVER = (1<<16), /*!<< It executes gdb server in order to debug F/W on the C&M FPGA env. */
  24. CNMQC_ENV_MAX,
  25. };
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif /* __cplusplus */
  29. /* @param options It can be multiples of the above options.
  30. */
  31. extern void InitializeDebugEnv(
  32. Uint32 productId,
  33. Uint32 options
  34. );
  35. extern void ReleaseDebugEnv(
  36. void
  37. );
  38. void PrintVpuStatus(
  39. Uint32 coreIdx,
  40. Uint32 productId
  41. );
  42. #ifdef __cplusplus
  43. }
  44. #endif /* __cplusplus */
  45. #endif /* _SKIP_H_ */