Mercurial > ecos-v3_0-branch
view packages/fs/ram/current/cdl/ramfs.cdl @ 115:6ed91473a1cd ecos-sw-2000-08-21
Merge from eCos master repository on 2000-08-21-22:40:54-BST
| author | jlarmour |
|---|---|
| date | Fri, 25 Aug 2000 17:32:38 +0000 |
| parents | |
| children | e0c0827131d1 |
line wrap: on
line source
# ==================================================================== # # ramfs.cdl # # RAM Filesystem configuration data # # ==================================================================== #####COPYRIGHTBEGIN#### # # ------------------------------------------- # The contents of this file are subject to the Red Hat eCos Public License # Version 1.1 (the "License"); you may not use this file except in # compliance with the License. You may obtain a copy of the License at # http://www.redhat.com/ # # Software distributed under the License is distributed on an "AS IS" # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the # License for the specific language governing rights and limitations under # the License. # # The Original Code is eCos - Embedded Configurable Operating System, # released September 30, 1998. # # The Initial Developer of the Original Code is Red Hat. # Portions created by Red Hat are # Copyright (C) 1998, 1999, 2000 Red Hat, Inc. # All Rights Reserved. # ------------------------------------------- # #####COPYRIGHTEND#### # ==================================================================== ######DESCRIPTIONBEGIN#### # # Author(s): nickg # Original data: nickg # Contributors: # Date: 2000-08-01 # #####DESCRIPTIONEND#### # # ==================================================================== cdl_package CYGPKG_FS_RAM { display "RAM filesystem" doc doc/index.html include_dir cyg/ramfs requires CYGPKG_IO_FILEIO requires CYGPKG_ISOINFRA requires CYGPKG_ERROR requires CYGINT_ISO_ERRNO requires CYGINT_ISO_ERRNO_CODES compile -library=libextras.a ramfs.c # ---------------------------------------------------------------------- # Simple allocation mechanism using malloc() cdl_component CYGPKG_FS_RAM_SIMPLE { display "Simple, malloc() based, implementation" requires { CYGINT_ISO_MALLOC != 0 } default_value 1 active_if !CYGPKG_FS_RAM_BLOCKS cdl_option CYGNUM_RAMFS_REALLOC_INCREMENT { display "Size of file data storage increment" flavor data default_value 256 legal_values 64 to 32768 description "This option controls the size of the increment to a file data storage block." } } # ---------------------------------------------------------------------- # Block based allocation, using either malloc() or a private block # pool. cdl_component CYGPKG_FS_RAM_BLOCKS { display "Block-based RAM filesystem allocation" default_value 0 active_if !CYGPKG_FS_RAM_SIMPLE cdl_option CYGNUM_RAMFS_BLOCK_SIZE { display "Size of file data storage block" flavor data default_value 256 legal_values 64 to 32768 description "This option controls the size of a data storage block." } cdl_option CYGNUM_RAMFS_BLOCKS_DIRECT { display "Directly referenced data storage blocks" flavor data default_value 8 legal_values 0 to 32 description "This option controls the number of data storage blocks that are referenced directly from a file or directory node." } cdl_option CYGNUM_RAMFS_BLOCKS_INDIRECT1 { display "Single level indirect data storage blocks" flavor data default_value 1 legal_values 0 to 32 description "This option controls the number of single level indirect storage blocks that are referenced from a file or directory node." } cdl_option CYGNUM_RAMFS_BLOCKS_INDIRECT2 { display "Two level indirect data storage blocks" flavor data default_value 1 legal_values 0 to 32 description "This option controls the number of two level indirect storage blocks that are referenced from a file or directory node." } cdl_component CYGPKG_FS_RAM_BLOCKS_ARRAY { display "Use block array rather than malloc()" default_value 0 description "This option controls whether the blocks are allocated from an array of blocks rather from the heap using malloc()." cdl_option CYGPKG_FS_RAM_BLOCKS_ARRAY_EXTERN { display "Block array is external" default_value 0 description "This option controls whether the block array is defined by the RAMFS package or whether it is provided by an external component. The latter option may be useful when the RAM file system is to be put into a special memory area." } cdl_option CYGPKG_FS_RAM_BLOCKS_ARRAY_NAME { display "Name of external block array" active_if CYGPKG_FS_RAM_BLOCKS_ARRAY_EXTERN flavor data default_value "cyg_ramfs_block_array" description "This option controls what the symbol name of the external block array will be." } cdl_option CYGNUM_FS_RAM_BLOCKS_ARRAY_SIZE { display "Size of blocks array" flavor data default_value 128 legal_values 1 to 9999999999 description "The number of blocks in the array. The total size of the array will be this value times the block size." } } } cdl_option CYGNUM_RAMFS_DIRENT_SIZE { display "Directory entry size" flavor data default_value 32 legal_values 16 to { CYGNUM_RAMFS_BLOCK_SIZE ? CYGNUM_RAMFS_BLOCK_SIZE : 128 } description "This option controls the number of two level indirect storage blocks that are referenced from a file or directory node." } # ---------------------------------------------------------------- # Tests cdl_option CYGPKG_FS_RAM_TESTS { display "RAM FS tests" flavor data no_define calculated { "tests/fileio1.c" } description " This option specifies the set of tests for the RAM FS package." } } # End of ramfs.cdl
