diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2024-09-25 16:09:09 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2024-09-25 16:09:09 -0400 |
commit | f347fde22f1297e4f022600d201780d5ead78114 (patch) | |
tree | 76be305d6187003a1e0486ff6e91efb1062ae118 /include/os/linux/debug_cde.c | |
parent | 8340d234d78a7d0f46c11a584de538148b78b7cb (diff) |
Delete no-longer-needed nvgpu headersHEADmasterjbakita-wip
The dependency on these was removed in commit 8340d234.
Diffstat (limited to 'include/os/linux/debug_cde.c')
-rw-r--r-- | include/os/linux/debug_cde.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/include/os/linux/debug_cde.c b/include/os/linux/debug_cde.c deleted file mode 100644 index f0afa6e..0000000 --- a/include/os/linux/debug_cde.c +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2017 NVIDIA Corporation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #include "debug_cde.h" | ||
16 | #include "platform_gk20a.h" | ||
17 | #include "os_linux.h" | ||
18 | |||
19 | #include <linux/debugfs.h> | ||
20 | |||
21 | |||
22 | static ssize_t gk20a_cde_reload_write(struct file *file, | ||
23 | const char __user *userbuf, size_t count, loff_t *ppos) | ||
24 | { | ||
25 | struct nvgpu_os_linux *l = file->private_data; | ||
26 | gk20a_cde_reload(l); | ||
27 | return count; | ||
28 | } | ||
29 | |||
30 | static const struct file_operations gk20a_cde_reload_fops = { | ||
31 | .open = simple_open, | ||
32 | .write = gk20a_cde_reload_write, | ||
33 | }; | ||
34 | |||
35 | void gk20a_cde_debugfs_init(struct gk20a *g) | ||
36 | { | ||
37 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | ||
38 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | ||
39 | |||
40 | if (!platform->has_cde) | ||
41 | return; | ||
42 | |||
43 | debugfs_create_u32("cde_parameter", S_IWUSR | S_IRUGO, | ||
44 | l->debugfs, &l->cde_app.shader_parameter); | ||
45 | debugfs_create_u32("cde_ctx_count", S_IWUSR | S_IRUGO, | ||
46 | l->debugfs, &l->cde_app.ctx_count); | ||
47 | debugfs_create_u32("cde_ctx_usecount", S_IWUSR | S_IRUGO, | ||
48 | l->debugfs, &l->cde_app.ctx_usecount); | ||
49 | debugfs_create_u32("cde_ctx_count_top", S_IWUSR | S_IRUGO, | ||
50 | l->debugfs, &l->cde_app.ctx_count_top); | ||
51 | debugfs_create_file("reload_cde_firmware", S_IWUSR, l->debugfs, | ||
52 | l, &gk20a_cde_reload_fops); | ||
53 | } | ||