OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [compat/] [uitron/] [current/] [cdl/] [mempoolfixed.cdl] - Blame information for rev 817

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      mempoolfixed.cdl
4
#
5
#      uITRON fixed memory pool related configuration data
6
#
7
# ====================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      jskov
43
# Original data:  hmt
44
# Contributors:
45
# Date:           1999-07-07
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_option CYGNUM_UITRON_MEMPOOLFIXED {
52
    display       "Number of fixed-size memorypools"
53
    flavor        data
54
    legal_values  1 to 65535
55
    default_value 3
56
    description   "
57
        The number of uITRON Fixed-Size
58
        Memorypools present in the system.
59
        Valid Fixed-Size Memorypool IDs will range
60
        from 1 to this value."
61
}
62
cdl_component CYGPKG_UITRON_MEMPOOLFIXED_CREATE_DELETE {
63
    display       "Support create and delete"
64
    flavor        bool
65
    default_value 1
66
    active_if     (0 < CYGNUM_UITRON_MEMPOOLFIXED)
67
    description   "
68
        Support fixed-size memory pool
69
        create and delete operations
70
        (cre_mpf, del_mpf).
71
        Otherwise all fixed mempools are created,
72
        up to the number specified above."
73
 
74
    cdl_option CYGNUM_UITRON_MEMPOOLFIXED_INITIALLY {
75
        display       "Number of fixed mempools created initially"
76
        flavor        data
77
        legal_values  0 to 65535
78
        default_value 3
79
        description   "
80
            The number of fixed mempools initially created.
81
            This number should not be more than the number
82
            of fixed mempools in the system, though setting
83
            it to a large value to mean 'all' is acceptable.
84
            Initially, only fixed mempools numbered from
85
            1 to this number exist;
86
            higher numbered ones must be created before use.
87
            Whilst all mempools must be initialized to tell
88
            the system what memory to use for each pool,
89
            it is only useful to initialize the blocksize of
90
            fixed mempools up to this number;
91
            the blocksize for higher numbered ones
92
            will be defined when they are created."
93
    }
94
}
95
cdl_option CYGDAT_UITRON_MEMPOOLFIXED_EXTERNS {
96
    display       "Externs for initialization"
97
    flavor        data
98
    default_value {"static char fpool1[ 2000 ], \\\n\
99
                                fpool2[ 2000 ], \\\n\
100
                                fpool3[ 2000 ];"}
101
    description   "
102
        Fixed mempool initializers may refer to external
103
        objects such as memory for the pool to manage.
104
        Use this option to define or declare any external
105
        objects needed by the pool's static initializer below.
106
        Example: create some memory for a mempool using
107
        'static char fpool1\[2000\];'
108
        to set up a chunk of memory of 2000 bytes.
109
        Note: this option is invoked in the 'outermost' context
110
        of C++ source, where global/static objects are created;
111
        it should contain valid, self-contained, C++ source."
112
}
113
cdl_option CYGDAT_UITRON_MEMPOOLFIXED_INITIALIZERS {
114
    display       "Static initializers"
115
    flavor        data
116
    default_value {"CYG_UIT_MEMPOOLFIXED( fpool1, 2000,  20 ), \\\n\
117
                    CYG_UIT_MEMPOOLFIXED( fpool2, 2000, 100 ), \\\n\
118
                    CYG_UIT_MEMPOOLFIXED( fpool3, 2000, 500 ),"}
119
    description   "
120
        Fixed block memory pools should be statically
121
        initialized: enter a list of initializers
122
        separated by commas, one per line.
123
        An initializer is
124
        'CYG_UIT_MEMPOOLFIXED(ADDR,SIZE,BLOCK)'
125
        where addr is the address of memory to manage,
126
        size is the total size of that memory, and
127
        block is the block size for allocation by the pool.
128
        If create and delete operations are supported,
129
        initializers of the form
130
        'CYG_UIT_MEMPOOLFIXED_NOEXS(ADDR,SIZE)' should be
131
        used for pools which are not initially created, to tell
132
        the system what memory to use for each pool.
133
        Note: this option is invoked in the context of a
134
        C++ array initializer, between curly brackets.
135
        Ensure that the number of initializers here exactly
136
        matches the total number of fixed pools specified."
137
}

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.