diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_channel.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_channel.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.h b/drivers/gpu/nvgpu/common/linux/ioctl_channel.h index 235d84ef..3ea8d765 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.h +++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.h | |||
@@ -15,11 +15,20 @@ | |||
15 | 15 | ||
16 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
17 | 17 | ||
18 | #include "gk20a/css_gr_gk20a.h" | ||
19 | |||
18 | struct inode; | 20 | struct inode; |
19 | struct file; | 21 | struct file; |
20 | struct gk20a; | 22 | struct gk20a; |
21 | struct nvgpu_channel_open_args; | 23 | struct nvgpu_channel_open_args; |
22 | 24 | ||
25 | struct gk20a_cs_snapshot_client_linux { | ||
26 | struct gk20a_cs_snapshot_client cs_client; | ||
27 | |||
28 | u32 dmabuf_fd; | ||
29 | struct dma_buf *dma_handler; | ||
30 | }; | ||
31 | |||
23 | int gk20a_channel_open(struct inode *inode, struct file *filp); | 32 | int gk20a_channel_open(struct inode *inode, struct file *filp); |
24 | int gk20a_channel_release(struct inode *inode, struct file *filp); | 33 | int gk20a_channel_release(struct inode *inode, struct file *filp); |
25 | long gk20a_channel_ioctl(struct file *filp, | 34 | long gk20a_channel_ioctl(struct file *filp, |
@@ -27,6 +36,8 @@ long gk20a_channel_ioctl(struct file *filp, | |||
27 | int gk20a_channel_open_ioctl(struct gk20a *g, | 36 | int gk20a_channel_open_ioctl(struct gk20a *g, |
28 | struct nvgpu_channel_open_args *args); | 37 | struct nvgpu_channel_open_args *args); |
29 | 38 | ||
39 | int gk20a_channel_free_cycle_stats_snapshot(struct channel_gk20a *ch); | ||
40 | |||
30 | extern const struct file_operations gk20a_event_id_ops; | 41 | extern const struct file_operations gk20a_event_id_ops; |
31 | extern const struct file_operations gk20a_channel_ops; | 42 | extern const struct file_operations gk20a_channel_ops; |
32 | 43 | ||