dbreg.h 5.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
/*
 * dbreg.h
 *
 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
 *
 * Copyright (C) 2005-2006 Texas Instruments, Inc.
 *
 * This package is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */


/*
 *  ======== dbreg.h ========
 *  Purpose:
 *      Registry keys for use in Linux.  This is the clearinghouse for
 *      registry definitions, hopefully eliminating overlapping between
 *      modules.
 *
 *! Revision History:
 *! ================
 *! 10-Apr-2003 vp:  Added macro for subkey TCWORDSWAP.
 *! 21-Mar-2003 sb:  Added macro for subkey SHMSize
 *! 27-Aug-2001 jeh  Added WSXREG_LOADERFILENAME.
 *! 13-Feb-2001 kc:  DSP/BIOS Bridge name updates.
 *! 29-Nov-2000 rr:  Added WSXREG_DSPTYPE_55 as 6.
 *! 06-Sep-2000 jeh: Added WSXREG_CHNLOFFSET, WSXREG_NUMCHNLS,
 *!                  WSXREG_CHNLBUFSIZE.
 *! 26-Aug-2000 rr:  MEMBASE expanded to 9 entries.
 *! 26-Jul-2000 rr:  Added WSXREG_DCDNAME for the DCD Dll name. It will
 *!                  live under WSXREG_WINSPOXCONFIG.
 *! 17-Jul-2000 rr:  REG_MGR_OBJECT and REG_DRV_OBJECT defined. They
 *!                  are stored in the Registrty under WSXREG_WINSPOXCONFIG
 *!                  when they are created in DSP_Init. WSXREG_DEVOBJECT
 *!                  and WSXREG_MGROBJECT defined.
 *! 11-Dec-1999 ag:  Renamed Isa to IsaBus due to conflict with ceddk.h.
 *! 12-Nov-1999 rr:  New Registry Defnitions.
 *! 15-Oct-1999 rr:  New entry for DevObject created. WSXREG_DEVOBJECT
 *!                  under WSXREG_DDSPDRIVERPATH
 *! 10-Nov-1997 cr:  Added WSXREG_INFPATH, WSXREG_WINDEVICEPATH,
 *!                  WSXREG_WINCURVERSION
 *! 21-Oct-1997 cr:  Added WSXREG_BUSTYPE.
 *! 08-Sep-1997 cr:  Added WSXREG_SERVICES, WSXREG_SERVICENAME and
 *!                  WSXREG_CLASSINDEX.
 *! 30-Aug-1997 cr:  Added WSXREG_SOFTWAREPATHNT & WSXREG_WBCLASSGUID.
 *! 24-Mar-1997 gp:  Added MAXCHIPINFOSUBKEY def.
 *! 18-Feb-1997 cr:  Changed Version1.1 -> Version1.0
 *! 12-Feb-1997 cr:  Changed WinSPOX -> WinBRIDGE.
 *! 11-Dec-1996 gp:  Added Perf key name in WinSPOX Config.
 *! 22-Jul-1996 gp:  Added Trace key name.
 *! 30-May-1996 cr:  Created.
 */

#ifndef DBREG_
#define DBREG_ 1	/* Defined as "1" so InstallShield programs compile. */

#define REG_MGR_OBJECT      1
#define REG_DRV_OBJECT      2
/* general registry definitions */
#define MAXREGPATHLENGTH    255	/* Max registry path length. Also the
				   max registry value length. */
#define DSPTYPE_55          6	/* This is the DSP Chip type for 55 */
#define DSPTYPE_64          0x99
#define IVA_ARM7            0x97    /* This is the DSP Chip type for IVA/ARM7 */

#define DSPPROCTYPE_C55		5510
#define DSPPROCTYPE_C64		6410
#define IVAPROCTYPE_ARM7	470
/* registry */
#define DEVNODESTRING    "DevNode"	/* u32 devnode */
#define CONFIG           "Software\\TexasInstruments\\DirectDSP\\Config"
#define DRVOBJECT        "DrvObject"
#define MGROBJECT        "MgrObject"
#define CLASS            "Device"	/*  device class */
#define TRACE            "Trace"	/* GT Trace settings.  */
#define PERFR            "Perf"	/* Enable perf bool.  */
#define ROOT             "Root"	/*  root dir */

/* MiniDriver related definitions */
/* The following definitions are under "Drivers\\DirectDSP\\Device\\XXX "
 * Where XXX is the device or board name */

#define WMDFILENAME      "MiniDriver"	/* WMD entry name */
#define CHIPTYPE         "ChipType"	/* Chip type */
#define CHIPNUM          "NumChips"	/* Number of chips */
#define NUMPROCS         "NumOfProcessors"	/* Number of processors */
#define DEFEXEC          "DefaultExecutable"	/* Default executable */
#define AUTOSTART        "AutoStart"	/* Statically load flag */
#define IVAAUTOSTART     "IvaAutoStart"	/* Statically load flag */
#define BOARDNAME        "BoardName"	/* Name of the Board */
#define UNITNUMBER       "UnitNumber"	/* Unit # of the Board */
#define BUSTYPE          "BusType"	/* Bus type board is on */
#define BUSNUMBER        "BusNumber"	/* Bus number board is on */
#define CURRENTCONFIG    "CurrentConfig"	/* Current resources */
#define PCIVENDEVID      "VendorDeviceId"	/* The board's id */
#define INFPATH          "InfPath"	/* wmd's inf filename */
#define DEVOBJECT        "DevObject"
#define ZLFILENAME       "ZLFileName"	/* Name of ZL file */
#define WORDSIZE         "WordSize"	/* NumBytes in DSP Word */
#define SHMSIZE          "SHMSize"	/* Size of SHM reservd on MPU */
#define IVAEXTMEMSIZE    "IVAEXTMEMSize"	/* IVA External Memeory size  */
#define TCWORDSWAP       "TCWordSwap"	/* Traffic Contoller Word Swap */
#define DSPRESOURCES     "DspTMSResources"	/* C55 DSP resurces on OMAP */
#define IVA1RESOURCES    "ARM7IvaResources"	/* ARM7 IVA resurces on OMAP */
#define PHYSMEMPOOLBASE  "PhysicalMemBase"   /* Physical mem passed to driver */
#define PHYSMEMPOOLSIZE  "PhysicalMemSize"   /* Physical mem passed to driver */

#endif				/* DBREG_ */