2 * Copyright (c) 2010-2011 Imre Deak <imre.deak@nokia.com>
3 * Copyright (c) 2010-2011 Luc Verhaegen <libv@codethink.co.uk>
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.
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.
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
20 #ifndef _PVR_DEBUGFS_H_
21 #define _PVR_DEBUGFS_H_ 1
23 #ifndef CONFIG_DEBUG_FS
24 #error Error: debugfs header included but CONFIG_DEBUG_FS is not defined!
27 extern struct dentry *pvr_debugfs_dir;
29 int pvr_debugfs_init(void);
30 void pvr_debugfs_cleanup(void);
32 void pvr_hwrec_dump(struct PVRSRV_PER_PROCESS_DATA *proc_data,
33 struct PVRSRV_SGXDEV_INFO *psDevInfo);
35 #ifdef CONFIG_PVR_DEBUG
36 /* to be used for memory dumping from mmu.c */
37 int hwrec_mem_write(u8 *buffer, size_t size);
38 int hwrec_mem_print(char *format, ...);
41 #endif /* _PVR_DEBUGFS_H_ */