1 # ====================================================================
3 # upd985xx_eth_drivers.cdl
6 # NEC uPD985xx device specific support
8 # ====================================================================
9 #####ECOSGPLCOPYRIGHTBEGIN####
10 ## -------------------------------------------
11 ## This file is part of eCos, the Embedded Configurable Operating System.
12 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
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####
46 # Contributors: gthomas
49 #####DESCRIPTIONEND####
51 # ====================================================================
53 cdl_package CYGPKG_DEVS_ETH_MIPS_UPD985XX {
54 display "NEC uPD985xx ethernet driver"
56 parent CYGPKG_IO_ETH_DRIVERS
57 active_if CYGPKG_IO_ETH_DRIVERS
58 active_if CYGPKG_HAL_MIPS_UPD985XX
60 implements CYGHWR_NET_DRIVER_ETH0
62 implements CYGHWR_NET_DRIVERS
63 include_dir cyg/devs/eth
65 description "Ethernet driver for NEC uPD985xx devices."
66 compile -library=libextras.a if_upd985xx.c
68 cdl_option CYGDBG_DEVS_ETH_MIPS_UPD985XX_CHATTER {
69 display "Prints ethernet device status info during startup"
72 The ethernet device initialization code can print lots of info
73 to confirm that it has booted correctly."
76 cdl_option CYGNUM_DEVS_ETH_MIPS_UPD985XX_DEV_COUNT {
77 display "Number of supported interfaces."
83 This option selects the number of ethernet interfaces to
84 be supported by the driver."
87 cdl_component CYGPKG_DEVS_ETH_MIPS_UPD985XX_ETH0 {
88 display "Ethernet port 0 driver"
92 This option includes the ethernet device driver for
93 port 0 - that is the only connector
94 depending on your particular hardware."
97 cdl_option CYGDAT_DEVS_ETH_UPD985XX_ETH0_NAME {
98 display "Device name for the ethernet port 0 driver"
100 default_value {"\"eth0\""}
102 This option sets the name of the ethernet device for the
106 cdl_component CYGSEM_DEVS_ETH_UPD985XX_ETH0_SET_ESA {
107 display "Set the ethernet station address"
110 requires !CYGSEM_DEVS_ETH_UPD985XX_ETH0_GET_EEPROM_ESA
111 description "Enabling this option will allow the ethernet
112 station address to be forced to the value set by the
113 configuration. This may be required if the hardware does
114 not include a serial EEPROM for the ESA."
116 cdl_option CYGDAT_DEVS_ETH_UPD985XX_ETH0_ESA {
117 display "The ethernet station address"
119 default_value {"{0x00, 0xBA, 0xCA, 0xDD, 0x1E, 0xDD}"}
120 description "The ethernet station address"
124 cdl_option CYGSEM_DEVS_ETH_UPD985XX_ETH0_GET_EEPROM_ESA {
125 display "Get the ethernet station address from EEPROM"
127 default_value !CYGSEM_DEVS_ETH_UPD985XX_ETH0_SET_ESA
128 requires !CYGSEM_DEVS_ETH_UPD985XX_ETH0_SET_ESA
129 description "Enabling this option will allow the ethernet
130 station address to be read from a serial EEPROM (such as 93C06,
131 93C46...). If this is not valid, your application must set the
132 ESA manually via an ioctl() call or similar."
136 cdl_component CYGPKG_DEVS_ETH_MIPS_UPD985XX_OPTIONS {
137 display "NEC uPD985xx ethernet driver build options"
141 cdl_option CYGPKG_DEVS_ETH_MIPS_UPD985XX_CFLAGS_ADD {
142 display "Additional compiler flags"
145 default_value { "-D_KERNEL -D__ECOS" }
147 This option modifies the set of compiler flags for
148 building the NEC uPD985xx ethernet driver
149 package. These flags are used in addition to the set of
154 cdl_component CYGPKG_DEVS_ETH_MIPS_UPD985XX_HARDWARE_BUGS {
155 display "Workarounds for Ethernet Hardware bugs "
159 This component controls whether code workarounds for the numerous
160 hardware bugs in the uPD98503 Ethernet device are included.
161 These might not all be necessary depending on the speed and mode in
162 which the interface is used. Please refer to the manufacturer's
163 Behaviour Analysis Report to make your decision about which of
164 these options to enable or disable.
165 The default is to enable all workarounds for best reliability."
167 cdl_option CYGOPT_DEVS_ETH_MIPS_UPD985XX_HARDWARE_BUGS_S1 {
168 display "S1 - CPU to IBUS write restriction"
171 description "Enable a workaround for hardware bug S1"
173 cdl_component CYGOPT_DEVS_ETH_MIPS_UPD985XX_HARDWARE_BUGS_E1E2 {
174 display "E1,E2 - Status queue corruption and MAC filtering"
177 description "Enable a workaround for hardware bugs E1 and/or E2."
179 cdl_option CYGOPT_DEVS_ETH_MIPS_UPD985XX_HARDWARE_BUGS_E1E2_E2ONLY {
180 display "Do not set device in promisc mode - solve E2 only"
183 description "Work around bug E2 only - do not set the device
184 in promiscuous mode by default.
185 Setting this option prevents the work around
189 cdl_option CYGOPT_DEVS_ETH_MIPS_UPD985XX_HARDWARE_BUGS_E3 {
190 display "E3 - Transmit descriptor error"
193 description "Enable a workaround for hardware bug E3"
196 cdl_option CYGOPT_DEVS_ETH_MIPS_UPD985XX_HARDWARE_BUGS_E8 {
197 display "E8 - Transmission error under abnormal conditions"
200 description "Enable a workaround for hardware bug E8"
205 # EOF upd985xx_eth_drivers.cdl