1 # ====================================================================
3 # ser_powerpc_ppc405.cdl
5 # eCos serial configuration data
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
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.
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
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.
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.
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.
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####
49 #####DESCRIPTIONEND####
51 # ====================================================================
54 cdl_package CYGPKG_IO_SERIAL_POWERPC_PPC405 {
55 display "PowerPC PPC405 (16x5x) serial device driver"
57 parent CYGPKG_IO_SERIAL_DEVICES
58 active_if CYGPKG_IO_SERIAL
59 active_if CYGPKG_HAL_POWERPC_PPC40x
60 # Only the 405GP has these ports
61 active_if { CYGHWR_HAL_POWERPC_PPC4XX == "405GP" || CYGHWR_HAL_POWERPC_PPC4XX == "405EP" }
67 This option enables the serial 16x5x device drivers for the
68 PowerPC PPC405GP/EP based platforms."
70 # FIXME: This really belongs in the GENERIC_16X5X package
71 cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
72 display "Generic 16x5x serial driver required"
76 puts $::cdl_header "#define CYGPRI_IO_SERIAL_GENERIC_16X5X_STEP 1"
80 puts $::cdl_system_header "/***** serial driver proc output start *****/"
81 puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/powerpc_ppc405_ser.inl>"
82 puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_serial_powerpc_ppc405.h>"
83 puts $::cdl_system_header "/***** serial driver proc output end *****/"
86 cdl_component CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL0 {
87 display "PowerPC PPC405GP/EP serial port 0 driver"
91 implements CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
92 implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
93 implements CYGINT_IO_SERIAL_LINE_STATUS_HW
96 This option includes the serial device driver for the
97 PowerPC PPC405GP port 0."
99 cdl_option CYGDAT_IO_SERIAL_POWERPC_PPC405_SERIAL0_NAME {
100 display "Device name for PowerPC PPC405GP/EP serial port 0 driver"
102 default_value {"\"/dev/ser0\""}
104 This option specifies the name of the serial device
105 for the PowerPC PPC405GP port 0."
108 cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL0_BAUD {
109 display "Baud rate for the PowerPC PPC405GP serial port 0 driver"
111 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
112 3600 4800 7200 9600 14400 19200 38400
113 57600 115200 230400 }
116 This option specifies the default baud rate (speed)
117 for the PowerPC PPC405GP port 0."
120 cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL0_BUFSIZE {
121 display "Buffer size for the PowerPC PPC405GP serial port 0 driver"
123 legal_values 0 to 8192
126 This option specifies the size of the internal
127 buffers used for the PowerPC PPC405GP port 0."
131 cdl_component CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL1 {
132 display "PowerPC PPC405GP serial port 1 driver"
136 implements CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
137 implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
138 implements CYGINT_IO_SERIAL_LINE_STATUS_HW
141 This option includes the serial device driver for the
142 PowerPC PPC405GP port 1."
144 cdl_option CYGDAT_IO_SERIAL_POWERPC_PPC405_SERIAL1_NAME {
145 display "Device name for PowerPC PPC405GP serial port 1 driver"
147 default_value {"\"/dev/ser1\""}
149 This option specifies the name of the serial device
150 for the PowerPC PPC405GP port 1."
153 cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL1_BAUD {
154 display "Baud rate for the PowerPC PPC405GP serial port 1 driver"
156 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
157 3600 4800 7200 9600 14400 19200 38400
158 57600 115200 230400 }
161 This option specifies the default baud rate (speed)
162 for the PowerPC PPC405GP port 1."
165 cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL1_BUFSIZE {
166 display "Buffer size for the PowerPC PPC405GP serial port 1 driver"
168 legal_values 0 to 8192
171 This option specifies the size of the internal
172 buffers used for the PowerPC PPC405GP/EP port 1."
176 cdl_component CYGPKG_IO_SERIAL_POWERPC_PPC405_TESTING {
177 display "Testing parameters"
181 active_if { CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL1 }
183 cdl_option CYGPRI_SER_TEST_SER_DEV {
184 display "Serial device used for testing"
186 default_value { CYGDAT_IO_SERIAL_POWERPC_PPC405_SERIAL1_NAME }
190 puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"PPC405GP\""
191 puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV \"/dev/tty1\""
197 # EOF ser_powerpc_ppc405.cdl