diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/ioctl_channel.h')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_channel.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_channel.h b/drivers/gpu/nvgpu/os/linux/ioctl_channel.h index 48cff1ea..3e802899 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_channel.h +++ b/drivers/gpu/nvgpu/os/linux/ioctl_channel.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 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, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -36,9 +36,16 @@ long gk20a_channel_ioctl(struct file *filp, | |||
36 | int gk20a_channel_open_ioctl(struct gk20a *g, | 36 | int gk20a_channel_open_ioctl(struct gk20a *g, |
37 | struct nvgpu_channel_open_args *args); | 37 | struct nvgpu_channel_open_args *args); |
38 | 38 | ||
39 | int gk20a_channel_free_cycle_stats_snapshot(struct channel_gk20a *ch); | 39 | int gk20a_channel_cycle_stats(struct channel_gk20a *ch, int dmabuf_fd); |
40 | void gk20a_channel_free_cycle_stats_buffer(struct channel_gk20a *ch); | 40 | void gk20a_channel_free_cycle_stats_buffer(struct channel_gk20a *ch); |
41 | 41 | ||
42 | int gk20a_attach_cycle_stats_snapshot(struct channel_gk20a *ch, | ||
43 | u32 dmabuf_fd, | ||
44 | u32 perfmon_id_count, | ||
45 | u32 *perfmon_id_start); | ||
46 | int gk20a_flush_cycle_stats_snapshot(struct channel_gk20a *ch); | ||
47 | int gk20a_channel_free_cycle_stats_snapshot(struct channel_gk20a *ch); | ||
48 | |||
42 | extern const struct file_operations gk20a_channel_ops; | 49 | extern const struct file_operations gk20a_channel_ops; |
43 | 50 | ||
44 | u32 nvgpu_get_common_runlist_level(u32 level); | 51 | u32 nvgpu_get_common_runlist_level(u32 level); |