ENGR00156850 gpu-viv: add gpu-viv driver source
[wandboard.git] / drivers / mxc / gpu-viv / hal / kernel / inc / gc_hal_dump.h
blob340bc9b23429fe5d766e3f1b1d268a58b398fe1f
1 /****************************************************************************
3 * Copyright (C) 2005 - 2011 by Vivante Corp.
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.
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.
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.
19 *****************************************************************************/
23 #ifndef __gc_hal_dump_h_
24 #define __gc_hal_dump_h_
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
31 ** FILE LAYOUT:
33 ** gcsDUMP_FILE structure
35 ** gcsDUMP_DATA frame
36 ** gcsDUMP_DATA or gcDUMP_DATA_SIZE records rendingring the frame
37 ** gctUINT8 data[length]
40 #define gcvDUMP_FILE_SIGNATURE gcmCC('g','c','D','B')
42 typedef struct _gcsDUMP_FILE
44 gctUINT32 signature; /* File signature */
45 gctSIZE_T length; /* Length of file */
46 gctUINT32 frames; /* Number of frames in file */
48 gcsDUMP_FILE;
50 typedef enum _gceDUMP_TAG
52 gcvTAG_SURFACE = gcmCC('s','u','r','f'),
53 gcvTAG_FRAME = gcmCC('f','r','m',' '),
54 gcvTAG_COMMAND = gcmCC('c','m','d',' '),
55 gcvTAG_INDEX = gcmCC('i','n','d','x'),
56 gcvTAG_STREAM = gcmCC('s','t','r','m'),
57 gcvTAG_TEXTURE = gcmCC('t','e','x','t'),
58 gcvTAG_RENDER_TARGET = gcmCC('r','n','d','r'),
59 gcvTAG_DEPTH = gcmCC('z','b','u','f'),
60 gcvTAG_RESOLVE = gcmCC('r','s','l','v'),
61 gcvTAG_DELETE = gcmCC('d','e','l',' '),
63 gceDUMP_TAG;
65 typedef struct _gcsDUMP_SURFACE
67 gceDUMP_TAG type; /* Type of record. */
68 gctUINT32 address; /* Address of the surface. */
69 gctINT16 width; /* Width of surface. */
70 gctINT16 height; /* Height of surface. */
71 gceSURF_FORMAT format; /* Surface pixel format. */
72 gctSIZE_T length; /* Number of bytes inside the surface. */
74 gcsDUMP_SURFACE;
76 typedef struct _gcsDUMP_DATA
78 gceDUMP_TAG type; /* Type of record. */
79 gctSIZE_T length; /* Number of bytes of data. */
80 gctUINT32 address; /* Address for the data. */
82 gcsDUMP_DATA;
84 #ifdef __cplusplus
86 #endif
88 #endif /* __gc_hal_dump_h_ */