summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/debug_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/debug_gk20a.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.h b/drivers/gpu/nvgpu/gk20a/debug_gk20a.h
index c70b19d9..30c87f35 100644
--- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A Debug functionality 2 * GK20A Debug functionality
3 * 3 *
4 * Copyright (C) 2011-2014 NVIDIA CORPORATION. All rights reserved. 4 * Copyright (C) 2011-2015 NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This software is licensed under the terms of the GNU General Public 6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and 7 * License version 2, as published by the Free Software Foundation, and
@@ -18,10 +18,20 @@
18#define _DEBUG_GK20A_H_ 18#define _DEBUG_GK20A_H_
19 19
20struct platform_device; 20struct platform_device;
21struct gk20a;
22struct gpu_ops;
21 23
22extern unsigned int gk20a_debug_trace_cmdbuf; 24extern unsigned int gk20a_debug_trace_cmdbuf;
23 25
26struct gk20a_debug_output {
27 void (*fn)(void *ctx, const char *str, size_t len);
28 void *ctx;
29 char buf[256];
30};
31
24void gk20a_debug_dump(struct platform_device *pdev); 32void gk20a_debug_dump(struct platform_device *pdev);
33void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o);
25void gk20a_debug_init(struct platform_device *pdev); 34void gk20a_debug_init(struct platform_device *pdev);
35void gk20a_init_debug_ops(struct gpu_ops *gops);
26 36
27#endif 37#endif