455b182fc4e475075c8fe1c7398d65cd7cedb4c1
[profile/ivi/intel-emgd-kmod.git] / include / igd_debug.h
1 /*
2  *-----------------------------------------------------------------------------
3  * Filename: igd_debug.h
4  * $Revision: 1.10 $
5  *-----------------------------------------------------------------------------
6  * Copyright (c) 2002-2010, Intel Corporation.
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a copy
9  * of this software and associated documentation files (the "Software"), to deal
10  * in the Software without restriction, including without limitation the rights
11  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12  * copies of the Software, and to permit persons to whom the Software is
13  * furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be included in
16  * all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24  * THE SOFTWARE.
25  *
26  *-----------------------------------------------------------------------------
27  * Description:
28  *  This file contains data structures and variables needed to control
29  *  debugging within the IEGD driver.
30  *-----------------------------------------------------------------------------
31  */
32
33 #ifndef _IGD_DEBUG_H
34 #define _IGD_DEBUG_H
35
36 typedef struct _igd_debug {
37         struct {
38                 /* Per-Module Debug Bits */
39                 short cmd      ;
40                 short dsp      ;
41                 short mode     ;
42                 short init     ;
43                 short overlay  ;
44                 short power    ;
45                 short _2d      ;
46                 short blend    ;
47                 short state    ;
48                 short gmm      ;
49                 short gart     ;
50                 short oal      ;
51                 short intr     ;
52                 short dpd      ;
53                 short video    ;
54                 short pvr3dd   ;
55                 short buf_class;
56                 /* Global Debug Bits */
57                 short trace    ;
58                 short instr    ;
59                 short debug    ;
60                 /* Verbose debug bits */
61                 short blend_stats        ;
62                 short dump_overlay_regs  ;
63                 short dump_command_queue ;
64                 short dump_gmm_on_fail   ;
65                 short dump_shaders       ;
66         } hal;
67 } igd_debug_t;
68
69 extern igd_debug_t *emgd_debug;
70
71
72 #endif