Home | History | Annotate | Download | only in inc
      1 /*
      2  *  Copyright 2001-2008 Texas Instruments - http://www.ti.com/
      3  *
      4  *  Licensed under the Apache License, Version 2.0 (the "License");
      5  *  you may not use this file except in compliance with the License.
      6  *  You may obtain a copy of the License at
      7  *
      8  *     http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  *  Unless required by applicable law or agreed to in writing, software
     11  *  distributed under the License is distributed on an "AS IS" BASIS,
     12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  *  See the License for the specific language governing permissions and
     14  *  limitations under the License.
     15  */
     16 
     17 /*
     18  *  ======== dbg_zones.h ========
     19  *  DSP-BIOS Bridge driver support functions for TI OMAP processors.
     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