fixes for bc_cat
[sgx.git] / pvr / pvr_debugfs.h
1 /*
2  * Copyright (c) 2010-2011 Imre Deak <imre.deak@nokia.com>
3  * Copyright (c) 2010-2011 Luc Verhaegen <libv@codethink.co.uk>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */
19
20 #ifndef _PVR_DEBUGFS_H_
21 #define _PVR_DEBUGFS_H_ 1
22
23 extern struct dentry *pvr_debugfs_dir;
24
25 int pvr_debugfs_init(void);
26 void pvr_debugfs_cleanup(void);
27
28 void pvr_hwrec_dump(struct PVRSRV_PER_PROCESS_DATA *proc_data,
29                     struct PVRSRV_SGXDEV_INFO *psDevInfo);
30
31 size_t edm_trace_print(struct PVRSRV_SGXDEV_INFO *sdev, char *dst,
32                        size_t dst_len);
33
34 #ifdef CONFIG_PVR_DEBUG
35 /* to be used for memory dumping from mmu.c */
36 int hwrec_mem_write(u8 *buffer, size_t size);
37 int hwrec_mem_print(char *format, ...);
38 #endif
39
40 #endif /* _PVR_DEBUGFS_H_ */