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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [io/] [flash/] [v2_0/] [cdl/] [io_flash.cdl] - Blame information for rev 27

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

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      io_flash.cdl
4
#
5
#      eCos IO 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 Red Hat, 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 version.
16
##
17
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20
## for more details.
21
##
22
## You should have received a copy of the GNU General Public License along
23
## with eCos; if not, write to the Free Software Foundation, Inc.,
24
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
##
26
## As a special exception, if other files instantiate templates or use macros
27
## or inline functions from this file, or you compile this file and link it
28
## with other works to produce a work based on this file, this file does not
29
## by itself cause the resulting work to be covered by the GNU General Public
30
## License. However the source code for this file must still be made available
31
## in accordance with section (3) of the GNU General Public License.
32
##
33
## This exception does not invalidate any other reasons why a work based on
34
## this file might be covered by the GNU General Public License.
35
##
36
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
## at http://sources.redhat.com/ecos/ecos-license/
38
## -------------------------------------------
39
#####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      gthomas
44
# Original data:  gthomas
45
# Contributors:
46
# Date:           2000-07-06
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
cdl_package CYGPKG_IO_FLASH {
53
    display       "FLASH device drivers"
54
    include_dir   cyg/io
55
    description   "
56
        This option enables drivers for basic I/O services on
57
        flash devices."
58
    requires CYGPKG_ISOINFRA
59
    requires CYGINT_ISO_STRING_STRFUNCS
60
 
61
    compile       flash.c
62
 
63
    define_proc {
64
        puts $::cdl_header "#include "
65
        puts $::cdl_header "#ifdef CYGDAT_IO_FLASH_DEVICE_HEADER"
66
        puts $::cdl_header "# include CYGDAT_IO_FLASH_DEVICE_HEADER"
67
        puts $::cdl_header "#endif "
68
    }
69
 
70
    cdl_option CYGNUM_FLASH_WORKSPACE_SIZE {
71
        display       "Extra memory required by FLASH device drivers"
72
        flavor        data
73
        default_value 0x1000
74
        description   "
75
            Use this option to control how much extra memory is used
76
            by the FLASH drivers to perform certain operations. This
77
            memory is used to hold driver functions in RAM (for platforms
78
            which require it).  The value should thus be large enough
79
            to hold any such driver.  Reducing this value will make
80
            more RAM available to general programs."
81
    }
82
 
83
    cdl_interface CYGHWR_IO_FLASH_DEVICE {
84
        display       "Hardware FLASH device drivers"
85
        description   "
86
            This option enables the hardware device drivers
87
            for the current platform."
88
    }
89
 
90
    cdl_interface CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM {
91
        display       "Hardware FLASH device drivers are not in RAM"
92
        flavor        booldata
93
        description   "
94
            This option makes the IO driver copy the device
95
            driver functions to RAM before calling them. Newer
96
            drivers should make sure that the functions are
97
            linked to RAM by putting them in .2ram sections."
98
    }
99
 
100
    cdl_interface CYGHWR_IO_FLASH_BLOCK_LOCKING {
101
        display       "Hardware can support block locking"
102
        flavor        booldata
103
        description   "
104
            This option will be enabled by devices which can support
105
            locking (write-protection) of individual blocks."
106
    }
107
 
108
    cdl_option CYGSEM_IO_FLASH_VERIFY_PROGRAM {
109
        display          "Verify data programmed to flash"
110
        flavor           bool
111
        default_value    1
112
        description      "
113
           Selecting this option will cause verification of data
114
           programmed to flash."
115
    }
116
    cdl_option CYGSEM_IO_FLASH_SOFT_WRITE_PROTECT {
117
        display          "Platform has flash soft DIP switch write-protect"
118
        flavor           bool
119
        default_value    0
120
        description      "
121
           Selecting this option will cause the state of a hardware jumper or
122
           dipswitch to be read by software to determine whether the flash is
123
           write-protected or not."
124
    }
125
    cdl_component CYGPKG_IO_FLASH_BLOCK_DEVICE {
126
        display         "Instantiate in I/O block device API"
127
        flavor          bool
128
        active_if       CYGPKG_IO
129
        default_value   0
130
        compile         -library=libextras.a flashiodev.c
131
        description     "
132
                Provides a block device accessible using the standard I/O
133
                API ( cyg_io_read() etc. )"
134
 
135
        cdl_component CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1 {
136
                display       "Name of flash device 1 block device"
137
                flavor        data
138
                default_value { "\"/dev/flash1\"" }
139
 
140
            cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_1 {
141
                display         "Start offset from flash base"
142
                flavor          data
143
                default_value   0x100000
144
                description     "
145
                    This gives the offset from the base of flash which this
146
                    block device corresponds to."
147
            }
148
            cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_1 {
149
                display         "Length"
150
                flavor          data
151
                default_value   0x100000
152
                description     "
153
                    This gives the length of the region of flash given over
154
                    to this block device."
155
            }
156
        }
157
    }
158
}

powered by: WebSVN 2.1.0

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