diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index 3890249d..3e4372eb 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | |||
@@ -509,6 +509,12 @@ struct tegra_vgpu_constants_params { | |||
509 | u32 l2_en_mask[TEGRA_VGPU_L2_EN_MASK]; | 509 | u32 l2_en_mask[TEGRA_VGPU_L2_EN_MASK]; |
510 | }; | 510 | }; |
511 | 511 | ||
512 | enum { | ||
513 | TEGRA_VGPU_CYCLE_STATS_SNAPSHOT_CMD_FLUSH = 0, | ||
514 | TEGRA_VGPU_CYCLE_STATS_SNAPSHOT_CMD_ATTACH = 1, | ||
515 | TEGRA_VGPU_CYCLE_STATS_SNAPSHOT_CMD_DETACH = 2, | ||
516 | }; | ||
517 | |||
512 | struct tegra_vgpu_channel_cyclestats_snapshot_params { | 518 | struct tegra_vgpu_channel_cyclestats_snapshot_params { |
513 | u64 handle; | 519 | u64 handle; |
514 | u32 perfmon_start; | 520 | u32 perfmon_start; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h index ba2cfc56..cecdd516 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h | |||
@@ -31,5 +31,7 @@ struct tegra_hv_ivm_cookie *vgpu_ivm_mempool_reserve(unsigned int id); | |||
31 | int vgpu_ivm_mempool_unreserve(struct tegra_hv_ivm_cookie *cookie); | 31 | int vgpu_ivm_mempool_unreserve(struct tegra_hv_ivm_cookie *cookie); |
32 | u64 vgpu_ivm_get_ipa(struct tegra_hv_ivm_cookie *cookie); | 32 | u64 vgpu_ivm_get_ipa(struct tegra_hv_ivm_cookie *cookie); |
33 | u64 vgpu_ivm_get_size(struct tegra_hv_ivm_cookie *cookie); | 33 | u64 vgpu_ivm_get_size(struct tegra_hv_ivm_cookie *cookie); |
34 | 34 | void *vgpu_ivm_mempool_map(struct tegra_hv_ivm_cookie *cookie); | |
35 | void vgpu_ivm_mempool_unmap(struct tegra_hv_ivm_cookie *cookie, | ||
36 | void *addr); | ||
35 | #endif | 37 | #endif |