diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.h | 12 |
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 | ||
20 | struct platform_device; | 20 | struct platform_device; |
21 | struct gk20a; | ||
22 | struct gpu_ops; | ||
21 | 23 | ||
22 | extern unsigned int gk20a_debug_trace_cmdbuf; | 24 | extern unsigned int gk20a_debug_trace_cmdbuf; |
23 | 25 | ||
26 | struct gk20a_debug_output { | ||
27 | void (*fn)(void *ctx, const char *str, size_t len); | ||
28 | void *ctx; | ||
29 | char buf[256]; | ||
30 | }; | ||
31 | |||
24 | void gk20a_debug_dump(struct platform_device *pdev); | 32 | void gk20a_debug_dump(struct platform_device *pdev); |
33 | void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o); | ||
25 | void gk20a_debug_init(struct platform_device *pdev); | 34 | void gk20a_debug_init(struct platform_device *pdev); |
35 | void gk20a_init_debug_ops(struct gpu_ops *gops); | ||
26 | 36 | ||
27 | #endif | 37 | #endif |