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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [serial/] [sh/] [se77x9/] [current/] [cdl/] [ser_sh_se77x9.cdl] - Blame information for rev 798

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

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      ser_sh_se77x9.cdl
4
#
5
#      eCos serial SH/SE77X9 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 Free Software Foundation, 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
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY 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
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      jskov
43
# Contributors:
44
# Date:           2001-06-18
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
 
51
cdl_package CYGPKG_IO_SERIAL_SH_SE77X9 {
52
    display       "SH3 SE77X9 serial device drivers"
53
 
54
    parent        CYGPKG_IO_SERIAL_DEVICES
55
    active_if     CYGPKG_IO_SERIAL
56
    active_if     CYGPKG_HAL_SH_SH77X9_SE77X9
57
 
58
    requires      CYGPKG_ERROR
59
    include_dir   cyg/io
60
 
61
    description   "
62
        This option enables the serial device drivers for the
63
        Hitachi SH3 SE77X9 board, based on the generic SH SCI driver."
64
 
65
 
66
    # FIXME: This really belongs in the SH_SCIF package
67
    cdl_interface CYGINT_IO_SERIAL_SH_SCIF_REQUIRED {
68
        display   "SH SCI driver required"
69
    }
70
 
71
    # FIXME: This really belongs in the GENERIC_16X5X package
72
    cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
73
        display   "Generic 16x5x serial driver required"
74
    }
75
 
76
    define_proc {
77
        puts $::cdl_system_header "/***** serial driver proc output start *****/"
78
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_INL "
79
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG "
80
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_SH_SCIF_INL "
81
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_SH_SCIF_CFG "
82
        puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
83
    }
84
 
85
    cdl_component CYGPKG_IO_SERIAL_SH_SE77X9_COM1 {
86
        display       "SH SE77X9 serial 1 driver (SuperIO)"
87
        flavor        bool
88
        calculated    0
89
        description   "
90
            This option includes the serial device driver for the COM1
91
            port. FIXME: Disabled due to being broken."
92
 
93
        implements CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
94
        implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
95
        implements CYGINT_IO_SERIAL_LINE_STATUS_HW
96
 
97
        cdl_option CYGDAT_IO_SERIAL_SH_SE77X9_COM1_NAME {
98
            display       "Device name for COM1"
99
            flavor        data
100
            default_value {"\"/dev/ser1\""}
101
            description   "
102
                This option specifies the device name for COM1."
103
        }
104
 
105
        cdl_option CYGNUM_IO_SERIAL_SH_SE77X9_COM1_BAUD {
106
            display       "Baud rate for COM1"
107
            flavor        data
108
            legal_values  { 4800 9600 14400 19200 38400 57600 115200 }
109
            default_value 38400
110
            description   "
111
                This option specifies the default baud rate (speed)
112
                for the COM1 port."
113
        }
114
 
115
        cdl_option CYGNUM_IO_SERIAL_SH_SE77X9_COM1_BUFSIZE {
116
            display       "Buffer size for COM1"
117
            flavor        data
118
            legal_values  0 to 8192
119
            default_value 128
120
            description   "
121
                This option specifies the size of the internal buffers
122
                used for the COM1 port."
123
        }
124
    }
125
 
126
    # SCIF port
127
    cdl_component CYGPKG_IO_SERIAL_SH_SE77X9_COM2 {
128
        display       "SE77X9 serial, SCIF port 2 driver"
129
        flavor        bool
130
        default_value 1
131
        description   "
132
            This option includes the serial device driver for SCIF
133
            port 2."
134
 
135
        implements CYGINT_IO_SERIAL_SH_SCIF_REQUIRED
136
        implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
137
        implements CYGINT_IO_SERIAL_LINE_STATUS_HW
138
 
139
        cdl_option CYGDAT_IO_SERIAL_SH_SE77X9_COM2_NAME {
140
            display       "Device name"
141
            flavor        data
142
            default_value {"\"/dev/ser2\""}
143
            description   "
144
                This option specifies the device name for the serial
145
                port."
146
        }
147
 
148
        cdl_option CYGNUM_IO_SERIAL_SH_SE77X9_COM2_BAUD {
149
            display       "Baud rate"
150
            flavor        data
151
            legal_values  { 4800 9600 14400 19200 38400 57600 115200 }
152
            default_value 38400
153
            description   "
154
                This option specifies the default baud rate (speed)
155
                for the serial driver."
156
        }
157
 
158
        cdl_option CYGNUM_IO_SERIAL_SH_SE77X9_COM2_BUFSIZE {
159
            display       "Buffer size"
160
            flavor        data
161
            legal_values  0 to 8192
162
            default_value 128
163
            description   "
164
                This option specifies the size of the internal buffers
165
                used for the serial driver."
166
        }
167
 
168
        cdl_option CYGSEM_IO_SERIAL_SH_SE77X9_COM2_DMA {
169
            display       "Enable SCIF serial driver DMA"
170
            active_if     CYGINT_HAL_SH_DMA_CHANNELS
171
            implements    CYGINT_HAL_SH_DMA_CHANNELS_USED
172
            implements    CYGINT_IO_SERIAL_SH_SCIF_DMA
173
            default_value 1
174
            description   "
175
                Enable DMA for this port."
176
        }
177
    }
178
 
179
    cdl_component CYGPKG_IO_SERIAL_SH_SE77X9_TESTING {
180
        display    "Testing parameters"
181
        flavor     bool
182
        calculated 1
183
        no_define
184
        active_if  CYGPKG_IO_SERIAL_SH_SE77X9_COM2
185
 
186
        define_proc {
187
            puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"sh-se77x9\""
188
            puts $::cdl_header "#define CYGPRI_SER_TEST_SER_DEV  CYGDAT_IO_SERIAL_SH_SE77X9_COM2_NAME"
189
            puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty2\""
190
        }
191
    }
192
}
193
# EOF ser_sh_se77x9.cdl

powered by: WebSVN 2.1.0

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