gpu: pvr: pdumpfs: add Kconfig and debugfs pdump mode handling
[sgx.git] / pvr / pvr_pdumpfs.h
1 /*
2  * Copyright (c) 2010 by Luc Verhaegen <libv@codethink.co.uk>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */
18
19 #ifndef _PVR_PDUMPFS_H_
20 #define _PVR_PDUMPFS_H_
21
22 void pdumpfs_frame_set(u32 frame);
23 bool pdumpfs_capture_enabled(void);
24 bool pdumpfs_flags_check(u32 flags);
25 enum PVRSRV_ERROR pdumpfs_write_data(void *buffer, size_t size, bool from_user);
26 void pdumpfs_write_string(char *string);
27
28 int pdumpfs_init(void);
29 void pdumpfs_cleanup(void);
30
31 #endif /* _PVR_PDUMPFS_H_ */