#   ============================================================================
#   @file   CFG_Davinci.TXT
#
#   @path   $(DSPLINK)/config/all/
#
#   @desc   This file contains the configuration database for DSP/BIOS LINK
#           on Davinci platform.
#
#   @ver    01.30.07
#   ============================================================================
#   Copyright (c) Texas Instruments Incorporated 2002-2006
#
#   Use of this software is controlled by the terms and conditions found in the
#   license agreement under which this software has been supplied or provided.
#   ============================================================================


[DRIVER]
NAME            | S |   DSP/BIOS LINK      # Driver name
COMPONENTS      | N |   2                  # Configuration being used
QUEUELENGTH     | N |   16                 # Queue length for the CHNL driver
NUMDSPS         | N |   1                  # Number of DSPs in the system
NUMMEMTABLES    | N |   1                  # Number of memory tables
NUMIPSTABLE     | N |   1                  # Number of IPS tables
NUMPOOLS        | N |   1                  # Number of POOLs
NUMDATATABLES   | N |   1                  # Number of data tables
MAXMSGQS        | N |   130                # Maximum MSGQs that can be opened
NUMMQTS         | N |   1                  # Number of MQTs
PROBERTCID      | N |   3                  # Real Time Clock ID for PROBE
PROBEINTID      | N |   33                 # Interrupt ID for PROBE
LOG_OBJECT      | A |   trace              # Log object for logging
[/DRIVER]


[GPP]
NAME            | S |   ARM9               # Name of the GPP
[/GPP]


[DSP0]
NAME            | S |   Gem                # Name of the DSP
ARCHITECTURE    | E |   DspArch_C64x       # DSP architecture
INTERFACE       | A |   DAVINCI_Interface  # DSP interface table
LOADER          | A |   COFF_Interface     # Loader interface table
LOADSYMBOLS     | B |   FALSE              # Load symbols from DSP executable
AUTOSTART       | B |   FALSE              # Autostart the DSP (Not supported)
DOPOWERCTRL     | B |   FALSE              # Link does the Power Ctrl of DSP.
EXECUTABLE      | S |   DEFAULT.OUT        # Executable for autostart
RESUMEADDR      | H |   0x83F00020         # Resume address
RESETVECTOR     | H |   0x83F00000         # Reset Vector for the DSP
RESETCODESIZE   | H |   0x80               # Size of code at DSP Reset Vector
MADUSIZE        | N |   1                  # DSP Minimum Addressable Data Unit
ENDIAN          | N |   3                  # DSP Endianism
MEMENTRIES      | N |   5                  # Number of entries in memory table
MEMTABLEID      | N |   0                  # ID of the memory table used
LINKDRVID       | N |   0                  # ID of the link driver used
NUMDATADRV      | N |   1                  # Number of data drivers supported
DATATABLEID     | N |   0                  # ID of the data driver table
MQTID           | N |   0                  # ID of the MQT
LOG_OBJECT      | A |   trace              # Log object for logging
[/DSP0]


[MEMTABLE0]

[MEMTABLE0]

[0]
ENTRY           | N |   0                  # Entry number
ABBR            | S |   DSPLINKMEM         # Abbreviation of the table name
ADDRDSPVIRTUAL  | H |   0x83F00080         # DSP virtual address
ADDRPHYSICAL    | H |   0x83F00080         # Physical address
SIZE            | H |   0xFFF80            # Size of the memory region
MAPINGPP        | B |   TRUE               # Map in GPP address space?
[/0]

[1]
ENTRY           | N |   1                  # Entry number
ABBR            | S |   RESETCTRL          # Abbreviation of the table name
ADDRDSPVIRTUAL  | H |   0x83F00000         # DSP virtual address
ADDRPHYSICAL    | H |   0x83F00000         # Physical address
SIZE            | H |   0x00000080         # Size of the memory region
MAPINGPP        | B |   TRUE               # Map in GPP address space?
[/1]

[2]
ENTRY           | N |   2                  # Entry number
ABBR            | S |   DDR                # Abbreviation of the table name
ADDRDSPVIRTUAL  | H |   0x83C00000         # DSP virtual address
ADDRPHYSICAL    | H |   0x83C00000         # Physical address
SIZE            | H |   0x00300000         # Size of the memory region
MAPINGPP        | B |   TRUE               # Map in GPP address space?
[/2]

