]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.h
ENGR00240988: gpu: copy gpu-viv driver from 3.5.7 kernel
[karo-tx-linux.git] / drivers / mxc / gpu-viv / hal / os / linux / kernel / gc_hal_kernel_debugfs.h
1 /****************************************************************************
2 *
3 *    Copyright (C) 2005 - 2013 by Vivante Corp.
4 *
5 *    This program is free software; you can redistribute it and/or modify
6 *    it under the terms of the GNU General Public License as published by
7 *    the Free Software Foundation; either version 2 of the license, or
8 *    (at your option) any later version.
9 *
10 *    This program is distributed in the hope that it will be useful,
11 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *    GNU General Public License for more details.
14 *
15 *    You should have received a copy of the GNU General Public License
16 *    along with this program; if not write to the Free Software
17 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 *****************************************************************************/
20
21
22 #include <stdarg.h>
23
24 #ifndef __gc_hal_kernel_debugfs_h_
25 #define __gc_hal_kernel_debugfs_h_
26
27  #define MAX_LINE_SIZE 768           /* Max bytes for a line of debug info */
28
29
30  typedef struct _gcsDebugFileSystemNode gcsDebugFileSystemNode ;
31
32
33 /*******************************************************************************
34  **
35  **                             System Related
36  **
37  *******************************************************************************/
38
39 gctINT    gckDebugFileSystemIsEnabled(void);
40
41 gctINT   gckDebugFileSystemInitialize(void);
42
43 gctINT   gckDebugFileSystemTerminate(void);
44
45
46 /*******************************************************************************
47  **
48  **                             Node Related
49  **
50  *******************************************************************************/
51
52 gctINT gckDebugFileSystemCreateNode(
53                         IN gctINT SizeInKB,
54                         IN gctCONST_STRING  ParentName ,
55                         IN gctCONST_STRING  NodeName,
56                         OUT gcsDebugFileSystemNode  **Node
57                         );
58
59
60 void gckDebugFileSystemFreeNode(
61                         IN gcsDebugFileSystemNode  * Node
62                         );
63
64
65
66 void gckDebugFileSystemSetCurrentNode(
67                         IN gcsDebugFileSystemNode  * Node
68                         );
69
70
71
72 void gckDebugFileSystemGetCurrentNode(
73                         OUT gcsDebugFileSystemNode  ** Node
74                         );
75
76
77 void gckDebugFileSystemPrint(
78                         IN gctCONST_STRING  Message,
79                         ...
80                          );
81
82 #endif
83
84