summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h
index e124e17f..e83dbb5c 100644
--- a/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2012-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,
@@ -190,6 +190,10 @@ static inline u32 pbdma_pb_header_type_inc_f(void)
190{ 190{
191 return 0x20000000; 191 return 0x20000000;
192} 192}
193static inline u32 pbdma_pb_header_type_non_inc_f(void)
194{
195 return 0x60000000;
196}
193static inline u32 pbdma_hdr_shadow_r(u32 i) 197static inline u32 pbdma_hdr_shadow_r(u32 i)
194{ 198{
195 return 0x00040118 + i*8192; 199 return 0x00040118 + i*8192;
@@ -214,6 +218,38 @@ static inline u32 pbdma_method0_r(u32 i)
214{ 218{
215 return 0x000400c0 + i*8192; 219 return 0x000400c0 + i*8192;
216} 220}
221static inline u32 pbdma_method0_addr_f(u32 v)
222{
223 return (v & 0xfff) << 2;
224}
225static inline u32 pbdma_method0_addr_v(u32 r)
226{
227 return (r >> 2) & 0xfff;
228}
229static inline u32 pbdma_method0_subch_v(u32 r)
230{
231 return (r >> 16) & 0x7;
232}
233static inline u32 pbdma_method0_first_true_f(void)
234{
235 return 0x400000;
236}
237static inline u32 pbdma_method0_valid_true_f(void)
238{
239 return 0x80000000;
240}
241static inline u32 pbdma_method1_r(u32 i)
242{
243 return 0x000400c8 + i*8192;
244}
245static inline u32 pbdma_method2_r(u32 i)
246{
247 return 0x000400d0 + i*8192;
248}
249static inline u32 pbdma_method3_r(u32 i)
250{
251 return 0x000400d8 + i*8192;
252}
217static inline u32 pbdma_data0_r(u32 i) 253static inline u32 pbdma_data0_r(u32 i)
218{ 254{
219 return 0x000400c4 + i*8192; 255 return 0x000400c4 + i*8192;