[3]
ENTRY           | N |   3                  # Entry number
ABBR            | S |   DSPIRAM            # Abbreviation of the table name
ADDRDSPVIRTUAL  | H |   0x11800000         # DSP virtual address
ADDRPHYSICAL    | H |   0x11800000         # Physical address
SIZE            | H |   0x10000            # Size of the memory region
MAPINGPP        | B |   TRUE               # Map in GPP address space?
[/3]

[4]
ENTRY           | N |   4                  # Entry number
ABBR            | S |   DSPL1DRAM          # Abbreviation of the table name
ADDRDSPVIRTUAL  | H |   0x11F04000         # DSP virtual address
ADDRPHYSICAL    | H |   0x11F04000         # Physical address
SIZE            | H |   0xC000             # Size of the memory region
MAPINGPP        | B |   TRUE               # Map in GPP address space?
[/4]

[/MEMTABLE0]


[POOLS]

[0]
NAME            | S |   SMA                # Name of the pool
ABBR            | S |   SMAPOOL            # Abbreviation of the pool name
FXN_INITIALIZE  | A |   SMAPOOL_Initialize # Initialize function for the pool
FXN_FINALIZE    | A |   SMAPOOL_Finalize   # Finalize function for the pool
INTERFACE       | A |   SMAPOOL_Interface  # Pool interface table
DSPID           | N |   0                  # DSP ID used by the pool (-1 if not needed)
MEMENTRY        | N |   0                  # Memory entry ID (-1 if not needed)
POOLSIZE        | H |   0x70000            # Size of the pool (-1 if not needed)
ARGUMENT1       | H |   0x0                # First Pool-specific argument
ARGUMENT2       | H |   0x0                # Second Pool-specific argument
[/0]

[/POOLS]


[LINKDRV0]

NAME            | S |   SHMDRV             # Name of the link driver
ABBR            | S |   SHMDRV             # Abbreviation of the link driver name
INTERFACE       | A |   SHMDRV_Interface   # Link driver interface table
MEMENTRY        | N |   0                  # Memory entry ID (-1 if not needed)
SIZE            | M |   SHMDRV_CTRL_SIZE   # Memory size needed from the mem entry
IPSENTRIES      | N |   1                  # Number of IPS supported
IPSTABLEID      | N |   0                  # ID of the IPS table used

[/LINKDRV0]


[IPSTABLE0]

[0]
NAME            | S |   SHMIPS             # Name of the Inter-Processor-Signaling component
ABBR            | S |   SHMIPS             # Abbreviation of the IPS name
FXN_INITIALIZE  | A |   SHMIPS_Initialize  # Initialize function for the IPS
FXN_FINALIZE    | A |   SHMIPS_Finalize    # Finalize function for the IPS
QUEUEPERCHANNEL | N |   1                  # Number of queued buffers per data channel
SIZE            | M |   SHMIPS_CTRL_SIZE   # Memory size needed from the mem entry
IRPSIZE         | M |   SHMIPS_IRP_SIZE    # Size of each IO Request Packet for data transfer
MEMENTRY        | N |   0                  # Memory entry ID (-1 if not needed)
ARGUMENT1       | N |   0                  # First IPS-specific argument
ARGUMENT2       | N |   0                  # Second IPS-specific argument
[/0]

[/IPSTABLE0]



[MQT0]

NAME            | S |   ZCPYMQT            # Name of the Message Queue Transport
ABBR            | S |   ZCPYMQT            # Abbreviation of the MQT name
INTERFACE       | A |   ZCPYMQT_Interface  # MQT Interface table
MEMENTRY        | N |   -1                 # Memory entry ID (-1 if not needed)
MAXMSGSIZE      | N |   -1                 # Maximum message size supported (-1 if no limit)
SIZE            | H |   0x0                # Memory size needed from the mem entry
ARGUMENT1       | H |   0x0                # First MQT-specific argument
ARGUMENT2       | H |   0x0                # Second MQT-specific argument

[/MQT0]


[DATADRV0]

