xref: /openbsd-src/sys/dev/pci/drm/i915/gt/uc/intel_huc_debugfs.c (revision 4e1ee0786f11cc571bd0be17d38e46f635c719fc)
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_huc.h"
10 #include "intel_huc_debugfs.h"
11 
12 #ifdef notyet
13 
14 static int huc_info_show(struct seq_file *m, void *data)
15 {
16 	struct intel_huc *huc = m->private;
17 	struct drm_printer p = drm_seq_file_printer(m);
18 
19 	if (!intel_huc_is_supported(huc))
20 		return -ENODEV;
21 
22 	intel_huc_load_status(huc, &p);
23 
24 	return 0;
25 }
26 DEFINE_GT_DEBUGFS_ATTRIBUTE(huc_info);
27 
28 #endif
29 
30 void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root)
31 {
32 	STUB();
33 #ifdef notyet
34 	static const struct debugfs_gt_file files[] = {
35 		{ "huc_info", &huc_info_fops, NULL },
36 	};
37 
38 	if (!intel_huc_is_supported(huc))
39 		return;
40 
41 	intel_gt_debugfs_register_files(root, files, ARRAY_SIZE(files), huc);
42 #endif
43 }
44