We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_gt.[ch] to intel_gt_debugfs.[ch] and then make functions, defines and structs follow suit. While at it and since we are renaming the header, sort the includes alphabetically. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210918025754.1254705-1-lucas.demarchi@intel.com
36 lines
785 B
C
36 lines
785 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#include <drm/drm_print.h>
|
|
|
|
#include "gt/intel_gt_debugfs.h"
|
|
#include "intel_huc.h"
|
|
#include "intel_huc_debugfs.h"
|
|
|
|
static int huc_info_show(struct seq_file *m, void *data)
|
|
{
|
|
struct intel_huc *huc = m->private;
|
|
struct drm_printer p = drm_seq_file_printer(m);
|
|
|
|
if (!intel_huc_is_supported(huc))
|
|
return -ENODEV;
|
|
|
|
intel_huc_load_status(huc, &p);
|
|
|
|
return 0;
|
|
}
|
|
DEFINE_INTEL_GT_DEBUGFS_ATTRIBUTE(huc_info);
|
|
|
|
void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root)
|
|
{
|
|
static const struct intel_gt_debugfs_file files[] = {
|
|
{ "huc_info", &huc_info_fops, NULL },
|
|
};
|
|
|
|
if (!intel_huc_is_supported(huc))
|
|
return;
|
|
|
|
intel_gt_debugfs_register_files(root, files, ARRAY_SIZE(files), huc);
|
|
}
|