]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/eth/arm/netarm/v2_0/cdl/netarm_eth_driver.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / eth / arm / netarm / v2_0 / cdl / netarm_eth_driver.cdl
1 # ====================================================================
2 #
3 #       netarm_eth_driver.cdl
4 #
5 #       Ethernet driver
6 #       NET+ARM ethernet interface
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 Red Hat, Inc.
13 ## Copyright (C) 2005 eCosCentric LTD
14 ##
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.
18 ##
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
22 ## for more details.
23 ##
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.
27 ##
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.
34 ##
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.
37 ##
38 ## -------------------------------------------
39 #####ECOSGPLCOPYRIGHTEND####
40 # ====================================================================
41 ######DESCRIPTIONBEGIN####
42 #
43 # Author(s):      Harald Brandl (harald.brandl@fh-joanneum.at)
44 # Original data:
45 # Contributors:   
46 # Date:           01.08.2004
47 #
48 #####DESCRIPTIONEND####
49 #
50 # ====================================================================
51
52 cdl_package CYGPKG_DEVS_ETH_ARM_NETARM {
53     display       "NetSilicon board ethernet driver"
54     description   "Ethernet driver for NET+ARM."
55
56     parent        CYGPKG_IO_ETH_DRIVERS
57     active_if     CYGPKG_IO_ETH_DRIVERS
58
59     
60     compile -library=libextras.a MII.c netarm_eth_drv.c eeprom.c
61
62     define_proc {
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  *****/"
66     }
67     
68     cdl_interface CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_ESA {
69         no_define
70         requires 1 == CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_ESA
71     }
72
73     cdl_component CYGPKG_DEVS_ETH_ARM_NETARM_ETH0 {
74         display       "Ethernet port 0 driver"
75         flavor        bool
76         default_value 1
77
78         implements CYGHWR_NET_DRIVERS
79         implements CYGHWR_NET_DRIVER_ETH0
80
81         cdl_option CYGDAT_DEVS_ETH_ARM_NETARM_ETH0_NAME {
82             display       "Device name for the ETH0 ethernet port 0 driver"
83             flavor        data
84             default_value {"\"eth0\""}
85             description   "
86                 This option sets the name of the ethernet device for the
87                 netarm ethernet port 0."
88         }
89
90         cdl_component CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_SET_ESA {
91             display       "Set the ethernet station address"
92             flavor        bool
93             default_value 1
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."
99             
100             cdl_option CYGDAT_DEVS_ETH_ARM_NETARM_ETH0_ESA {
101                 display       "The ethernet station address"
102                 flavor        data
103                 default_value {"{0x00, 0x40, 0xaf, 0x77, 0xe0, 0x80}"}
104                 description   "The ethernet station address"
105             }
106         }
107         
108         cdl_option CYGDAT_DEVS_ETH_ARM_NETARM_ETH0_ESA_EEPROM {
109             display       "Read ethernet station address from eeprom"
110             flavor        bool
111             default_value 0
112             implements CYGSEM_DEVS_ETH_ARM_NETARM_ETH0_ESA
113             description   "Read ethernet station address from eeprom (I2C)"
114         }
115         
116         cdl_component CYGPKG_DEVS_ETH_ARM_NETARM_OPTIONS {
117             display "NETARM ethernet driver build options"
118             flavor  none
119             no_define
120         
121             cdl_option CYGPKG_DEVS_ETH_ARM_NETARM_CFLAGS_ADD {
122                 display "Additional compiler flags"
123                 flavor  data
124                 no_define
125                 default_value { "-D_KERNEL -D__ECOS" }
126                 description   "
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
130                     global flags."
131             }
132         }
133     }
134 }
135
136 # EOF netarm_eth_driver.cdl