diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h index 7a458858..6528a1c3 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2017, 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, |
@@ -102,6 +102,22 @@ static inline u32 pri_ringmaster_intr_status0_r(void) | |||
102 | { | 102 | { |
103 | return 0x00120058; | 103 | return 0x00120058; |
104 | } | 104 | } |
105 | static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r) | ||
106 | { | ||
107 | return (r >> 0) & 0x1; | ||
108 | } | ||
109 | static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r) | ||
110 | { | ||
111 | return (r >> 1) & 0x1; | ||
112 | } | ||
113 | static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r) | ||
114 | { | ||
115 | return (r >> 2) & 0x1; | ||
116 | } | ||
117 | static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r) | ||
118 | { | ||
119 | return (r >> 8) & 0x1; | ||
120 | } | ||
105 | static inline u32 pri_ringmaster_intr_status1_r(void) | 121 | static inline u32 pri_ringmaster_intr_status1_r(void) |
106 | { | 122 | { |
107 | return 0x0012005c; | 123 | return 0x0012005c; |