brintos

brintos / linux-shallow public Read only

0
0
Text · 634 B · 24a4209 Raw
31 lines · c
1// SPDX-License-Identifier: MIT2/*3 * Copyright © 2022 Intel Corporation4 */5 6#include <linux/debugfs.h>7 8#include <drm/drm_debugfs.h>9 10#include "xe_gt.h"11#include "xe_gsc_debugfs.h"12#include "xe_guc_debugfs.h"13#include "xe_huc_debugfs.h"14#include "xe_macros.h"15#include "xe_uc_debugfs.h"16 17void xe_uc_debugfs_register(struct xe_uc *uc, struct dentry *parent)18{19	struct dentry *root;20 21	root = debugfs_create_dir("uc", parent);22	if (IS_ERR(root)) {23		XE_WARN_ON("Create UC directory failed");24		return;25	}26 27	xe_gsc_debugfs_register(&uc->gsc, root);28	xe_guc_debugfs_register(&uc->guc, root);29	xe_huc_debugfs_register(&uc->huc, root);30}31