summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fb_gv11b.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
deleted file mode 100644
index fe2c733d..00000000
--- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h
+++ /dev/null
@@ -1,81 +0,0 @@
1/*
2 * GV11B FB
3 *
4 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 */
24
25#ifndef _NVGPU_GV11B_FB
26#define _NVGPU_GV11B_FB
27
28#define NONREPLAY_REG_INDEX 0
29#define REPLAY_REG_INDEX 1
30
31struct gk20a;
32
33void gv11b_fb_init_hw(struct gk20a *g);
34
35void gv11b_fb_init_fs_state(struct gk20a *g);
36void gv11b_fb_init_cbc(struct gk20a *g, struct gr_gk20a *gr);
37void gv11b_fb_reset(struct gk20a *g);
38void gv11b_fb_hub_isr(struct gk20a *g);
39
40bool gv11b_fb_is_fault_buf_enabled(struct gk20a *g, u32 index );
41void gv11b_fb_fault_buf_set_state_hw(struct gk20a *g,
42 u32 index, u32 state);
43void gv11b_fb_fault_buf_configure_hw(struct gk20a *g, u32 index);
44void gv11b_fb_enable_hub_intr(struct gk20a *g);
45void gv11b_fb_disable_hub_intr(struct gk20a *g);
46bool gv11b_fb_mmu_fault_pending(struct gk20a *g);
47void gv11b_fb_handle_dropped_mmu_fault(struct gk20a *g, u32 fault_status);
48void gv11b_fb_handle_other_fault_notify(struct gk20a *g,
49 u32 fault_status);
50void gv11b_fb_handle_mmu_nonreplay_replay_fault(struct gk20a *g,
51 u32 fault_status, u32 index);
52void gv11b_fb_handle_nonreplay_fault_overflow(struct gk20a *g,
53 u32 fault_status);
54void gv11b_fb_handle_replay_fault_overflow(struct gk20a *g,
55 u32 fault_status);
56void gv11b_fb_handle_replayable_mmu_fault(struct gk20a *g);
57void gv11b_handle_l2tlb_ecc_isr(struct gk20a *g, u32 ecc_status);
58void gv11b_handle_hubtlb_ecc_isr(struct gk20a *g, u32 ecc_status);
59void gv11b_handle_fillunit_ecc_isr(struct gk20a *g, u32 ecc_status);
60
61void fb_gv11b_write_mmu_fault_buffer_lo_hi(struct gk20a *g, u32 index,
62 u32 addr_lo, u32 addr_hi);
63u32 fb_gv11b_read_mmu_fault_buffer_get(struct gk20a *g, u32 index);
64void fb_gv11b_write_mmu_fault_buffer_get(struct gk20a *g, u32 index,
65 u32 reg_val);
66u32 fb_gv11b_read_mmu_fault_buffer_put(struct gk20a *g, u32 index);
67u32 fb_gv11b_read_mmu_fault_buffer_size(struct gk20a *g, u32 index);
68void fb_gv11b_write_mmu_fault_buffer_size(struct gk20a *g, u32 index,
69 u32 reg_val);
70void fb_gv11b_read_mmu_fault_addr_lo_hi(struct gk20a *g,
71 u32 *addr_lo, u32 *addr_hi);
72void fb_gv11b_read_mmu_fault_inst_lo_hi(struct gk20a *g,
73 u32 *inst_lo, u32 *inst_hi);
74u32 fb_gv11b_read_mmu_fault_info(struct gk20a *g);
75u32 fb_gv11b_read_mmu_fault_status(struct gk20a *g);
76void fb_gv11b_write_mmu_fault_status(struct gk20a *g, u32 reg_val);
77
78int gv11b_fb_mmu_invalidate_replay(struct gk20a *g,
79 u32 invalidate_replay_val);
80
81#endif