diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h index df1a6d48..60e83122 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h | |||
@@ -146,38 +146,6 @@ static inline u32 pbdma_formats_mp_fermi0_f(void) | |||
146 | { | 146 | { |
147 | return 0x0; | 147 | return 0x0; |
148 | } | 148 | } |
149 | static inline u32 pbdma_syncpointa_r(u32 i) | ||
150 | { | ||
151 | return 0x000400a4 + i*8192; | ||
152 | } | ||
153 | static inline u32 pbdma_syncpointa_payload_v(u32 r) | ||
154 | { | ||
155 | return (r >> 0) & 0xffffffff; | ||
156 | } | ||
157 | static inline u32 pbdma_syncpointb_r(u32 i) | ||
158 | { | ||
159 | return 0x000400a8 + i*8192; | ||
160 | } | ||
161 | static inline u32 pbdma_syncpointb_op_v(u32 r) | ||
162 | { | ||
163 | return (r >> 0) & 0x3; | ||
164 | } | ||
165 | static inline u32 pbdma_syncpointb_op_wait_v(void) | ||
166 | { | ||
167 | return 0x00000000; | ||
168 | } | ||
169 | static inline u32 pbdma_syncpointb_wait_switch_v(u32 r) | ||
170 | { | ||
171 | return (r >> 4) & 0x1; | ||
172 | } | ||
173 | static inline u32 pbdma_syncpointb_wait_switch_en_v(void) | ||
174 | { | ||
175 | return 0x00000001; | ||
176 | } | ||
177 | static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r) | ||
178 | { | ||
179 | return (r >> 8) & 0xff; | ||
180 | } | ||
181 | static inline u32 pbdma_pb_header_r(u32 i) | 149 | static inline u32 pbdma_pb_header_r(u32 i) |
182 | { | 150 | { |
183 | return 0x00040084 + i*8192; | 151 | return 0x00040084 + i*8192; |
@@ -466,4 +434,36 @@ static inline u32 pbdma_udma_nop_r(void) | |||
466 | { | 434 | { |
467 | return 0x00000008; | 435 | return 0x00000008; |
468 | } | 436 | } |
437 | static inline u32 pbdma_syncpointa_r(u32 i) | ||
438 | { | ||
439 | return 0x000400a4 + i*8192; | ||
440 | } | ||
441 | static inline u32 pbdma_syncpointa_payload_v(u32 r) | ||
442 | { | ||
443 | return (r >> 0) & 0xffffffff; | ||
444 | } | ||
445 | static inline u32 pbdma_syncpointb_r(u32 i) | ||
446 | { | ||
447 | return 0x000400a8 + i*8192; | ||
448 | } | ||
449 | static inline u32 pbdma_syncpointb_op_v(u32 r) | ||
450 | { | ||
451 | return (r >> 0) & 0x3; | ||
452 | } | ||
453 | static inline u32 pbdma_syncpointb_op_wait_v(void) | ||
454 | { | ||
455 | return 0x00000000; | ||
456 | } | ||
457 | static inline u32 pbdma_syncpointb_wait_switch_v(u32 r) | ||
458 | { | ||
459 | return (r >> 4) & 0x1; | ||
460 | } | ||
461 | static inline u32 pbdma_syncpointb_wait_switch_en_v(void) | ||
462 | { | ||
463 | return 0x00000001; | ||
464 | } | ||
465 | static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r) | ||
466 | { | ||
467 | return (r >> 8) & 0xff; | ||
468 | } | ||
469 | #endif | 469 | #endif |