linux/drivers/gpu/drm/xe/xe_guc_log.h

/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2022 Intel Corporation
 */

#ifndef _XE_GUC_LOG_H_
#define _XE_GUC_LOG_H_

#include "xe_guc_log_types.h"

struct drm_printer;

#if IS_ENABLED(CONFIG_DRM_XE_LARGE_GUC_BUFFER)
#define CRASH_BUFFER_SIZE
#define DEBUG_BUFFER_SIZE
#define CAPTURE_BUFFER_SIZE
#else
#define CRASH_BUFFER_SIZE
#define DEBUG_BUFFER_SIZE
#define CAPTURE_BUFFER_SIZE
#endif
/*
 * While we're using plain log level in i915, GuC controls are much more...
 * "elaborate"? We have a couple of bits for verbosity, separate bit for actual
 * log enabling, and separate bit for default logging - which "conveniently"
 * ignores the enable bit.
 */
#define GUC_LOG_LEVEL_DISABLED
#define GUC_LOG_LEVEL_NON_VERBOSE
#define GUC_LOG_LEVEL_IS_ENABLED(x)
#define GUC_LOG_LEVEL_IS_VERBOSE(x)
#define GUC_LOG_LEVEL_TO_VERBOSITY(x)
#define GUC_VERBOSITY_TO_LOG_LEVEL(x)
#define GUC_LOG_LEVEL_MAX

int xe_guc_log_init(struct xe_guc_log *log);
void xe_guc_log_print(struct xe_guc_log *log, struct drm_printer *p);

static inline u32
xe_guc_log_get_level(struct xe_guc_log *log)
{}

#endif