summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h b/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
index 214db398..6ffe1fd2 100644
--- a/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
@@ -1,8 +1,4 @@
1/* 1/*
2 * drivers/video/tegra/host/gk20a/semaphore_gk20a.h
3 *
4 * GK20A Semaphores
5 *
6 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
7 * 3 *
8 * 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
@@ -15,8 +11,8 @@
15 * more details. 11 * more details.
16 */ 12 */
17 13
18#ifndef _GK20A_SEMAPHORE_H_ 14#ifndef SEMAPHORE_GK20A_H
19#define _GK20A_SEMAPHORE_H_ 15#define SEMAPHORE_GK20A_H
20 16
21#include <linux/kref.h> 17#include <linux/kref.h>
22#include "gk20a_allocator.h" 18#include "gk20a_allocator.h"
@@ -35,6 +31,12 @@ struct gk20a_semaphore_pool {
35 struct gk20a_allocator alloc; 31 struct gk20a_allocator alloc;
36}; 32};
37 33
34enum gk20a_mem_rw_flag {
35 gk20a_mem_flag_none = 0,
36 gk20a_mem_flag_read_only = 1,
37 gk20a_mem_flag_write_only = 2,
38};
39
38/* A semaphore pool can be mapped to multiple GPU address spaces. */ 40/* A semaphore pool can be mapped to multiple GPU address spaces. */
39struct gk20a_semaphore_pool_map { 41struct gk20a_semaphore_pool_map {
40 u64 gpu_va; 42 u64 gpu_va;