diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_pbdma_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_pbdma_gp10b.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_pbdma_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_pbdma_gp10b.h index 91429b47..18db8595 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_pbdma_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_pbdma_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2015, 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, |
@@ -410,6 +410,10 @@ static inline u32 pbdma_intr_0_signature_pending_f(void) | |||
410 | { | 410 | { |
411 | return 0x80000000; | 411 | return 0x80000000; |
412 | } | 412 | } |
413 | static inline u32 pbdma_intr_0_syncpoint_illegal_pending_f(void) | ||
414 | { | ||
415 | return 0x10000000; | ||
416 | } | ||
413 | static inline u32 pbdma_intr_1_r(u32 i) | 417 | static inline u32 pbdma_intr_1_r(u32 i) |
414 | { | 418 | { |
415 | return 0x00040148 + i*8192; | 419 | return 0x00040148 + i*8192; |
@@ -438,6 +442,26 @@ static inline u32 pbdma_udma_nop_r(void) | |||
438 | { | 442 | { |
439 | return 0x00000008; | 443 | return 0x00000008; |
440 | } | 444 | } |
445 | static inline u32 pbdma_allowed_syncpoints_r(u32 i) | ||
446 | { | ||
447 | return 0x000400e8 + i*8192; | ||
448 | } | ||
449 | static inline u32 pbdma_allowed_syncpoints_0_valid_f(u32 v) | ||
450 | { | ||
451 | return (v & 0x1) << 31; | ||
452 | } | ||
453 | static inline u32 pbdma_allowed_syncpoints_0_index_f(u32 v) | ||
454 | { | ||
455 | return (v & 0x7fff) << 16; | ||
456 | } | ||
457 | static inline u32 pbdma_allowed_syncpoints_1_valid_f(u32 v) | ||
458 | { | ||
459 | return (v & 0x1) << 15; | ||
460 | } | ||
461 | static inline u32 pbdma_allowed_syncpoints_1_index_f(u32 v) | ||
462 | { | ||
463 | return (v & 0x7fff) << 0; | ||
464 | } | ||
441 | static inline u32 pbdma_syncpointa_r(u32 i) | 465 | static inline u32 pbdma_syncpointa_r(u32 i) |
442 | { | 466 | { |
443 | return 0x000400a4 + i*8192; | 467 | return 0x000400a4 + i*8192; |