1 /*
2  * dspbridge/mpu_api/inc/dbg_zones.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * Copyright (C) 2007 Texas Instruments, Inc.
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published
10  * by the Free Software Foundation version 2.1 of the License.
11  *
12  * This program is distributed .as is. WITHOUT ANY WARRANTY of any kind,
13  * whether express or implied; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  */
17 
18 /*
19  *  ======== dbg_zones.h ========
20  *  Purpose:
21  *      Common debug zone definitions used for DDsp tracing. Currently the GT
22  *      module uses a single debug zone to output debug messages.
23  *
24 
25 
26  *
27  *  Public Functions:
28  *
29  *  Notes:
30  *      Need to call DBG_INSTANTIATE_ZONES(initialZones, modname ,opt1, opt2)
31  *      before using.
32  *
33  *      - initialZone(s) should typically be 0x0001 (GTTRC) for GT.
34  *      - modname is a string such as "DDSP driver"
35  *      - opt1 and opt2 are user defined zones e.g. "Reg0 Write" *
36  *
37  *! Revision History:
38  *! ================
39  *! 03-Feb-2000 rr: DBGPARAM fields changed.
40  *! 02-Dec-1999 rr: DBG_SetGT define changed(for building retail and Debug)
41  *! 01-Oct-1999 ag: Removed #include <windows.h>
42  *! 26-Aug-1999 ag: Created.
43  *!
44  */
45 
46 #ifndef _DBG_ZONES_H_
47 #define _DBG_ZONES_H_
48 
49 #ifndef LINUX			/* No DEBUGZONE in Linux */
50 
51 #include <dbdefs.h>
52 
53 #include <dspapi.h>		/* Defines used by this header */
54 
55 #define DBG_ZONE_GTTRC              DEBUGZONE(0)
56 /* The following zones are undefined */
57 #define DBG_ZONE_XXX1               DEBUGZONE(1)
58 #define DBG_ZONE_XXX2               DEBUGZONE(2)
59 #define DBG_ZONE_XXX3               DEBUGZONE(3)
60 #define DBG_ZONE_XXX4               DEBUGZONE(4)
61 #define DBG_ZONE_XXX5               DEBUGZONE(5)
62 #define DBG_ZONE_XXX6               DEBUGZONE(6)
63 #define DBG_ZONE_XXX7               DEBUGZONE(7)
64 #define DBG_ZONE_XXX8               DEBUGZONE(8)
65 #define DBG_ZONE_XXX9               DEBUGZONE(9)
66 #define DBG_ZONE_XXX10              DEBUGZONE(10)
67 #define DBG_ZONE_XXX11              DEBUGZONE(11)
68 #define DBG_ZONE_XXX12              DEBUGZONE(12)
69 #define DBG_ZONE_XXX13              DEBUGZONE(13)
70 //
71 // The next two are user defined
72 // #define DBG_ZONE_                 DEBUGZONE(14)
73 // #define DBG_ZONE_                 DEBUGZONE(15)
74 #define DBG_INSTANTIATE_ZONES(initialZones,modname,opt1,opt2) \
75     DBGPARAM dpCurSettings =                \
76 {                                           \
77     TEXT(modname),                          \
78     {                                       \
79     TEXT("FUNCTION"),           /* 0  */    \
80     TEXT("CLASS1"),             /* 1  */    \
81     TEXT("CLASS2"),             /* 2  */    \
82     TEXT("CLASS3"),             /* 3  */    \
83     TEXT("CLASS4"),             /* 4  */    \
84     TEXT("CLASS5"),             /* 5  */    \
85     TEXT("SERVICES ERRORS"),	/* 6  */    \
86     TEXT("CRITICAL ERRORS"),    /* 7  */    \
87     TEXT("Unknown"),            /* 8  */    \
88     TEXT("Unknown"),            /* 9  */    \
89     TEXT("Unknown"),            /* 10 */    \
90     TEXT("Unknown"),            /* 11 */    \
91     TEXT("Unknown"),            /* 12 */    \
92     TEXT("Unknown"),            /* 13 */    \
93     TEXT(opt1),                 /* 14 */    \
94     TEXT(opt2),                 /* 15 */    \
95     },                                      \
96     (initialZones)                          \
97 };
98 extern DSP_STATUS DBG_SetGT_DBG();
99 extern DBGPARAM dpCurSettings;
100 
101 #define DBG_SetGT() DBG_SetGT_DBG()
102 
103 #endif				/* ifndef LINUX */
104 
105 #endif				/*ifndef _DBG_ZONES_H_ */
106