]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/serial/arm/aim711/v2_0/cdl/ser_arm_aim711.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / serial / arm / aim711 / v2_0 / cdl / ser_arm_aim711.cdl
1 # ====================================================================
2 #
3 #      ser_arm_aim711.cdl
4 #
5 #      eCos serial ARM Industrial Module AIM 711 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):      Lars.Lindqvist@combitechsystems.com, rcassebohm
44 # Contributors:   jlarmour, rcassebohm
45 # Date:           2004-09-09
46 #
47 #####DESCRIPTIONEND####
48 #
49 # ====================================================================
50
51
52 cdl_package CYGPKG_IO_SERIAL_ARM_AIM711 {
53     display       "ARM Industrial Module AIM 711 serial device drivers"
54
55     parent        CYGPKG_IO_SERIAL_DEVICES
56     active_if     CYGPKG_IO_SERIAL
57     active_if     CYGPKG_HAL_ARM_AIM711
58
59     include_dir   cyg/io
60     description   "
61            This package contains serial device drivers for the
62            ARM Industrial Module AIM 711."
63
64     define_proc {
65         puts $::cdl_system_header "/***** serial driver proc output start *****/"
66         puts $::cdl_system_header "#ifndef CYGDAT_IO_SERIAL_DEVICE_HEADER"
67         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_DEVICE_HEADER <pkgconf/io_serial_arm_aim711.h>"
68         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/ser_arm_aim711_16x5x.inl>"
69         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_serial_arm_aim711.h>"
70         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_ARM_S3C4510_INL <cyg/io/ser_arm_aim711_s3c4510.inl>"
71         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_ARM_S3C4510_CFG <pkgconf/io_serial_arm_aim711.h>"
72         puts $::cdl_system_header "#endif"
73         puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
74         puts $::cdl_header "#include <pkgconf/system.h>";
75         puts $::cdl_header "#include <pkgconf/io_serial_arm_s3c4510.h>";
76         puts $::cdl_header "#include <pkgconf/io_serial_generic_16x5x.h>";
77     }
78
79     cdl_component CYGPKG_IO_SERIAL_ARM_AIM711_16X5X {
80         display       "ARM Industrial Module AIM 711 16x5x serial device drivers"
81
82         parent        CYGPKG_IO_SERIAL_DEVICES
83         active_if     CYGPKG_IO_SERIAL
84         active_if     CYGPKG_HAL_ARM_AIM711
85         default_value 1
86
87         requires      CYGPKG_ERROR
88         description   "
89                This package contains serial device drivers for the
90                ARM Industrial Module AIM 711 for the 16550 serial
91                interface on board."
92
93         # FIXME: This really belongs in the GENERIC_16X5X package
94         cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
95             display   "Generic 16x5x serial driver required"
96         }
97
98         cdl_component CYGPKG_IO_SERIAL_ARM_AIM711_16X5X_SERIAL0 {
99             display       "AIM 711 16X5X serial port 0 driver (COM1)"
100             flavor        bool
101             default_value 1
102             description   "
103                 This option includes the serial device driver for the AIM 711 16X5X 
104                 port 0, which is COM1 on the AIM 711."
105
106             implements    CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
107             implements    CYGINT_IO_SERIAL_FLOW_CONTROL_HW
108             implements    CYGINT_IO_SERIAL_LINE_STATUS_HW
109
110             cdl_option CYGDAT_IO_SERIAL_ARM_AIM711_16X5X_SERIAL0_NAME {
111                 display       "Device name for the AIM 711 16X5X serial port 0 driver (COM1)"
112                 flavor        data
113                 default_value {"\"/dev/ser1\""}
114                 description   "
115                     This option sets the name of the serial device for the AIM 711 
116                     16X5X port 0 (COM1)."
117             }
118
119             cdl_option CYGNUM_IO_SERIAL_ARM_AIM711_16X5X_SERIAL0_BAUD {
120                 display       "Baud rate for the AIM 711 16X5X serial port 0 driver"
121                 flavor        data
122                 legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
123                               4800 7200 9600 14400 19200 38400 57600 115200 230400
124                 }
125                 default_value 38400
126                 description   "
127                     This option specifies the default baud rate (speed) for the 
128                     AIM 711 16X5X port 0."
129             }
130
131             cdl_option CYGNUM_IO_SERIAL_ARM_AIM711_16X5X_SERIAL0_BUFSIZE {
132                 display       "Buffer size for the AIM 711 16X5X serial port 0 driver"
133                 flavor        data
134                 legal_values  0 to 8192
135                 default_value 128
136                 description   "
137                     This option specifies the size of the internal buffers used for
138                     the AIM 711 16X5X port 0."
139             }
140         }
141     }
142
143     cdl_component CYGPKG_IO_SERIAL_ARM_AIM711_S3C4510 {
144         display       "ARM Industrial Module AIM 711 S3C4510 serial device drivers"
145
146         parent        CYGPKG_IO_SERIAL_DEVICES
147         active_if     CYGPKG_IO_SERIAL
148         active_if     CYGPKG_HAL_ARM_AIM711
149         default_value 1
150
151         requires      CYGPKG_ERROR
152         description   "
153                This package contains serial device drivers for the
154                ARM Industrial Module AIM 711 for the internal serial
155                interface of the S3C4510."
156
157         # FIXME: This really belongs in the SERIAL_ARM_S3C4510 package
158         cdl_interface CYGINT_IO_SERIAL_ARM_S3C4510_REQUIRED {
159             display   "Generic s3c4510 serial driver required"
160         }
161
162         cdl_component CYGPKG_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL0 {
163             display       "AIM 711 S3C4510 serial port 0 driver (service adapter)"
164             flavor        bool
165             default_value 1
166             description   "
167                 This option includes the serial device driver for the AIM 711 S3C4510 
168                 port 0, which is on the AIM 711 the port on the service adapter."
169
170             implements    CYGINT_IO_SERIAL_ARM_S3C4510_REQUIRED
171
172             cdl_option CYGDAT_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL0_NAME {
173                 display       "Device name for the AIM 711 S3C4510 serial port 0 driver (service adapter)"
174                 flavor        data
175                 default_value {"\"/dev/ser0\""}
176                 description   "
177                     This option sets the name of the serial device for the AIM 711 
178                     S3C4510 port 0 (service adapter)."
179             }
180
181             cdl_option CYGNUM_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL0_BAUD {
182                 display       "Baud rate for the AIM 711 S3C4510 serial port 0 driver"
183                 flavor        data
184                 legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
185                               4800 7200 9600 14400 19200 38400 57600 115200 230400
186                 }
187                 default_value 38400
188                 description   "
189                     This option specifies the default baud rate (speed) for the 
190                     AIM 711 S3C4510 port 0."
191             }
192
193             cdl_option CYGNUM_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL0_BUFSIZE {
194                 display       "Buffer size for the AIM 711 S3C4510 serial port 0 driver"
195                 flavor        data
196                 legal_values  0 to 8192
197                 default_value 128
198                 description   "
199                     This option specifies the size of the internal buffers used for
200                     the AIM 711 S3C4510 port 0."
201             }
202         }
203
204         cdl_component CYGPKG_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL1 {
205             display       "AIM 711 S3C4510 serial port 1 driver (COM2)"
206             flavor        bool
207             default_value 1
208             description   "
209                 This option includes the serial device driver for the AIM 711 
210                 S3C4510 port 1, which is the COM2 on the AIM 711."
211
212             implements    CYGINT_IO_SERIAL_ARM_S3C4510_REQUIRED
213
214             cdl_option CYGDAT_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL1_NAME {
215                 display       "Device name for the AIM 711 S3C4510 serial port 1 driver (COM2)"
216                 flavor        data
217                 default_value {"\"/dev/ser2\""}
218                 description   "
219                     This option specifies the name of serial device for the 
220                     AIM 711 S3C4510 port 1 (COM2)."
221             }
222
223             cdl_option CYGNUM_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL1_BAUD {
224                 display       "Baud rate for the AIM 711 S3C4510 serial port 1 driver"
225                 flavor        data
226                 legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
227                               4800 7200 9600 14400 19200 38400 57600 115200 230400
228                 }
229                 default_value 38400
230                 description   "
231                     This option specifies the default baud rate (speed) for the 
232                     AIM 711 S3C4510 port 1."
233             }
234
235             cdl_option CYGNUM_IO_SERIAL_ARM_AIM711_S3C4510_SERIAL1_BUFSIZE {
236                 display       "Buffer size for the AIM 711 S3C4510 serial port 1 driver"
237                 flavor        data
238                 legal_values  0 to 8192
239                 default_value 128
240                 description   "
241                     This option specifies the size of the internal buffers used 
242                     for the AIM 711 S3C4510 port 1."
243             }
244         }
245     }
246
247     cdl_component CYGPKG_IO_SERIAL_ARM_AIM711_OPTIONS {
248         display "Serial device driver build options"
249         flavor  none
250         description   "
251         Package specific build options including control over
252         compiler flags used only in building this package,
253         and details of which tests are built."
254
255
256         cdl_option CYGPKG_IO_SERIAL_ARM_AIM711_CFLAGS_ADD {
257             display "Additional compiler flags"
258             flavor  data
259             no_define
260             default_value { "" }
261             description   "
262                 This option modifies the set of compiler flags for
263                 building these serial device drivers. These flags are used in addition
264                 to the set of global flags."
265         }
266
267         cdl_option CYGPKG_IO_SERIAL_ARM_AIM711_CFLAGS_REMOVE {
268             display "Suppressed compiler flags"
269             flavor  data
270             no_define
271             default_value { "" }
272             description   "
273                 This option modifies the set of compiler flags for
274                 building these serial device drivers. These flags are removed from
275                 the set of global flags if present."
276         }
277     }
278
279     cdl_component CYGPKG_IO_SERIAL_ARM_AIM711_TESTING {
280         display    "Testing parameters"
281         flavor     bool
282         calculated 1
283         active_if  CYGPKG_IO_SERIAL_ARM_AIM711_16X5X_SERIAL0
284
285         cdl_option CYGPRI_SER_TEST_SER_DEV {
286             display       "Serial device used for testing"
287             flavor        data
288             default_value { CYGDAT_IO_SERIAL_ARM_AIM711_16X5X_SERIAL0_NAME }
289         }
290
291         define_proc {
292             puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"arm16x5x\""
293             puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty2\""
294         }
295     }
296 }
297
298 # EOF ser_arm_aim711.cdl