1 // SPDX-License-Identifier: MIT
2 /*
3  * Copyright © 2020 Intel Corporation
4  */
5 
6 #include <drm/drm_print.h>
7 
8 #include "gt/debugfs_gt.h"
9 #include "intel_guc.h"
10 #include "intel_guc_debugfs.h"
11 #include "intel_guc_log_debugfs.h"
12 
13 #ifdef notyet
14 
15 static int guc_info_show(struct seq_file *m, void *data)
16 {
17 	struct intel_guc *guc = m->private;
18 	struct drm_printer p = drm_seq_file_printer(m);
19 
20 	if (!intel_guc_is_supported(guc))
21 		return -ENODEV;
22 
23 	intel_guc_load_status(guc, &p);
24 	drm_puts(&p, "\n");
25 	intel_guc_log_info(&guc->log, &p);
26 
27 	/* Add more as required ... */
28 
29 	return 0;
30 }
31 DEFINE_GT_DEBUGFS_ATTRIBUTE(guc_info);
32 
33 #endif
34 
35 void intel_guc_debugfs_register(struct intel_guc *guc, struct dentry *root)
36 {
37 	STUB();
38 #ifdef notyet
39 	static const struct debugfs_gt_file files[] = {
40 		{ "guc_info", &guc_info_fops, NULL },
41 	};
42 
43 	if (!intel_guc_is_supported(guc))
44 		return;
45 
46 	intel_gt_debugfs_register_files(root, files, ARRAY_SIZE(files), guc);
47 	intel_guc_log_debugfs_register(&guc->log, root);
48 #endif
49 }
50