]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/serial/arm/gps4020/v2_0/cdl/ser_arm_gps4020.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / serial / arm / gps4020 / v2_0 / cdl / ser_arm_gps4020.cdl
1 # ====================================================================
2 #
3 #      ser_arm_gps4020.cdl
4 #
5 #      eCos GPS4020 serial driver 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 ## Copyright (C) 2003 Gary Thomas
13 ##
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
17 ##
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## 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 along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 ##
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
33 ##
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
36 ##
37 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38 ## at http://sources.redhat.com/ecos/ecos-license/
39 ## -------------------------------------------
40 #####ECOSGPLCOPYRIGHTEND####
41 # ====================================================================
42 ######DESCRIPTIONBEGIN####
43 #
44 # Author(s):      jskov
45 # Original data:  gthomas
46 # Contributors:
47 # Date:           1999-07-08
48 #
49 #####DESCRIPTIONEND####
50 #
51 # ====================================================================
52
53
54 cdl_package CYGPKG_IO_SERIAL_ARM_GPS4020 {
55     display       "GPS4020 serial device driver"
56
57     parent        CYGPKG_IO_SERIAL_DEVICES
58     active_if     CYGPKG_IO_SERIAL
59     active_if     CYGPKG_HAL_ARM_GPS4020
60
61     requires      CYGPKG_ERROR
62     include_dir   cyg/io
63     include_files ; # none _exported_ whatsoever
64     description   "
65            This option enables the serial device drivers for the
66            GPS-4020 board."
67
68     compile       -library=libextras.a   gps4020_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_gps4020.h>"
73         puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
74     }
75
76 cdl_component CYGPKG_IO_SERIAL_ARM_GPS4020_SERIAL1 {
77     display       "GPS4020 serial port 1 driver"
78     flavor        bool
79     default_value 1
80     description   "
81         This option includes the serial device driver for the GPS4020
82         port 1."
83
84
85     cdl_option CYGDAT_IO_SERIAL_ARM_GPS4020_SERIAL1_NAME {
86         display       "Device name for the GPS4020 serial port 1 driver"
87         flavor        data
88         default_value {"\"/dev/ser1\""}
89         description   "
90             This option specifies the name of serial device for the ARM 
91             GPS4020 port 1."
92     }
93
94     cdl_option CYGNUM_IO_SERIAL_ARM_GPS4020_SERIAL1_BAUD {
95         display       "Baud rate for the GPS4020 serial port 1 driver"
96         flavor        data
97         legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
98                       4800 7200 9600 14400 19200 38400 57600 115200 230400
99         }
100         default_value 57600
101         description   "
102             This option specifies the default baud rate (speed) for the ARM
103             GPS4020 port 1."
104     }
105
106     cdl_option CYGNUM_IO_SERIAL_ARM_GPS4020_SERIAL1_BUFSIZE {
107         display       "Buffer size for the GPS4020 serial port 1 driver"
108         flavor        data
109         default_value 128
110         legal_values  0 to 8192
111         description   "
112             This option specifies the size of the internal buffers used 
113             for the GPS4020 port 1."
114     }
115 }
116
117 cdl_component CYGPKG_IO_SERIAL_ARM_GPS4020_SERIAL2 {
118     display       "GPS4020 serial port 2 driver"
119     flavor        bool
120     default_value 1
121     description   "
122         This option includes the serial device driver for the ARM 
123         GPS4020 port 2."
124
125     cdl_option CYGDAT_IO_SERIAL_ARM_GPS4020_SERIAL2_NAME {
126         display       "Device name for the GPS4020 serial port 2 driver"
127         flavor        data
128         default_value {"\"/dev/ser2\""}
129         description   "
130             This option specifies the name of serial device for the ARM 
131             GPS4020 port 2."
132     }
133
134     cdl_option CYGNUM_IO_SERIAL_ARM_GPS4020_SERIAL2_BAUD {
135         display       "Baud rate for the GPS4020 serial port 2 driver"
136         flavor        data
137         legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
138                       4800 7200 9600 14400 19200 38400 57600 115200 230400
139         }
140         default_value 57600
141         description   "
142             This option specifies the default baud rate (speed) for the 
143             GPS4020 port 2."
144     }
145
146     cdl_option CYGNUM_IO_SERIAL_ARM_GPS4020_SERIAL2_BUFSIZE {
147         display       "Buffer size for the GPS4020 serial port 2 driver"
148         flavor        data
149         legal_values  0 to 8192
150         default_value 128
151         description   "
152             This option specifies the size of the internal buffers used for
153             the GPS4020 port 2."
154     }
155 }
156
157     cdl_component CYGPKG_IO_SERIAL_ARM_GPS4020_OPTIONS {
158         display "Serial device driver build options"
159         flavor  none
160         description   "
161             Package specific build options including control over
162             compiler flags used only in building this package,
163             and details of which tests are built."
164
165
166         cdl_option CYGPKG_IO_SERIAL_ARM_GPS4020_CFLAGS_ADD {
167             display "Additional compiler flags"
168             flavor  data
169             no_define
170             default_value { "" }
171             description   "
172                 This option modifies the set of compiler flags for
173                 building these serial device drivers. These flags are used in addition
174                 to the set of global flags."
175         }
176
177         cdl_option CYGPKG_IO_SERIAL_ARM_GPS4020_CFLAGS_REMOVE {
178             display "Suppressed compiler flags"
179             flavor  data
180             no_define
181             default_value { "" }
182             description   "
183                 This option modifies the set of compiler flags for
184                 building these serial device drivers. These flags are removed from
185                 the set of global flags if present."
186         }
187     }
188
189     cdl_component CYGPKG_IO_SERIAL_ARM_GPS4020_TESTING {
190         display    "Testing parameters"
191         flavor     bool
192         calculated 1
193         active_if  CYGPKG_IO_SERIAL_ARM_GPS4020_SERIAL1
194
195         implements CYGINT_IO_SERIAL_TEST_SKIP_115200
196         
197         cdl_option CYGPRI_SER_TEST_SER_DEV {
198             display       "Serial device used for testing"
199             flavor        data
200             default_value { CYGDAT_IO_SERIAL_ARM_GPS4020_SERIAL1_NAME }
201         }
202
203         define_proc {
204             puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"gps4020\""
205             puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty1\""
206         }
207     }
208 }
209
210 # EOF ser_arm_gps4020.cdl