diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h new file mode 100644 index 00000000..c57d95d1 --- /dev/null +++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016, 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 | |||
14 | #ifndef __CTXSW_TRACE_GK20A_H | ||
15 | #define __CTXSW_TRACE_GK20A_H | ||
16 | |||
17 | #define GK20A_CTXSW_TRACE_NUM_DEVS 1 | ||
18 | |||
19 | struct gk20a; | ||
20 | struct nvgpu_ctxsw_trace_entry; | ||
21 | struct channel_gk20a; | ||
22 | struct channel_ctx_gk20a; | ||
23 | struct gk20a_ctxsw_dev; | ||
24 | struct gk20a_fecs_trace; | ||
25 | |||
26 | |||
27 | int gk20a_ctxsw_dev_release(struct inode *inode, struct file *filp); | ||
28 | int gk20a_ctxsw_dev_open(struct inode *inode, struct file *filp); | ||
29 | long gk20a_ctxsw_dev_ioctl(struct file *filp, | ||
30 | unsigned int cmd, unsigned long arg); | ||
31 | ssize_t gk20a_ctxsw_dev_read(struct file *, char __user *, size_t, loff_t *); | ||
32 | unsigned int gk20a_ctxsw_dev_poll(struct file *, struct poll_table_struct *); | ||
33 | int gk20a_ctxsw_dev_mmap(struct file *, struct vm_area_struct *); | ||
34 | |||
35 | int gk20a_ctxsw_trace_init(struct gk20a *); | ||
36 | int gk20a_ctxsw_trace_setup(struct gk20a *, void *ctx_ptr); | ||
37 | void gk20a_ctxsw_trace_cleanup(struct gk20a *); | ||
38 | int gk20a_ctxsw_trace_write(struct gk20a *, struct nvgpu_ctxsw_trace_entry *); | ||
39 | void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid); | ||
40 | |||
41 | #endif /* __CTXSW_TRACE_GK20A_H */ | ||