summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h42
1 files changed, 41 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h
index b8e236b8..f442991e 100644
--- a/drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/hw_flush_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,
@@ -114,6 +114,46 @@ static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
114{ 114{
115 return 0x00000001; 115 return 0x00000001;
116} 116}
117static inline u32 flush_clean_comptags_r(void)
118{
119 return 0x0007000c;
120}
121static inline u32 flush_clean_comptags_pending_v(u32 r)
122{
123 return (r >> 0) & 0x1;
124}
125static inline u32 flush_clean_comptags_pending_empty_v(void)
126{
127 return 0x00000000;
128}
129static inline u32 flush_clean_comptags_pending_empty_f(void)
130{
131 return 0x0;
132}
133static inline u32 flush_clean_comptags_pending_busy_v(void)
134{
135 return 0x00000001;
136}
137static inline u32 flush_clean_comptags_pending_busy_f(void)
138{
139 return 0x1;
140}
141static inline u32 flush_clean_comptags_outstanding_v(u32 r)
142{
143 return (r >> 1) & 0x1;
144}
145static inline u32 flush_clean_comptags_outstanding_false_v(void)
146{
147 return 0x00000000;
148}
149static inline u32 flush_clean_comptags_outstanding_false_f(void)
150{
151 return 0x0;
152}
153static inline u32 flush_clean_comptags_outstanding_true_v(void)
154{
155 return 0x00000001;
156}
117static inline u32 flush_fb_flush_r(void) 157static inline u32 flush_fb_flush_r(void)
118{ 158{
119 return 0x00070000; 159 return 0x00070000;