diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fb_gv11b.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h index ab688aba..eff3c25d 100644 --- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GV11B FB | 2 | * GV11B FB |
3 | * | 3 | * |
4 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -17,5 +17,32 @@ | |||
17 | #define _NVGPU_GV11B_FB | 17 | #define _NVGPU_GV11B_FB |
18 | struct gpu_ops; | 18 | struct gpu_ops; |
19 | 19 | ||
20 | #define STALL_REG_INDEX 0 | ||
21 | #define NONSTALL_REG_INDEX 1 | ||
22 | |||
23 | #define NONREPLAY_REG_INDEX 0 | ||
24 | #define REPLAY_REG_INDEX 1 | ||
25 | |||
26 | #define FAULT_BUF_DISABLED 0 | ||
27 | #define FAULT_BUF_ENABLED 1 | ||
28 | |||
29 | #define FAULT_BUF_VALID 1 | ||
30 | #define CHECK_NEXT_FAULT_BUF 1 | ||
31 | |||
32 | #define HUB_INTR_TYPE_OTHER 1 /* bit 0 */ | ||
33 | #define HUB_INTR_TYPE_NONREPLAY 2 /* bit 1 */ | ||
34 | #define HUB_INTR_TYPE_REPLAY 4 /* bit 2 */ | ||
35 | #define HUB_INTR_TYPE_ECC_UNCORRECTED 8 /* bit 3 */ | ||
36 | #define HUB_INTR_TYPE_ACCESS_COUNTER 16 /* bit 4 */ | ||
37 | #define HUB_INTR_TYPE_ALL (HUB_INTR_TYPE_OTHER | \ | ||
38 | HUB_INTR_TYPE_NONREPLAY | \ | ||
39 | HUB_INTR_TYPE_REPLAY | \ | ||
40 | HUB_INTR_TYPE_ECC_UNCORRECTED | \ | ||
41 | HUB_INTR_TYPE_ACCESS_COUNTER) | ||
42 | |||
43 | void gv11b_fb_enable_hub_intr(struct gk20a *g, | ||
44 | unsigned int index, unsigned int intr_type); | ||
45 | void gv11b_fb_disable_hub_intr(struct gk20a *g, | ||
46 | unsigned int index, unsigned int intr_type); | ||
20 | void gv11b_init_fb(struct gpu_ops *gops); | 47 | void gv11b_init_fb(struct gpu_ops *gops); |
21 | #endif | 48 | #endif |