diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_bus_gp10b.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_bus_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_bus_gp10b.h index bf251cd6..e8f7f3fb 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_bus_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_bus_gp10b.h | |||
@@ -106,6 +106,58 @@ static inline u32 bus_bar2_block_ptr_shift_v(void) | |||
106 | { | 106 | { |
107 | return 0x0000000c; | 107 | return 0x0000000c; |
108 | } | 108 | } |
109 | static inline u32 bus_bind_status_r(void) | ||
110 | { | ||
111 | return 0x00001710; | ||
112 | } | ||
113 | static inline u32 bus_bind_status_bar1_pending_v(u32 r) | ||
114 | { | ||
115 | return (r >> 0) & 0x1; | ||
116 | } | ||
117 | static inline u32 bus_bind_status_bar1_pending_empty_f(void) | ||
118 | { | ||
119 | return 0x0; | ||
120 | } | ||
121 | static inline u32 bus_bind_status_bar1_pending_busy_f(void) | ||
122 | { | ||
123 | return 0x1; | ||
124 | } | ||
125 | static inline u32 bus_bind_status_bar1_outstanding_v(u32 r) | ||
126 | { | ||
127 | return (r >> 1) & 0x1; | ||
128 | } | ||
129 | static inline u32 bus_bind_status_bar1_outstanding_false_f(void) | ||
130 | { | ||
131 | return 0x0; | ||
132 | } | ||
133 | static inline u32 bus_bind_status_bar1_outstanding_true_f(void) | ||
134 | { | ||
135 | return 0x2; | ||
136 | } | ||
137 | static inline u32 bus_bind_status_bar2_pending_v(u32 r) | ||
138 | { | ||
139 | return (r >> 2) & 0x1; | ||
140 | } | ||
141 | static inline u32 bus_bind_status_bar2_pending_empty_f(void) | ||
142 | { | ||
143 | return 0x0; | ||
144 | } | ||
145 | static inline u32 bus_bind_status_bar2_pending_busy_f(void) | ||
146 | { | ||
147 | return 0x4; | ||
148 | } | ||
149 | static inline u32 bus_bind_status_bar2_outstanding_v(u32 r) | ||
150 | { | ||
151 | return (r >> 3) & 0x1; | ||
152 | } | ||
153 | static inline u32 bus_bind_status_bar2_outstanding_false_f(void) | ||
154 | { | ||
155 | return 0x0; | ||
156 | } | ||
157 | static inline u32 bus_bind_status_bar2_outstanding_true_f(void) | ||
158 | { | ||
159 | return 0x8; | ||
160 | } | ||
109 | static inline u32 bus_intr_0_r(void) | 161 | static inline u32 bus_intr_0_r(void) |
110 | { | 162 | { |
111 | return 0x00001100; | 163 | return 0x00001100; |