]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/serial/arm/at91/v2_0/cdl/ser_arm_at91.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / serial / arm / at91 / v2_0 / cdl / ser_arm_at91.cdl
1 # ====================================================================
2 #
3 #      ser_arm_at91.cdl
4 #
5 #      eCos serial Atmel AT91 (ARM) 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 # Contributors:   tkoeller
45 # Date:           2001-07-24
46 #
47 #####DESCRIPTIONEND####
48 #
49 # ====================================================================
50
51
52 cdl_package CYGPKG_IO_SERIAL_ARM_AT91 {
53     display       "Atmel AT91 serial device drivers"
54
55     parent        CYGPKG_IO_SERIAL_DEVICES
56     active_if     CYGPKG_IO_SERIAL
57     active_if     CYGPKG_HAL_ARM_AT91
58
59     requires      CYGPKG_ERROR
60     include_dir   cyg/io
61     include_files ; # none _exported_ whatsoever
62     description   "
63            This option enables the serial device drivers for the
64            Atmel AT91."
65     
66     implements    CYGINT_IO_SERIAL_BLOCK_TRANSFER
67
68     compile       -library=libextras.a   at91_serial.c
69
70     define_proc {
71         puts $::cdl_system_header "/***** serial driver proc output start *****/"
72         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_DEVICE_HEADER <pkgconf/io_serial_arm_at91.h>"
73         puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
74     }
75
76 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_SERIAL0 {
77     display       "Atmel AT91 serial port 0 driver"
78     flavor        bool
79     default_value 0
80     description   "
81         This option includes the serial device driver for the Atmel AT91 
82         port 0 (serial A)."
83
84     cdl_option CYGDAT_IO_SERIAL_ARM_AT91_SERIAL0_NAME {
85         display       "Device name for Atmel AT91 serial port 0 driver"
86         flavor        data
87         default_value {"\"/dev/ser0\""}
88         description   "
89             This option specifies the name of the serial device for the 
90             Atmel AT91 port 0."
91     }
92
93     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL0_BAUD {
94         display       "Baud rate for the Atmel AT91 serial port 0 driver"
95         flavor        data
96         legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
97                       4800 7200 9600 14400 19200 38400 57600 115200 230400
98         }
99         default_value 38400
100         description   "
101             This option specifies the default baud rate (speed) for the 
102             Atmel AT91 port 0."
103     }
104
105     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL0_BUFSIZE {
106         display       "Buffer size for the Atmel AT91 serial port 0 driver"
107         flavor        data
108         legal_values  0 to 8192
109         default_value 128
110         description   "
111             This option specifies the size of the internal buffers used 
112             for the Atmel AT91 port 0."
113     }
114     
115     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL0_RCV_CHUNK_SIZE {
116         display       "Receive data chunk size"
117         flavor        data
118         legal_values  1 to 65519
119         default_value 1
120         description   "
121             This parameter can be used to reduce the number of interrupts
122             that must be processed by the driver. An interrupt will only
123             be generated if either this many data bytes have been received
124             or the receiver has been idle for some time. This reduces
125             overall system load at the expense of making the driver less
126             responsive and using slightly more memory for buffering data.
127             Setting this parameter to 1 will give standard behavior."
128     }
129 }
130
131 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_SERIAL1 {
132     display       "Atmel AT91 serial port 1 driver"
133     flavor        bool
134     default_value 1
135     description   "
136         This option includes the serial device driver for the Atmel AT91 
137         port 1 (serial B)."
138
139     cdl_option CYGDAT_IO_SERIAL_ARM_AT91_SERIAL1_NAME {
140         display       "Device name for Atmel AT91 serial port 1 driver"
141         flavor        data
142         default_value {"\"/dev/ser1\""}
143         description   "
144             This option specifies the name of the serial device for the 
145             Atmel AT91 port 1."
146     }
147
148     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL1_BAUD {
149         display       "Baud rate for the Atmel AT91 serial port 1 driver"
150         flavor        data
151         legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
152                       4800 7200 9600 14400 19200 38400 57600 115200 230400
153         }
154         default_value 38400
155         description   "
156             This option specifies the default baud rate (speed) for the
157             Atmel AT91 port 1."
158     }
159
160     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL1_BUFSIZE {
161         display       "Buffer size for the Atmel AT91 serial port 1 driver"
162         flavor        data
163         legal_values  0 to 8192
164         default_value 128
165         description   "
166             This option specifies the size of the internal buffers used 
167             for the Atmel AT91 port 1."
168     }
169     
170     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL1_RCV_CHUNK_SIZE {
171         display       "Receive data chunk size"
172         flavor        data
173         legal_values  1 to 65519
174         default_value 1
175         description   "
176             This parameter can be used to reduce the number of interrupts
177             that must be processed by the driver. An interrupt will only
178             be generated if either this many data bytes have been received
179             or the receiver has been idle for some time. This reduces
180             overall system load at the expense of making the driver less
181             responsive and using slightly more memory for buffering data.
182             Setting this parameter to 1 will give standard behavior."
183     }
184 }
185
186 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_SERIAL2 {
187     display       "Atmel AT91 serial port 2 driver"
188     flavor        bool
189     default_value 1
190     description   "
191         This option includes the serial device driver for the Atmel AT91 
192         port 2 (serial C)."
193
194     cdl_option CYGDAT_IO_SERIAL_ARM_AT91_SERIAL2_NAME {
195         display       "Device name for Atmel AT91 serial port 1 driver"
196         flavor        data
197         default_value {"\"/dev/ser2\""}
198         description   "
199             This option specifies the name of the serial device for the 
200             Atmel AT91 port 2."
201     }
202
203     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL2_BAUD {
204         display       "Baud rate for the Atmel AT91 serial port 1 driver"
205         flavor        data
206         legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
207                       4800 7200 9600 14400 19200 38400 57600 115200 230400
208         }
209         default_value 38400
210         description   "
211             This option specifies the default baud rate (speed) for the
212             Atmel AT91 port 2."
213     }
214
215     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL2_BUFSIZE {
216         display       "Buffer size for the Atmel AT91 serial port 2 driver"
217         flavor        data
218         legal_values  0 to 8192
219         default_value 128
220         description   "
221             This option specifies the size of the internal buffers used 
222             for the Atmel AT91 port 2."
223     }
224     
225     cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL2_RCV_CHUNK_SIZE {
226         display       "Receive data chunk size"
227         flavor        data
228         legal_values  1 to 65519
229         default_value 1
230         description   "
231             This parameter can be used to reduce the number of interrupts
232             that must be processed by the driver. An interrupt will only
233             be generated if either this many data bytes have been received
234             or the receiver has been idle for some time. This reduces
235             overall system load at the expense of making the driver less
236             responsive and using slightly more memory for buffering data.
237             Setting this parameter to 1 will give standard behavior."
238     }
239 }
240
241
242     cdl_component CYGPKG_IO_SERIAL_ARM_AT91_OPTIONS {
243         display "Serial device driver build options"
244         flavor  none
245         description   "
246             Package specific build options including control over
247             compiler flags used only in building this package,
248             and details of which tests are built."
249
250
251         cdl_option CYGPKG_IO_SERIAL_ARM_AT91_CFLAGS_ADD {
252             display "Additional compiler flags"
253             flavor  data
254             no_define
255             default_value { "" }
256             description   "
257                 This option modifies the set of compiler flags for
258                 building these serial device drivers. These flags are used in addition
259                 to the set of global flags."
260         }
261
262         cdl_option CYGPKG_IO_SERIAL_ARM_AT91_CFLAGS_REMOVE {
263             display "Suppressed compiler flags"
264             flavor  data
265             no_define
266             default_value { "" }
267             description   "
268                 This option modifies the set of compiler flags for
269                 building these serial device drivers. These flags are removed from
270                 the set of global flags if present."
271         }
272     }
273
274     cdl_component CYGPKG_IO_SERIAL_ARM_AT91_TESTING {
275         display    "Testing parameters"
276         flavor     bool
277         calculated 1
278         active_if  CYGPKG_IO_SERIAL_ARM_AT91_SERIAL1
279
280         cdl_option CYGPRI_SER_TEST_SER_DEV {
281             display       "Serial device used for testing"
282             flavor        data
283             default_value { CYGDAT_IO_SERIAL_ARM_AT91_SERIAL1_NAME }
284         }
285
286         define_proc {
287             puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"eb40\""
288             puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty1\""
289         }
290     }
291 }
292
293 # EOF ser_arm_at91.cdl