1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# nano_eth_drivers.cdl
|
4 |
|
|
#
|
5 |
|
|
# Ethernet drivers - support for i82559 ethernet controller
|
6 |
|
|
# on the BSE nanoEngine board.
|
7 |
|
|
#
|
8 |
|
|
# ====================================================================
|
9 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
10 |
|
|
## -------------------------------------------
|
11 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
12 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
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
|
17 |
|
|
## version.
|
18 |
|
|
##
|
19 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
20 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
21 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
22 |
|
|
## for more details.
|
23 |
|
|
##
|
24 |
|
|
## You should have received a copy of the GNU General Public License
|
25 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
26 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
27 |
|
|
##
|
28 |
|
|
## As a special exception, if other files instantiate templates or use
|
29 |
|
|
## macros or inline functions from this file, or you compile this file
|
30 |
|
|
## and link it with other works to produce a work based on this file,
|
31 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
32 |
|
|
## the GNU General Public License. However the source code for this file
|
33 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
34 |
|
|
## General Public License v2.
|
35 |
|
|
##
|
36 |
|
|
## This exception does not invalidate any other reasons why a work based
|
37 |
|
|
## on this file might be covered by the GNU General Public License.
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): jskov
|
44 |
|
|
# Contributors: jskov, hmt
|
45 |
|
|
# Date: 2001-02-28
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_DEVS_ETH_ARM_NANO {
|
52 |
|
|
display "BSE nanoEngine ethernet driver"
|
53 |
|
|
description "
|
54 |
|
|
Ethernet driver for BSE nanoEngine board with one or two Intel
|
55 |
|
|
i82559 Ethernet controllers attached via the BSE nanoBridge PCI
|
56 |
|
|
glue chip."
|
57 |
|
|
|
58 |
|
|
parent CYGPKG_IO_ETH_DRIVERS
|
59 |
|
|
active_if CYGPKG_IO_ETH_DRIVERS
|
60 |
|
|
active_if CYGPKG_HAL_ARM_SA11X0_NANO
|
61 |
|
|
|
62 |
|
|
include_dir cyg/io
|
63 |
|
|
|
64 |
|
|
# FIXME: This really belongs in the INTEL_I82559 package
|
65 |
|
|
cdl_interface CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED {
|
66 |
|
|
display "Intel i82559 ethernet driver required"
|
67 |
|
|
}
|
68 |
|
|
|
69 |
|
|
define_proc {
|
70 |
|
|
puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
|
71 |
|
|
puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_INTEL_I82559_INL "
|
72 |
|
|
puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_INTEL_I82559_CFG "
|
73 |
|
|
puts $::cdl_system_header "/***** ethernet driver proc output end *****/"
|
74 |
|
|
}
|
75 |
|
|
|
76 |
|
|
cdl_component CYGPKG_DEVS_ETH_ARM_NANO_ETH0 {
|
77 |
|
|
display "Nano ethernet port 0 driver"
|
78 |
|
|
flavor bool
|
79 |
|
|
default_value 1
|
80 |
|
|
description "
|
81 |
|
|
This option includes the ethernet device driver for the
|
82 |
|
|
nanoEngine or nanoBridge port 0 - that is the connector one
|
83 |
|
|
slot in from the corner of the board, or the only connector
|
84 |
|
|
depending on your particular hardware."
|
85 |
|
|
|
86 |
|
|
implements CYGHWR_NET_DRIVERS
|
87 |
|
|
implements CYGHWR_NET_DRIVER_ETH0
|
88 |
|
|
implements CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED
|
89 |
|
|
|
90 |
|
|
cdl_option CYGDAT_DEVS_ETH_ARM_NANO_ETH0_NAME {
|
91 |
|
|
display "Device name for the ethernet port 0 driver"
|
92 |
|
|
flavor data
|
93 |
|
|
default_value {"\"eth0\""}
|
94 |
|
|
description "
|
95 |
|
|
This option sets the name of the ethernet device for the
|
96 |
|
|
ethernet port 0."
|
97 |
|
|
}
|
98 |
|
|
|
99 |
|
|
cdl_component CYGSEM_DEVS_ETH_ARM_NANO_ETH0_SET_ESA {
|
100 |
|
|
display "Set the ethernet station address"
|
101 |
|
|
flavor bool
|
102 |
|
|
default_value !CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA
|
103 |
|
|
description "Enabling this option will allow the ethernet
|
104 |
|
|
station address to be forced to the value set by the
|
105 |
|
|
configuration. This may be required if the hardware does
|
106 |
|
|
not include a serial EEPROM for the ESA, and if RedBoot's
|
107 |
|
|
flash configuration support is not available."
|
108 |
|
|
|
109 |
|
|
cdl_option CYGDAT_DEVS_ETH_ARM_NANO_ETH0_ESA {
|
110 |
|
|
display "The ethernet station address"
|
111 |
|
|
flavor data
|
112 |
|
|
default_value {"{0x00, 0xB5, 0xE0, 0xB5, 0xE0, 0x11}"}
|
113 |
|
|
description "The ethernet station address"
|
114 |
|
|
}
|
115 |
|
|
}
|
116 |
|
|
}
|
117 |
|
|
|
118 |
|
|
cdl_component CYGPKG_DEVS_ETH_ARM_NANO_ETH1 {
|
119 |
|
|
display "Nano ethernet port 1 driver"
|
120 |
|
|
flavor bool
|
121 |
|
|
default_value 1
|
122 |
|
|
description "
|
123 |
|
|
This option includes the ethernet device driver for the
|
124 |
|
|
nanoBridge port 1 - that is the connector on the corner of
|
125 |
|
|
the board, far from the power jack and reset button."
|
126 |
|
|
|
127 |
|
|
implements CYGHWR_NET_DRIVERS
|
128 |
|
|
implements CYGHWR_NET_DRIVER_ETH1
|
129 |
|
|
implements CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED
|
130 |
|
|
|
131 |
|
|
cdl_option CYGDAT_DEVS_ETH_ARM_NANO_ETH1_NAME {
|
132 |
|
|
display "Device name for the ethernet port 1 driver"
|
133 |
|
|
flavor data
|
134 |
|
|
default_value {"\"eth1\""}
|
135 |
|
|
description "
|
136 |
|
|
This option sets the name of the ethernet device for the
|
137 |
|
|
ethernet port 1."
|
138 |
|
|
}
|
139 |
|
|
|
140 |
|
|
cdl_component CYGSEM_DEVS_ETH_ARM_NANO_ETH1_SET_ESA {
|
141 |
|
|
display "Set the ethernet station address"
|
142 |
|
|
flavor bool
|
143 |
|
|
default_value !CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA
|
144 |
|
|
description "Enabling this option will allow the ethernet
|
145 |
|
|
station address to be forced to the value set by the
|
146 |
|
|
configuration. This may be required if the hardware does
|
147 |
|
|
not include a serial EEPROM for the ESA, and if RedBoot's
|
148 |
|
|
flash configuration support is not available."
|
149 |
|
|
|
150 |
|
|
cdl_option CYGDAT_DEVS_ETH_ARM_NANO_ETH1_ESA {
|
151 |
|
|
display "The ethernet station address"
|
152 |
|
|
flavor data
|
153 |
|
|
default_value {"{0x00, 0xB5, 0xE0, 0xB5, 0xE0, 0x12}"}
|
154 |
|
|
description "The ethernet station address"
|
155 |
|
|
}
|
156 |
|
|
}
|
157 |
|
|
}
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
# note that this option's name is NOT nano-specific, but i82559
|
161 |
|
|
# generic - other instantiations can set these also.
|
162 |
|
|
cdl_component CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA {
|
163 |
|
|
display "RedBoot manages ESA initialization data"
|
164 |
|
|
flavor bool
|
165 |
|
|
default_value 1
|
166 |
|
|
|
167 |
|
|
active_if CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
|
168 |
|
|
|
169 |
|
|
description "Enabling this option will allow the ethernet
|
170 |
|
|
station address to be acquired from RedBoot's configuration data,
|
171 |
|
|
stored in flash memory. It can be overridden individually by the
|
172 |
|
|
'Set the ethernet station address' option for each interface."
|
173 |
|
|
|
174 |
|
|
cdl_component CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA_VARS {
|
175 |
|
|
display "Build-in flash config fields for ESAs"
|
176 |
|
|
flavor bool
|
177 |
|
|
default_value 1
|
178 |
|
|
|
179 |
|
|
active_if CYGPKG_REDBOOT
|
180 |
|
|
active_if CYGPKG_REDBOOT_FLASH
|
181 |
|
|
active_if CYGSEM_REDBOOT_FLASH_CONFIG
|
182 |
|
|
active_if CYGPKG_REDBOOT_NETWORKING
|
183 |
|
|
|
184 |
|
|
description "
|
185 |
|
|
This option controls the presence of RedBoot flash
|
186 |
|
|
configuration fields for the ESAs of the interfaces when you
|
187 |
|
|
are building RedBoot. It is independent of whether RedBoot
|
188 |
|
|
itself uses the network or any particular interface; this
|
189 |
|
|
support is more for the application to use than for RedBoot
|
190 |
|
|
itself, though the application gets at the data by vector
|
191 |
|
|
calls; this option cannot be enabled outside of building
|
192 |
|
|
RedBoot."
|
193 |
|
|
|
194 |
|
|
cdl_option CYGVAR_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA_ETH0 {
|
195 |
|
|
display "RedBoot manages ESA for eth0"
|
196 |
|
|
flavor bool
|
197 |
|
|
default_value 1
|
198 |
|
|
}
|
199 |
|
|
cdl_option CYGVAR_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA_ETH1 {
|
200 |
|
|
display "RedBoot manages ESA for eth1"
|
201 |
|
|
flavor bool
|
202 |
|
|
default_value 1
|
203 |
|
|
}
|
204 |
|
|
}
|
205 |
|
|
}
|
206 |
|
|
}
|
207 |
|
|
|
208 |
|
|
# EOF nano_eth_drivers.cdl
|