diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_pbdma_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_pbdma_gm20b.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_pbdma_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_pbdma_gm20b.h index e403abdb..c64184cb 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_pbdma_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_pbdma_gm20b.h | |||
@@ -434,4 +434,36 @@ static inline u32 pbdma_udma_nop_r(void) | |||
434 | { | 434 | { |
435 | return 0x00000008; | 435 | return 0x00000008; |
436 | } | 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 | } | ||
437 | #endif | 469 | #endif |