1 # ====================================================================
3 # netarm_eth_driver.cdl
6 # NET+ARM ethernet interface
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) 2005 eCosCentric LTD
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 ## -------------------------------------------
39 #####ECOSGPLCOPYRIGHTEND####
40 # ====================================================================
41 ######DESCRIPTIONBEGIN####
43 # Author(s): Harald Brandl (harald.brandl@fh-joanneum.at)
48 #####DESCRIPTIONEND####
50 # ====================================================================
52 cdl_package CYGPKG_DEVS_ETH_ARM_NETARM {
53 display "NetSilicon board ethernet driver"
54 description "Ethernet driver for NET+ARM."
56 parent CYGPKG_IO_ETH_DRIVERS
57 active_if CYGPKG_IO_ETH_DRIVERS
60 compile -library=libextras.a MII.c netarm_eth_drv.c eeprom.c
63 puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
64 puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_NETARM_CFG <pkgconf/devs_eth_arm_netarm.h>"
65 puts $::cdl_system_header "/***** ethernet driver proc output end *****/"
68 cdl_interface CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_ESA {
70 requires 1 == CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_ESA
73 cdl_component CYGPKG_DEVS_ETH_ARM_NETARM_ETH0 {
74 display "Ethernet port 0 driver"
78 implements CYGHWR_NET_DRIVERS
79 implements CYGHWR_NET_DRIVER_ETH0
81 cdl_option CYGDAT_DEVS_ETH_ARM_NETARM_ETH0_NAME {
82 display "Device name for the ETH0 ethernet port 0 driver"
84 default_value {"\"eth0\""}
86 This option sets the name of the ethernet device for the
87 netarm ethernet port 0."
90 cdl_component CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_SET_ESA {
91 display "Set the ethernet station address"
94 implements CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_ESA
95 description "Enabling this option will allow the ethernet
96 station address to be forced to the value set by the
97 configuration. This may be required if the hardware does
98 not include a serial EEPROM for the ESA."
100 cdl_option CYGDAT_DEVS_ETH_ARM_NETARM_ETH0_ESA {
101 display "The ethernet station address"
103 default_value {"{0x00, 0x40, 0xaf, 0x77, 0xe0, 0x80}"}
104 description "The ethernet station address"
108 cdl_option CYGDAT_DEVS_ETH_ARM_NETARM_ETH0_ESA_EEPROM {
109 display "Read ethernet station address from eeprom"
112 implements CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_ESA
113 description "Read ethernet station address from eeprom (I2C)"
116 cdl_component CYGPKG_DEVS_ETH_ARM_NETARM_OPTIONS {
117 display "NETARM ethernet driver build options"
121 cdl_option CYGPKG_DEVS_ETH_ARM_NETARM_CFLAGS_ADD {
122 display "Additional compiler flags"
125 default_value { "-D_KERNEL -D__ECOS" }
127 This option modifies the set of compiler flags for
128 building the NETARM ethernet driver
129 package. These flags are used in addition to the set of
136 # EOF netarm_eth_driver.cdl