linux/drivers/accel/ivpu/ivpu_fw_log.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2020-2023 Intel Corporation
 */

#ifndef __IVPU_FW_LOG_H__
#define __IVPU_FW_LOG_H__

#include <linux/types.h>

#include <drm/drm_print.h>

#include "ivpu_drv.h"

#define IVPU_FW_LOG_DEFAULT
#define IVPU_FW_LOG_DEBUG
#define IVPU_FW_LOG_INFO
#define IVPU_FW_LOG_WARN
#define IVPU_FW_LOG_ERROR
#define IVPU_FW_LOG_FATAL

extern unsigned int ivpu_log_level;

#define IVPU_FW_VERBOSE_BUFFER_SMALL_SIZE
#define IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE
#define IVPU_FW_CRITICAL_BUFFER_SIZE

void ivpu_fw_log_print(struct ivpu_device *vdev, bool only_new_msgs, struct drm_printer *p);
void ivpu_fw_log_clear(struct ivpu_device *vdev);

static inline void ivpu_fw_log_dump(struct ivpu_device *vdev)
{}

#endif /* __IVPU_FW_LOG_H__ */