diff options
Diffstat (limited to 'include/os/linux/sched.h')
-rw-r--r-- | include/os/linux/sched.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/os/linux/sched.h b/include/os/linux/sched.h new file mode 100644 index 0000000..e88f37f --- /dev/null +++ b/include/os/linux/sched.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #ifndef __NVGPU_SCHED_H | ||
17 | #define __NVGPU_SCHED_H | ||
18 | |||
19 | struct gk20a; | ||
20 | struct gpu_ops; | ||
21 | struct tsg_gk20a; | ||
22 | struct poll_table_struct; | ||
23 | |||
24 | int gk20a_sched_dev_release(struct inode *inode, struct file *filp); | ||
25 | int gk20a_sched_dev_open(struct inode *inode, struct file *filp); | ||
26 | long gk20a_sched_dev_ioctl(struct file *, unsigned int, unsigned long); | ||
27 | ssize_t gk20a_sched_dev_read(struct file *, char __user *, size_t, loff_t *); | ||
28 | unsigned int gk20a_sched_dev_poll(struct file *, struct poll_table_struct *); | ||
29 | |||
30 | void gk20a_sched_ctrl_tsg_added(struct gk20a *, struct tsg_gk20a *); | ||
31 | void gk20a_sched_ctrl_tsg_removed(struct gk20a *, struct tsg_gk20a *); | ||
32 | int gk20a_sched_ctrl_init(struct gk20a *); | ||
33 | |||
34 | void gk20a_sched_ctrl_cleanup(struct gk20a *g); | ||
35 | |||
36 | #endif /* __NVGPU_SCHED_H */ | ||