xref: /openbsd-src/sys/dev/pci/drm/i915/gt/uc/intel_huc_debugfs.c (revision 1bb76ff151c0aba8e3312a604e4cd2e5195cf4b7)
1 // SPDX-License-Identifier: MIT
2 /*
3  * Copyright © 2020 Intel Corporation
4  */
5 
6 #include <drm/drm_print.h>
7 
8 #include "gt/intel_gt_debugfs.h"
9 #include "intel_huc.h"
10 #include "intel_huc_debugfs.h"
11 
12 #ifdef notyet
13 
huc_info_show(struct seq_file * m,void * data)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_INTEL_GT_DEBUGFS_ATTRIBUTE(huc_info);
27 
28 #endif
29 
intel_huc_debugfs_register(struct intel_huc * huc,struct dentry * root)30 void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root)
31 {
32 	STUB();
33 #ifdef notyet
34 	static const struct intel_gt_debugfs_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