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 *  ======== dbreg.h ========
19 *  DSP-BIOS Bridge driver support functions for TI OMAP processors.
20 *  Purpose:
21 *      Registry keys for use in Linux.  This is the clearinghouse for
22 *      registry definitions, hopefully eliminating overlapping between
23 *      modules.
24 *
25 *! Revision History:
26 *! ================
27 *! 10-Apr-2003 vp:  Added macro for subkey TCWORDSWAP.
28 *! 21-Mar-2003 sb:  Added macro for subkey SHMSize
29 *! 27-Aug-2001 jeh  Added WSXREG_LOADERFILENAME.
30 *! 13-Feb-2001 kc:  DSP/BIOS Bridge name updates.
31 *! 29-Nov-2000 rr:  Added WSXREG_DSPTYPE_55 as 6.
32 *! 06-Sep-2000 jeh: Added WSXREG_CHNLOFFSET, WSXREG_NUMCHNLS,
33 *!                  WSXREG_CHNLBUFSIZE.
34 *! 26-Aug-2000 rr:  MEMBASE expanded to 9 entries.
35 *! 26-Jul-2000 rr:  Added WSXREG_DCDNAME for the DCD Dll name. It will
36 *!                  live under WSXREG_WINSPOXCONFIG.
37 *! 17-Jul-2000 rr:  REG_MGR_OBJECT and REG_DRV_OBJECT defined. They
38 *!                  are stored in the Registrty under WSXREG_WINSPOXCONFIG
39 *!                  when they are created in DSP_Init. WSXREG_DEVOBJECT
40 *!                  and WSXREG_MGROBJECT defined.
41 *! 11-Dec-1999 ag:  Renamed Isa to IsaBus due to conflict with ceddk.h.
42 *! 12-Nov-1999 rr:  New Registry Defnitions.
43 *! 15-Oct-1999 rr:  New entry for DevObject created. WSXREG_DEVOBJECT
44 *!                  under WSXREG_DDSPDRIVERPATH
45 *! 10-Nov-1997 cr:  Added WSXREG_INFPATH, WSXREG_WINDEVICEPATH,
46 *!                  WSXREG_WINCURVERSION
47 *! 21-Oct-1997 cr:  Added WSXREG_BUSTYPE.
48 *! 08-Sep-1997 cr:  Added WSXREG_SERVICES, WSXREG_SERVICENAME and
49 *!                  WSXREG_CLASSINDEX.
50 *! 30-Aug-1997 cr:  Added WSXREG_SOFTWAREPATHNT & WSXREG_WBCLASSGUID.
51 *! 24-Mar-1997 gp:  Added MAXCHIPINFOSUBKEY def.
52 *! 18-Feb-1997 cr:  Changed Version1.1 -> Version1.0
53 *! 12-Feb-1997 cr:  Changed WinSPOX -> WinBRIDGE.
54 *! 11-Dec-1996 gp:  Added Perf key name in WinSPOX Config.
55 *! 22-Jul-1996 gp:  Added Trace key name.
56 *! 30-May-1996 cr:  Created.
57 */
58
59#ifndef DBREG_
60#define DBREG_ 1		/* Defined as "1" so InstallShield programs compile. */
61
62#ifdef __cplusplus
63extern "C" {
64#endif
65
66#define REG_MGR_OBJECT      1
67#define REG_DRV_OBJECT      2
68/* general registry definitions */
69#define MAXREGPATHLENGTH    255	/* Max registry path length. Also the
70				   max registry value length. */
71#define DSPTYPE_55          6	/* This is the DSP Chip type for 55 */
72#define DSPTYPE_64          0x99
73#define IVA_ARM7          	0x97	/* This is the DSP Chip type for IVA/ARM7 */
74
75#define DSPPROCTYPE_C55		5510
76#define DSPPROCTYPE_C64		6410
77#define IVAPROCTYPE_ARM7	470
78/* registry */
79#define DEVNODESTRING    "DevNode"	/* DWORD devnode */
80#define CONFIG           "Software\\TexasInstruments\\DirectDSP\\Config"
81#define DRVOBJECT        "DrvObject"
82#define MGROBJECT        "MgrObject"
83#define CLASS            "Device"	/*  device class */
84#define TRACE            "Trace"	/* GT Trace settings.  */
85#define PERFR            "Perf"	/* Enable perf Bool.  */
86#define ROOT             "Root"	/*  root dir */
87
88/* MiniDriver related definitions */
89/* The following definitions are under "Drivers\\DirectDSP\\Device\\XXX "
90 * Where XXX is the device or board name
91 */
92
93#define WMDFILENAME      "MiniDriver"	/* WMD entry name */
94#define CHIPTYPE         "ChipType"	/* Chip type */
95#define CHIPNUM          "NumChips"	/* Number of chips */
96#define NUMPROCS         "NumOfProcessors"	/* Number of processors */
97#define DEFEXEC          "DefaultExecutable"	/* Default executable */
98#define AUTOSTART        "AutoStart"	/* Statically load flag */
99#define IVAAUTOSTART     "IvaAutoStart"	/* Statically load flag */
100#define BOARDNAME        "BoardName"	/* Name of the Board */
101#define UNITNUMBER       "UnitNumber"	/* Unit # of the Board */
102#define BUSTYPE          "BusType"	/* Bus type board is on */
103#define BUSNUMBER        "BusNumber"	/* Bus number board is on */
104#define CURRENTCONFIG    "CurrentConfig"	/* Current resources */
105#define PCIVENDEVID      "VendorDeviceId"	/* The board's id */
106#define INFPATH          "InfPath"	/* wmd's inf filename */
107#define DEVOBJECT        "DevObject"
108#define ZLFILENAME       "ZLFileName"	/* Name of ZL file */
109#define WORDSIZE         "WordSize"	/* NumBytes in DSP Word */
110#define SHMSIZE          "SHMSize"	/* Size of SHM reservd on MPU */
111#define IVAEXTMEMSIZE    "IVAEXTMEMSize"	/* IVA External Memeory size  */
112#define TCWORDSWAP       "TCWordSwap"	/* Traffic Contoller Word Swap */
113#define DSPRESOURCES     "DspTMSResources"	/* C55 DSP resurces on OMAP */
114#define IVA1RESOURCES    "ARM7IvaResources"	/* ARM7 IVA resurces on OMAP */
115#define PHYSMEMPOOLBASE  "PhysicalMemBase"	/* Physical mem passed to driver */
116#define PHYSMEMPOOLSIZE  "PhysicalMemSize"	/* Physical mem passed to driver */
117#ifdef __cplusplus
118}
119#endif
120#endif				/* DBREG_ */
121