summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-11-10 03:34:24 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:14 -0400
commitc0668f05ea1e2429444d6aad2a40dda81aba7ec8 (patch)
treee022679a8f6690d16d3c47ebd77021075ce914d3 /drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h
parent3a504842cd2696bd2feb496f4f4555ace82b4ab1 (diff)
gpu: nvgpu: Retrieve intr & reset id from HW
Query interrupt number and reset id from HW. Use the number from HW when enabling and detecting interrupts. Bug 200036089 Bug 1567274 Change-Id: If9cb4db79a19dcb193ba7ad9db7081f4fe1ab433 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/600988
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h
index a2405a04..42a82a12 100644
--- a/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/hw_top_gm20b.h
@@ -102,6 +102,14 @@ static inline u32 top_device_info_runlist_enum_v(u32 r)
102{ 102{
103 return (r >> 21) & 0xf; 103 return (r >> 21) & 0xf;
104} 104}
105static inline u32 top_device_info_intr_enum_v(u32 r)
106{
107 return (r >> 15) & 0x1f;
108}
109static inline u32 top_device_info_reset_enum_v(u32 r)
110{
111 return (r >> 9) & 0x1f;
112}
105static inline u32 top_device_info_type_enum_v(u32 r) 113static inline u32 top_device_info_type_enum_v(u32 r)
106{ 114{
107 return (r >> 2) & 0x1fffffff; 115 return (r >> 2) & 0x1fffffff;