diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h index f3ca7498..35d9d347 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2012-2015, 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, |
@@ -138,4 +138,28 @@ static inline u32 top_device_info_entry_enum_v(void) | |||
138 | { | 138 | { |
139 | return 0x00000002; | 139 | return 0x00000002; |
140 | } | 140 | } |
141 | static inline u32 top_fs_status_fbp_r(void) | ||
142 | { | ||
143 | return 0x00022548; | ||
144 | } | ||
145 | static inline u32 top_fs_status_fbp_cluster_v(u32 r) | ||
146 | { | ||
147 | return (r >> 0) & 0xffff; | ||
148 | } | ||
149 | static inline u32 top_fs_status_fbp_cluster_enable_v(void) | ||
150 | { | ||
151 | return 0x00000000; | ||
152 | } | ||
153 | static inline u32 top_fs_status_fbp_cluster_enable_f(void) | ||
154 | { | ||
155 | return 0x0; | ||
156 | } | ||
157 | static inline u32 top_fs_status_fbp_cluster_disable_v(void) | ||
158 | { | ||
159 | return 0x00000001; | ||
160 | } | ||
161 | static inline u32 top_fs_status_fbp_cluster_disable_f(void) | ||
162 | { | ||
163 | return 0x1; | ||
164 | } | ||
141 | #endif | 165 | #endif |