1 # ====================================================================
3 # sh4_202_md_eth_drivers.cdl
5 # Ethernet drivers - support for LAN91C111 ethernet controller
6 # on the MicroDev board.
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.
13 ## Copyright (C) 2003 Nick Garnett
15 ## eCos is free software; you can redistribute it and/or modify it under
16 ## the terms of the GNU General Public License as published by the Free
17 ## Software Foundation; either version 2 or (at your option) any later version.
19 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 ## You should have received a copy of the GNU General Public License along
25 ## with eCos; if not, write to the Free Software Foundation, Inc.,
26 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
28 ## As a special exception, if other files instantiate templates or use macros
29 ## or inline functions from this file, or you compile this file and link it
30 ## with other works to produce a work based on this file, this file does not
31 ## by itself cause the resulting work to be covered by the GNU General Public
32 ## License. However the source code for this file must still be made available
33 ## in accordance with section (3) of the GNU General Public License.
35 ## This exception does not invalidate any other reasons why a work based on
36 ## this file might be covered by the GNU General Public License.
38 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
39 ## at http://sources.redhat.com/ecos/ecos-license/
40 ## -------------------------------------------
41 #####ECOSGPLCOPYRIGHTEND####
42 # ====================================================================
43 ######DESCRIPTIONBEGIN####
49 #####DESCRIPTIONEND####
51 # ====================================================================
53 cdl_package CYGPKG_DEVS_ETH_SH_MICRODEV {
54 display "Microdev SMC91C96 ethernet driver"
56 parent CYGPKG_IO_ETH_DRIVERS
57 active_if CYGPKG_IO_ETH_DRIVERS
58 active_if CYGPKG_HAL_SH_SH4_202_MD
62 description "Ethernet driver for Microdev boards."
64 # Arguably this should do in the generic package
65 # but then there is a logic loop so you can never enable it.
67 cdl_interface CYGINT_DEVS_ETH_SMSC_LAN91CXX_REQUIRED {
68 display "SMSC LAN91CXX driver required"
72 puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
73 puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_SMSC_LAN91CXX_INL <cyg/io/devs_eth_sh4_202_md.inl>"
74 puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_SMSC_LAN91CXX_CFG <pkgconf/devs_eth_sh_microdev.h>"
75 puts $::cdl_system_header "/***** ethernet driver proc output end *****/"
78 cdl_component CYGPKG_DEVS_ETH_SH_MICRODEV_ETH0 {
79 display "Microdev ethernet port driver"
83 This option includes the ethernet device driver for the
86 implements CYGHWR_NET_DRIVERS
87 implements CYGHWR_NET_DRIVER_ETH0
88 implements CYGINT_DEVS_ETH_SMSC_LAN91CXX_REQUIRED
90 cdl_option CYGDAT_DEVS_ETH_SH_MICRODEV_ETH0_NAME {
91 display "Device name for the ETH0 ethernet driver"
93 default_value {"\"eth0\""}
95 This option sets the name of the ethernet device."
98 cdl_component CYGSEM_DEVS_ETH_SH_MICRODEV_ETH0_SET_ESA {
99 display "Set the ethernet station address"
102 description "Enabling this option will allow the ethernet
103 station address to be forced to the value set by the
104 configuration. This may be required if the hardware does
105 not include a serial EEPROM for the ESA."
107 cdl_option CYGDAT_DEVS_ETH_SH_MICRODEV_ETH0_ESA {
108 display "The ethernet station address (MAC)"
110 default_value {"{0x12, 0x13, 0x14, 0x15, 0x16, 0x17}"}
111 description "A static ethernet station address.
112 Caution: Booting two systems with the same MAC on the same
113 network, will cause severe conflicts."