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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [io/] [eth/] [v2_0/] [cdl/] [eth_drivers.cdl] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      eth_drivers.cdl
4
#
5
#      Ethernet drivers - platform independent support
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
# Original data:  gthomas
45
# Contributors:
46
# Date:           2000-01-25
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
cdl_package CYGPKG_IO_ETH_DRIVERS {
53
    display       "Common ethernet support"
54
    include_dir   cyg/io/eth
55
    parent        CYGPKG_IO
56
    description   "Platform independent ethernet drivers"
57
    doc           ref/io-eth-drv-generic.html
58
 
59
    implements    CYGPKG_NET_DRIVER_FRAMEWORK
60
 
61
    cdl_interface     CYGINT_IO_ETH_MULTICAST {
62
        display   "Driver supports multicast addressing"
63
        description "
64
          This interface defines whether or not a driver can handle
65
          requests for multicast addressing."
66
    }
67
 
68
    cdl_component CYGDBG_IO_ETH_DRIVERS_DEBUG {
69
        display          "Support printing driver debug information"
70
        flavor           bool
71
        default_value    1
72
        description      "
73
           Selecting this option will include code to allow the driver to
74
           print lots of information on diagnostic output such as full
75
           packet dumps."
76
 
77
        cdl_option    CYGDBG_IO_ETH_DRIVERS_DEBUG_VERBOSITY {
78
            display       "Driver debug output verbosity"
79
            flavor        data
80
            default_value 0
81
            description   "
82
                The value of this option indicates the default verbosity
83
                level of debugging output. 0 means no debugging output
84
                is made by default. Higher values indicate higher verbosity.
85
                The verbosity level may also be changed at run time by
86
                changing the variable cyg_io_eth_net_debug."
87
        }
88
    }
89
 
90
    cdl_option CYGNUM_IO_ETH_DRIVERS_SG_LIST_SIZE {
91
      display       "Size of scatter-gather I/O lists"
92
      flavor        data
93
      default_value 32
94
      description   "
95
         A scatter-gather list is used to pass requests to/from
96
         the physical device driver.  This list can typically be
97
         small, as the data is normally already packed into reasonable
98
         chunks."
99
    }
100
 
101
    cdl_component CYGPKG_IO_ETH_DRIVERS_NET {
102
        display       "Support for standard eCos TCP/IP stack."
103
        flavor        bool
104
        active_if     CYGPKG_NET
105
        requires      CYGINT_ISO_STRING_STRFUNCS
106
        implements    CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
107
        default_value 1
108
        compile       net/eth_drv.c
109
 
110
        cdl_component CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS {
111
            display     "Warn when there are no more mbufs"
112
            flavor      bool
113
            default_value 1
114
            description "
115
                Warnings about running out of mbufs are printed to the
116
                diagnostic output channel via diag_printf() if this option
117
                is enabled.  Mbufs are the network stack's basic dynamic
118
                memory objects that hold all packets in transit; running
119
                out is bad for performance but not fatal, not a crash.
120
                You might want to turn off the warnings to preserve realtime
121
                properties of the system even in extremis."
122
        }
123
 
124
        cdl_component CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES {
125
            display             "Simulate network failures for testing"
126
            flavor              bool
127
            default_value       0
128
            description "
129
                This package contains a suite of simulated failure modes
130
                for the ethernet device layer, including dropping and/or
131
                corrupting received packets, dropping packets queued for
132
                transmission, and simulating a complete network break.
133
                It requires the kernel as a source of time information."
134
 
135
            cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_DROP_RX {
136
                display "Drop incoming packets (percentage)"
137
                flavor  booldata
138
                legal_values 10 50 80
139
                default_value 10
140
            }
141
 
142
            cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_CORRUPT_RX {
143
                display "Corrupt incoming packets (percentage)"
144
                flavor  booldata
145
                legal_values 10 50 80
146
                default_value 10
147
            }
148
 
149
            cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_DROP_TX {
150
                display "Drop outgoing packets (percentage)"
151
                flavor  booldata
152
                legal_values 10 50 80
153
                default_value 10
154
            }
155
 
156
            cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_LINE_CUT {
157
                display "Simulate a line cut from time to time"
158
                flavor  bool
159
                default_value 0
160
                description "
161
                This option causes the system to drop all packets for a
162
                short random period (10s of seconds), and then act
163
                normally for up to 4 times that long.  This simulates your
164
                sysadmin fiddling with plugs in the network switch
165
                cupboard."
166
            }
167
        }
168
    }
169
 
170
    cdl_component CYGPKG_IO_ETH_DRIVERS_STAND_ALONE {
171
        display       "Support for stand-alone network stack."
172
        flavor        bool
173
        active_if     !CYGPKG_NET
174
        requires      CYGINT_ISO_STRING_MEMFUNCS
175
        default_value 1
176
        compile       stand_alone/eth_drv.c
177
 
178
        cdl_option CYGSEM_IO_ETH_DRIVERS_PASS_PACKETS {
179
            display          "Pass packets to an alternate stack"
180
            flavor           bool
181
            default_value    { 0 != CYGPKG_REDBOOT_NETWORKING }
182
            description      "
183
                 Define this to allow packets seen by this layer to be
184
                 passed on to the previous logical layer, i.e. when
185
                 stand-alone processing replaces system (eCos) processing."
186
        }
187
 
188
        cdl_option CYGNUM_IO_ETH_DRIVERS_NUM_PKT {
189
            display          "Number of \[network\] buffers"
190
            flavor           data
191
            default_value    4
192
            legal_values     2 to 32
193
            description      "
194
               This option is used to allocate space to buffer incoming network
195
               packets.  These buffers are used to hold data until they can be
196
               logically processed by higher layers."
197
        }
198
 
199
        cdl_option CYGSEM_IO_ETH_DRIVERS_WARN {
200
            display          "Show driver warnings"
201
            active_if        CYGPKG_REDBOOT
202
            flavor           bool
203
            default_value    0
204
            description      "
205
               Selecting this option will allows the stand-alone ethernet driver
206
               to display warnings on the system console when incoming network
207
               packets are being discarded due to lack of buffer space."
208
        }
209
    }
210
 
211
    cdl_component CYGPKG_IO_ETH_DRIVERS_LWIP {
212
        display       "Support for lwIP network stack."
213
        flavor        bool
214
        requires      !CYGPKG_NET
215
        active_if     CYGPKG_NET_LWIP
216
        default_value 1
217
        implements    CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
218
        compile       lwip/eth_drv.c
219
    }
220
 
221
    cdl_interface CYGINT_IO_ETH_INT_SUPPORT_REQUIRED {
222
        display       "Interrupt support required"
223
        flavor        booldata
224
        description   "This interface is used to indicate to the low
225
                       level device drivers that interrupt driven operation
226
                       is required by higher layers."
227
    }
228
 
229
    cdl_component CYGPKG_IO_ETH_DRIVERS_OPTIONS {
230
        display "Common ethernet support build options"
231
        flavor  none
232
        no_define
233
 
234
        cdl_option CYGPKG_IO_ETH_DRIVERS_CFLAGS_ADD {
235
            display "Additional compiler flags"
236
            flavor  data
237
            no_define
238
            default_value { "-D_KERNEL -D__ECOS" }
239
            description   "
240
                This option modifies the set of compiler flags for
241
                building the common ethernet support package. These flags are used in addition
242
                to the set of global flags."
243
        }
244
    }
245
}
246
 
247
# EOF eth_drivers.cdl

powered by: WebSVN 2.1.0

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