1    /* 
     2     * Copyright (c) 2009, Texas Instruments Incorporated
     3     * All rights reserved.
     4     *
     5     * Redistribution and use in source and binary forms, with or without
     6     * modification, are permitted provided that the following conditions
     7     * are met:
     8     *
     9     * *  Redistributions of source code must retain the above copyright
    10     *    notice, this list of conditions and the following disclaimer.
    11     *
    12     * *  Redistributions in binary form must reproduce the above copyright
    13     *    notice, this list of conditions and the following disclaimer in the
    14     *    documentation and/or other materials provided with the distribution.
    15     *
    16     * *  Neither the name of Texas Instruments Incorporated nor the names of
    17     *    its contributors may be used to endorse or promote products derived
    18     *    from this software without specific prior written permission.
    19     *
    20     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    21     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    22     * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    23     * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
    24     * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    25     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    26     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
    27     * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    28     * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
    29     * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
    30     * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31     * 
    32     */
    33    
    34    /*!
    35     *  ======== Settings ========
    36     *  Global OS Abstract Layer Configuration
    37     */
    38    @Template("./Settings.xdt")
    39    
    40    metaonly module Settings inherits ti.sdo.ce.osal.IOsal
    41    {
    42        /*!
    43         *  ======== defaultMemSegId ========
    44         *  Default ID of the memory segment from which to allocate space
    45         *  (for Memory_alloc/free() calls, as opposed to Memory_segAlloc/Free()).
    46         *  Typically it's the segment where all other code and data go.
    47         *
    48         *  If left as "null", the system will try to find a BIOS segment named
    49         *  "DDR" or "DDR2" and assign its name to this field. In the future
    50         *  this auto-find feature may be removed, so it's best that user .cfg
    51         *  script set this value directly to what they know is appropriate
    52         *  segment.
    53         */
    54        config String defaultMemSegId = null;
    55    
    56        /*!
    57         *  ======== enableLogging ========
    58         *  If set to true, enable data generation necessary for CE benchmarking
    59         *  analysis.
    60         */
    61        config bool enableLogging = true;
    62    
    63        /*!
    64         *  ======== traceBufferSize ========
    65         *  Size of the server trace buffer, in MAUs.
    66         *
    67         *  The server trace buffer is a circular buffer of characters written
    68         *  to by clients of ti.sdo.ce.osal.Trace (and ti.sdo.utils.trace.GT) and
    69         *  read by the Engine_*Trace() methods.
    70         *
    71         *  All the trace data in the target memory is stored into a globally
    72         *  visible character buffer
    73         *       Char Global_traceBuffer[ <traceBufferSize> ];
    74         */
    75        config Int traceBufferSize = 32768;
    76    
    77        /*!
    78         *  ======== logName ========
    79         *  Name of buffer used for capturing benchmarking data.
    80         *
    81         *  In BIOS environments, this is the name of the BIOS LOG.
    82         */
    83        config String logName = "ti_sdo_ce_osal_LOG_Buffer";
    84    
    85        /*!
    86         *  ======== logSize ========
    87         *  Size of buffer used for capturing benchmarking data.
    88         */
    89        config int logSize = 256;
    90    
    91        /*!
    92         *  ======== logType ========
    93         *  Type of buffer used for capturing benchmarking data.
    94         *
    95         *  This can be either "fixed" or "circular".
    96         */
    97        config String logType = "circular";
    98    
    99        /*!
   100         *  ======== logSeg ========
   101         *  Memory segment for the buffer used for capturing benchmarking data.
   102         */
   103        config String logSeg = null;
   104    
   105        /*!
   106         *  ======== debug ========
   107         *  Enable the debug profile of the osal BIOS module.
   108         */
   109        config Bool debug = false;
   110    
   111        override bool supportsLogging();
   112    }
   113    /*
   114     *  @(#) ti.sdo.ce.osal.bios; 2, 0, 1,139; 12-18-2009 17:43:21; /db/atree/library/trees/ce/ce-o06x/src/
   115     */
   116