ivpu_fw_log.h 793 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2020-2024 Intel Corporation
  4. */
  5. #ifndef __IVPU_FW_LOG_H__
  6. #define __IVPU_FW_LOG_H__
  7. #include <linux/types.h>
  8. #include "ivpu_drv.h"
  9. #define IVPU_FW_LOG_DEFAULT 0
  10. #define IVPU_FW_LOG_DEBUG 1
  11. #define IVPU_FW_LOG_INFO 2
  12. #define IVPU_FW_LOG_WARN 3
  13. #define IVPU_FW_LOG_ERROR 4
  14. #define IVPU_FW_LOG_FATAL 5
  15. #define IVPU_FW_VERBOSE_BUFFER_SMALL_SIZE SZ_1M
  16. #define IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE SZ_8M
  17. #define IVPU_FW_CRITICAL_BUFFER_SIZE SZ_512K
  18. extern unsigned int ivpu_fw_log_level;
  19. void ivpu_fw_log_print(struct ivpu_device *vdev, bool only_new_msgs, struct drm_printer *p);
  20. void ivpu_fw_log_mark_read(struct ivpu_device *vdev);
  21. void ivpu_fw_log_reset(struct ivpu_device *vdev);
  22. #endif /* __IVPU_FW_LOG_H__ */