1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2023 Intel Corporation
6 #ifndef __INTEL_HUC_PRINT__
7 #define __INTEL_HUC_PRINT__
9 #include "gt/intel_gt.h"
10 #include "gt/intel_gt_print.h"
12 #define huc_printk(_huc, _level, _fmt, ...) \
13 gt_##_level(huc_to_gt(_huc), "HuC: " _fmt, ##__VA_ARGS__)
14 #define huc_err(_huc, _fmt, ...) huc_printk((_huc), err, _fmt, ##__VA_ARGS__)
15 #define huc_warn(_huc, _fmt, ...) huc_printk((_huc), warn, _fmt, ##__VA_ARGS__)
16 #define huc_notice(_huc, _fmt, ...) huc_printk((_huc), notice, _fmt, ##__VA_ARGS__)
17 #define huc_info(_huc, _fmt, ...) huc_printk((_huc), info, _fmt, ##__VA_ARGS__)
18 #define huc_dbg(_huc, _fmt, ...) huc_printk((_huc), dbg, _fmt, ##__VA_ARGS__)
19 #define huc_probe_error(_huc, _fmt, ...) huc_printk((_huc), probe_error, _fmt, ##__VA_ARGS__)
21 #endif /* __INTEL_HUC_PRINT__ */