brintos

brintos / linux-shallow public Read only

0
0
Text · 925 B · 0b2573f Raw
39 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * Copyright (C) 2020-2023 Intel Corporation4 */5 6#ifndef __IVPU_FW_LOG_H__7#define __IVPU_FW_LOG_H__8 9#include <linux/types.h>10 11#include <drm/drm_print.h>12 13#include "ivpu_drv.h"14 15#define IVPU_FW_LOG_DEFAULT 016#define IVPU_FW_LOG_DEBUG   117#define IVPU_FW_LOG_INFO    218#define IVPU_FW_LOG_WARN    319#define IVPU_FW_LOG_ERROR   420#define IVPU_FW_LOG_FATAL   521 22extern unsigned int ivpu_log_level;23 24#define IVPU_FW_VERBOSE_BUFFER_SMALL_SIZE	SZ_1M25#define IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE	SZ_8M26#define IVPU_FW_CRITICAL_BUFFER_SIZE		SZ_512K27 28void ivpu_fw_log_print(struct ivpu_device *vdev, bool only_new_msgs, struct drm_printer *p);29void ivpu_fw_log_clear(struct ivpu_device *vdev);30 31static inline void ivpu_fw_log_dump(struct ivpu_device *vdev)32{33	struct drm_printer p = drm_info_printer(vdev->drm.dev);34 35	ivpu_fw_log_print(vdev, false, &p);36}37 38#endif /* __IVPU_FW_LOG_H__ */39