diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h | 130 |
1 files changed, 129 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h index b79758d2..d2629b08 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_fifo_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, |
@@ -178,6 +178,10 @@ static inline u32 fifo_intr_0_lb_error_reset_f(void) | |||
178 | { | 178 | { |
179 | return 0x1000000; | 179 | return 0x1000000; |
180 | } | 180 | } |
181 | static inline u32 fifo_intr_0_replayable_fault_error_pending_f(void) | ||
182 | { | ||
183 | return 0x2000000; | ||
184 | } | ||
181 | static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void) | 185 | static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void) |
182 | { | 186 | { |
183 | return 0x8000000; | 187 | return 0x8000000; |
@@ -526,4 +530,128 @@ static inline u32 fifo_pbdma_status_chsw_in_progress_v(void) | |||
526 | { | 530 | { |
527 | return 0x00000001; | 531 | return 0x00000001; |
528 | } | 532 | } |
533 | static inline u32 fifo_replay_fault_buffer_lo_r(void) | ||
534 | { | ||
535 | return 0x00002a70; | ||
536 | } | ||
537 | static inline u32 fifo_replay_fault_buffer_lo_enable_v(u32 r) | ||
538 | { | ||
539 | return (r >> 0) & 0x1; | ||
540 | } | ||
541 | static inline u32 fifo_replay_fault_buffer_lo_enable_true_v(void) | ||
542 | { | ||
543 | return 0x00000001; | ||
544 | } | ||
545 | static inline u32 fifo_replay_fault_buffer_lo_enable_false_v(void) | ||
546 | { | ||
547 | return 0x00000000; | ||
548 | } | ||
549 | static inline u32 fifo_replay_fault_buffer_lo_base_f(u32 v) | ||
550 | { | ||
551 | return (v & 0xfffff) << 12; | ||
552 | } | ||
553 | static inline u32 fifo_replay_fault_buffer_lo_base_reset_v(void) | ||
554 | { | ||
555 | return 0x00000000; | ||
556 | } | ||
557 | static inline u32 fifo_replay_fault_buffer_hi_r(void) | ||
558 | { | ||
559 | return 0x00002a74; | ||
560 | } | ||
561 | static inline u32 fifo_replay_fault_buffer_hi_base_f(u32 v) | ||
562 | { | ||
563 | return (v & 0xffff) << 0; | ||
564 | } | ||
565 | static inline u32 fifo_replay_fault_buffer_hi_base_reset_v(void) | ||
566 | { | ||
567 | return 0x00000000; | ||
568 | } | ||
569 | static inline u32 fifo_replay_fault_buffer_size_r(void) | ||
570 | { | ||
571 | return 0x00002a78; | ||
572 | } | ||
573 | static inline u32 fifo_replay_fault_buffer_size_hw_f(u32 v) | ||
574 | { | ||
575 | return (v & 0x1ff) << 0; | ||
576 | } | ||
577 | static inline u32 fifo_replay_fault_buffer_size_hw_entries_v(void) | ||
578 | { | ||
579 | return 0x000000c0; | ||
580 | } | ||
581 | static inline u32 fifo_replay_fault_buffer_get_r(void) | ||
582 | { | ||
583 | return 0x00002a7c; | ||
584 | } | ||
585 | static inline u32 fifo_replay_fault_buffer_get_offset_hw_f(u32 v) | ||
586 | { | ||
587 | return (v & 0x1ff) << 0; | ||
588 | } | ||
589 | static inline u32 fifo_replay_fault_buffer_get_offset_hw_init_v(void) | ||
590 | { | ||
591 | return 0x00000000; | ||
592 | } | ||
593 | static inline u32 fifo_replay_fault_buffer_put_r(void) | ||
594 | { | ||
595 | return 0x00002a80; | ||
596 | } | ||
597 | static inline u32 fifo_replay_fault_buffer_put_offset_hw_f(u32 v) | ||
598 | { | ||
599 | return (v & 0x1ff) << 0; | ||
600 | } | ||
601 | static inline u32 fifo_replay_fault_buffer_put_offset_hw_init_v(void) | ||
602 | { | ||
603 | return 0x00000000; | ||
604 | } | ||
605 | static inline u32 fifo_replay_fault_buffer_info_r(void) | ||
606 | { | ||
607 | return 0x00002a84; | ||
608 | } | ||
609 | static inline u32 fifo_replay_fault_buffer_info_overflow_f(u32 v) | ||
610 | { | ||
611 | return (v & 0x1) << 0; | ||
612 | } | ||
613 | static inline u32 fifo_replay_fault_buffer_info_overflow_false_v(void) | ||
614 | { | ||
615 | return 0x00000000; | ||
616 | } | ||
617 | static inline u32 fifo_replay_fault_buffer_info_overflow_true_v(void) | ||
618 | { | ||
619 | return 0x00000001; | ||
620 | } | ||
621 | static inline u32 fifo_replay_fault_buffer_info_overflow_clear_v(void) | ||
622 | { | ||
623 | return 0x00000001; | ||
624 | } | ||
625 | static inline u32 fifo_replay_fault_buffer_info_write_nack_f(u32 v) | ||
626 | { | ||
627 | return (v & 0x1) << 24; | ||
628 | } | ||
629 | static inline u32 fifo_replay_fault_buffer_info_write_nack_false_v(void) | ||
630 | { | ||
631 | return 0x00000000; | ||
632 | } | ||
633 | static inline u32 fifo_replay_fault_buffer_info_write_nack_true_v(void) | ||
634 | { | ||
635 | return 0x00000001; | ||
636 | } | ||
637 | static inline u32 fifo_replay_fault_buffer_info_write_nack_clear_v(void) | ||
638 | { | ||
639 | return 0x00000001; | ||
640 | } | ||
641 | static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_f(u32 v) | ||
642 | { | ||
643 | return (v & 0x1) << 28; | ||
644 | } | ||
645 | static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_false_v(void) | ||
646 | { | ||
647 | return 0x00000000; | ||
648 | } | ||
649 | static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_true_v(void) | ||
650 | { | ||
651 | return 0x00000001; | ||
652 | } | ||
653 | static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_clear_v(void) | ||
654 | { | ||
655 | return 0x00000001; | ||
656 | } | ||
529 | #endif | 657 | #endif |