[0]
NAME            | S |   ZCPYDATA           # Name of the HPI driver
ABBR            | S |   ZCPYDATA           # Abbreviation
BASECHANNELID   | N |   0                  # Base channel id for the driver
NUMCHANNELS     | N |   16                 # Number of channels supported
MAXBUFSIZE      | N |   16384              # Maximum size of buffer supported
INTERFACE       | A |   ZCPYDATA_Interface # Data transfer interface table
MEMENTRY        | N |   0                  # Memory entry ID (-1 if not needed)
POOLID          | N |   0                  # Pool id for allocating buffers
SIZE            | M |   ZCPYDATA_CTRL_SIZE # Size of the control structure
ARGUMENT1       | H |   0x0                # First data transfer driver specific argument
ARGUMENT2       | H |   0x0                # Second data transfer driver specific argument
[/0]

[/DATADRV0]

[LOG]
GD_MSGQ_PUT             | B | FALSE        # GPP->DSP MSG Transfer  - MSGQ_Put call.
GD_MSGQ_SND             | B | FALSE        # GPP->DSP MSG Transfer  - GPP sends interrupt.
GD_MSGQ_ISR             | B | FALSE        # GPP->DSP MSG Transfer  - DSP receives interrupt.
GD_MSGQ_QUE             | B | FALSE        # GPP->DSP MSG Transfer  - Message queued at DSP.
DG_MSGQ_PUT             | B | FALSE        # DSP->GPP MSG Transfer  - MSGQ_Put call.
DG_MSGQ_SND             | B | FALSE        # DSP->GPP MSG Transfer  - DSP sends interrupt.
DG_MSGQ_ISR             | B | FALSE        # DSP->GPP MSG Transfer  - GPP receives interrupt.
DG_MSGQ_QUE             | B | FALSE        # DSP->GPP MSG Transfer  - Message queued at GPP.
GD_CHNL_I_START         | B | FALSE        # GPP->DSP CHNL Transfer - Entring inside ISSUE call.
GD_CHNL_I_QUE           | B | FALSE        # GPP->DSP CHNL Transfer - Buffer is queued in internal structure on GPP.
GD_CHNL_I_COMPLETE      | B | FALSE        # GPP->DSP CHNL Transfer - ISSUE call completed.
GD_CHNL_XFER_START      | B | FALSE        # GPP->DSP CHNL Transfer - Initiating a buffer transfer by GPP.
GD_CHNL_XFER_PROCESSING | B | FALSE        # GPP->DSP CHNL Transfer - Actual transfer of buffer is going to take place.
GD_CHNL_XFER_COMPLETE   | B | FALSE        # GPP->DSP CHNL Transfer - Buffer transfer is complete.
GD_CHNL_R_START         | B | FALSE        # GPP->DSP CHNL Transfer - Entring RECLAIM call.
GD_CHNL_R_PEND          | B | FALSE        # GPP->DSP CHNL Transfer - Wait on a semaphore.
GD_CHNL_R_POST          | B | FALSE        # GPP->DSP CHNL Transfer - posting the Semaphore.
GD_CHNL_R_COMPLETE      | B | FALSE        # GPP->DSP CHNL Transfer - RECLAIM call completed.
DG_CHNL_I_QUE           | B | FALSE        # DSP->GPP CHNL Transfer - Buffer is queued in internal structure on DSP.
DG_CHNL_XFER_START      | B | FALSE        # DSP->GPP CHNL Transfer - Initiating a buffer transfer by DSP.
DG_CHNL_XFER_PROCESSING | B | FALSE        # DSP->GPP CHNL Transfer - Actual transfer of buffer is going to take place.
DG_CHNL_XFER_COMPLETE   | B | FALSE        # DSP->GPP CHNL Transfer - Buffer transfer is complete.
DG_CHNL_R_PEND          | B | FALSE        # DSP->GPP CHNL Transfer - Wait on a semaphore.
DG_CHNL_R_POST          | B | FALSE        # DSP->GPP CHNL Transfer - posting the Semaphore.
MSG_ID_R_START          | N | 10           # MSG ID range: lower limit
MSG_ID_R_END            | N | 20           # MSG ID range: upper limit
[/LOG]
