diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h index ab527d25..f3ca7498 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-2013, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2012-2014, 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, |
@@ -98,6 +98,14 @@ static inline u32 top_device_info_runlist_enum_v(u32 r) | |||
98 | { | 98 | { |
99 | return (r >> 21) & 0xf; | 99 | return (r >> 21) & 0xf; |
100 | } | 100 | } |
101 | static inline u32 top_device_info_intr_enum_v(u32 r) | ||
102 | { | ||
103 | return (r >> 15) & 0x1f; | ||
104 | } | ||
105 | static inline u32 top_device_info_reset_enum_v(u32 r) | ||
106 | { | ||
107 | return (r >> 9) & 0x1f; | ||
108 | } | ||
101 | static inline u32 top_device_info_type_enum_v(u32 r) | 109 | static inline u32 top_device_info_type_enum_v(u32 r) |
102 | { | 110 | { |
103 | return (r >> 2) & 0x1fffffff; | 111 | return (r >> 2) & 0x1fffffff; |