diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fb_gv11b.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h index 34988bd2..fe2c733d 100644 --- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h | |||
@@ -28,15 +28,6 @@ | |||
28 | #define NONREPLAY_REG_INDEX 0 | 28 | #define NONREPLAY_REG_INDEX 0 |
29 | #define REPLAY_REG_INDEX 1 | 29 | #define REPLAY_REG_INDEX 1 |
30 | 30 | ||
31 | #define FAULT_BUF_DISABLED 0 | ||
32 | #define FAULT_BUF_ENABLED 1 | ||
33 | |||
34 | #define FAULT_BUF_INVALID 0 | ||
35 | #define FAULT_BUF_VALID 1 | ||
36 | |||
37 | #define FAULT_TYPE_OTHER_AND_NONREPLAY 0 | ||
38 | #define FAULT_TYPE_REPLAY 1 | ||
39 | |||
40 | struct gk20a; | 31 | struct gk20a; |
41 | 32 | ||
42 | void gv11b_fb_init_hw(struct gk20a *g); | 33 | void gv11b_fb_init_hw(struct gk20a *g); |
@@ -46,11 +37,10 @@ void gv11b_fb_init_cbc(struct gk20a *g, struct gr_gk20a *gr); | |||
46 | void gv11b_fb_reset(struct gk20a *g); | 37 | void gv11b_fb_reset(struct gk20a *g); |
47 | void gv11b_fb_hub_isr(struct gk20a *g); | 38 | void gv11b_fb_hub_isr(struct gk20a *g); |
48 | 39 | ||
49 | u32 gv11b_fb_is_fault_buf_enabled(struct gk20a *g, | 40 | bool gv11b_fb_is_fault_buf_enabled(struct gk20a *g, u32 index ); |
50 | unsigned int index); | ||
51 | void gv11b_fb_fault_buf_set_state_hw(struct gk20a *g, | 41 | void gv11b_fb_fault_buf_set_state_hw(struct gk20a *g, |
52 | unsigned int index, unsigned int state); | 42 | u32 index, u32 state); |
53 | void gv11b_fb_fault_buf_configure_hw(struct gk20a *g, unsigned int index); | 43 | void gv11b_fb_fault_buf_configure_hw(struct gk20a *g, u32 index); |
54 | void gv11b_fb_enable_hub_intr(struct gk20a *g); | 44 | void gv11b_fb_enable_hub_intr(struct gk20a *g); |
55 | void gv11b_fb_disable_hub_intr(struct gk20a *g); | 45 | void gv11b_fb_disable_hub_intr(struct gk20a *g); |
56 | bool gv11b_fb_mmu_fault_pending(struct gk20a *g); | 46 | bool gv11b_fb_mmu_fault_pending(struct gk20a *g); |
@@ -58,7 +48,7 @@ void gv11b_fb_handle_dropped_mmu_fault(struct gk20a *g, u32 fault_status); | |||
58 | void gv11b_fb_handle_other_fault_notify(struct gk20a *g, | 48 | void gv11b_fb_handle_other_fault_notify(struct gk20a *g, |
59 | u32 fault_status); | 49 | u32 fault_status); |
60 | void gv11b_fb_handle_mmu_nonreplay_replay_fault(struct gk20a *g, | 50 | void gv11b_fb_handle_mmu_nonreplay_replay_fault(struct gk20a *g, |
61 | u32 fault_status, unsigned int index); | 51 | u32 fault_status, u32 index); |
62 | void gv11b_fb_handle_nonreplay_fault_overflow(struct gk20a *g, | 52 | void gv11b_fb_handle_nonreplay_fault_overflow(struct gk20a *g, |
63 | u32 fault_status); | 53 | u32 fault_status); |
64 | void gv11b_fb_handle_replay_fault_overflow(struct gk20a *g, | 54 | void gv11b_fb_handle_replay_fault_overflow(struct gk20a *g, |