summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/hw_ram_gp10b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_ram_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hw_ram_gp10b.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_ram_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_ram_gp10b.h
index 509031e5..dea53f96 100644
--- a/drivers/gpu/nvgpu/gp10b/hw_ram_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/hw_ram_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,
@@ -78,6 +78,38 @@ static inline u32 ram_in_page_dir_base_vol_true_f(void)
78{ 78{
79 return 0x4; 79 return 0x4;
80} 80}
81static inline u32 ram_in_page_dir_base_fault_replay_tex_f(u32 v)
82{
83 return (v & 0x1) << 4;
84}
85static inline u32 ram_in_page_dir_base_fault_replay_tex_m(void)
86{
87 return 0x1 << 4;
88}
89static inline u32 ram_in_page_dir_base_fault_replay_tex_w(void)
90{
91 return 128;
92}
93static inline u32 ram_in_page_dir_base_fault_replay_tex_true_f(void)
94{
95 return 0x10;
96}
97static inline u32 ram_in_page_dir_base_fault_replay_gcc_f(u32 v)
98{
99 return (v & 0x1) << 5;
100}
101static inline u32 ram_in_page_dir_base_fault_replay_gcc_m(void)
102{
103 return 0x1 << 5;
104}
105static inline u32 ram_in_page_dir_base_fault_replay_gcc_w(void)
106{
107 return 128;
108}
109static inline u32 ram_in_page_dir_base_fault_replay_gcc_true_f(void)
110{
111 return 0x20;
112}
81static inline u32 ram_in_big_page_size_f(u32 v) 113static inline u32 ram_in_big_page_size_f(u32 v)
82{ 114{
83 return (v & 0x1) << 11; 115 return (v & 0x1) << 11;