]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/eth/arm/ks32c5000/v2_0/cdl/ks32c5000_eth.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / eth / arm / ks32c5000 / v2_0 / cdl / ks32c5000_eth.cdl
1 #==========================================================================
2 #
3 #      ks32c5000_eth.cdl
4 #
5 #      Ethernet drivers for Samsung KS32C5000/S3C4510
6 #
7 #==========================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12 ## Copyright (C) 2002 Jonathan Larmour
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 version.
17 ##
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
21 ## for more details.
22 ##
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.
26 ##
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.
33 ##
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.
36 ##
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####
43 #
44 # Author(s):    gthomas
45 # Contributors: gthomas, jskov
46 #               Grant Edwards <grante@visi.com>
47 # Date:         2001-07-31
48 # Purpose:      
49 # Description:  
50 #
51 #####DESCRIPTIONEND####
52 #
53 #========================================================================*/
54
55
56 cdl_package CYGPKG_DEVS_ETH_ARM_KS32C5000 {
57     display       "Samsung KS32C5000/S3C4510 ethernet driver"
58     parent        CYGPKG_IO_ETH_DRIVERS
59     active_if     CYGPKG_IO_ETH_DRIVERS
60     implements    CYGHWR_NET_DRIVERS
61     implements    CYGHWR_NET_DRIVER_ETH0
62     requires      (CYGPKG_CRC || (!(CYG_HAL_CPUTYPE == \"KS32C5000A\" )))
63     requires      (CYGINT_DEVS_ETH_ARM_KS32C5000_PHY <= 1)
64
65     include_dir   net
66     description   "Ethernet driver for Samsung KS32C5000"
67     compile       -library=libextras.a ks5000_ether.c
68     
69
70
71     cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_OPTIONS {
72         display "Samsung ethernet driver build options"
73         flavor  none
74         no_define
75
76         cdl_interface CYGINT_DEVS_ETH_ARM_KS32C5000_PHY {
77             display     "PHY Station Management support"
78         }
79         
80         cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_DEBUG_LEVEL {
81             display "KS32C5000 device driver debug output level"
82             flavor  data
83             legal_values {0 1 2}
84             default_value 1
85             description   "
86                 This option specifies the level of debug data output by the
87                 KS32C5000 device driver. A value of 0 signifies no debug data
88                 output; 1 signifies normal debug data output; and 2 signifies
89                 maximum debug data output (not suitable when GDB and
90                 application are sharing an ethernet port)."
91         }
92         
93         cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_ICS1890 {
94             display     "ICS1890 PHY support"
95             flavor bool
96             default_value 0
97             implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
98             compile -library=libextras.a ics1890.c
99             description "This component provides support for the ICS1890 and
100                          ICS1893AF PHY"
101         }
102
103         cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT970 {
104             display     "LXT970 PHY support"
105             flavor bool
106             default_value 1
107             implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
108             compile -library=libextras.a lxt970.c
109         }
110
111         cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972 {
112             display     "LXT972 PHY support"
113             flavor bool
114             default_value 0
115             implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
116             compile -library=libextras.a lxt972.c
117             no_define
118             
119             cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED1 {
120                 display "LED 1 mode"
121                 flavor  data
122                 legal_values {"LINK_SPEED" "TX_ACTIVITY" "RX_ACTIVITY" "COLLISION_STATUS" "LINK_STATUS" "DUPLEX_STATUS"
123                               "LINK_ACTIVITY" "LINK_STATUS_RX_STATUS_COMBINED" "LINK_STATUS_LINK_ACTIVITY_COMBINED"
124                               "DUPLEX_STATUS_COLLISION_STATUS_COMBINED" "TEST_ON" "TEST_OFF" "TEST_BLINK_FAST"
125                               "TEST_BLINK_SLOW"}
126                 default_value {"LINK_STATUS"}
127             }
128                 
129             cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED2 {
130                 display "LED 2 mode"
131                 flavor  data
132                 legal_values {"LINK_SPEED" "TX_ACTIVITY" "RX_ACTIVITY" "COLLISION_STATUS" "LINK_STATUS" "DUPLEX_STATUS"
133                               "LINK_ACTIVITY" "LINK_STATUS_RX_STATUS_COMBINED" "LINK_STATUS_LINK_ACTIVITY_COMBINED"
134                               "DUPLEX_STATUS_COLLISION_STATUS_COMBINED" "TEST_ON" "TEST_OFF" "TEST_BLINK_FAST"
135                               "TEST_BLINK_SLOW"}
136                 default_value {"LINK_SPEED"}
137             }
138
139             cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED3 {
140                 display "LED 3 mode"
141                 flavor  data
142                 legal_values {"LINK_SPEED" "TX_ACTIVITY" "RX_ACTIVITY" "COLLISION_STATUS" "LINK_STATUS" "DUPLEX_STATUS"
143                               "LINK_ACTIVITY" "LINK_STATUS_RX_STATUS_COMBINED" "LINK_STATUS_LINK_ACTIVITY_COMBINED"
144                               "DUPLEX_STATUS_COLLISION_STATUS_COMBINED" "TEST_ON" "TEST_OFF" "TEST_BLINK_FAST"
145                               "TEST_BLINK_SLOW"}
146                 default_value {"LINK_ACTIVITY"}
147             }
148         }
149
150         cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_RTL8201 {
151             display     "RTL8201 PHY support"
152             flavor bool
153             default_value 0
154             implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
155             compile -library=libextras.a rtl8201.c
156         }
157
158         cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHYADDR {
159             display "PHY MII address"
160             flavor  data
161             legal_values 0 to 31
162             default_value 1
163             description   "This option specifies the MII address of the PHY"
164         }
165
166         cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA {
167         display         "RedBoot manages ESA initialization data"
168         flavor          bool
169         default_value   0
170     
171         active_if     CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
172         active_if     (CYGPKG_REDBOOT || CYGSEM_HAL_USE_ROM_MONITOR)
173
174         description   "Enabling this option will allow the ethernet
175         station address to be acquired from RedBoot's configuration data,
176         stored in flash memory.  It can be overridden individually by the
177         'Set the ethernet station address' option for each interface."
178
179             cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA_VARS {
180                 display        "Export RedBoot command to set ESA in FLASH config"
181                 flavor         none
182                 no_define
183     
184                 description "
185                 This component contains options which, when enabled, allow
186                 RedBoot to support the setting of the ESA in the FLASH
187                 configuration. This can then subsequently be accessed by
188                 applications using virtual vector calls if those applications
189                 are also built with
190                 CYGPKG_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA enabled."
191     
192                 cdl_option CYGSEM_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA_ETH0 {
193                     display         "RedBoot manages ESA for eth0"
194                     flavor          bool
195                     default_value   1
196                     active_if       CYGSEM_REDBOOT_FLASH_CONFIG
197                     active_if       CYGPKG_REDBOOT_NETWORKING
198                 }
199             }
200         }
201
202         cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_MACADDR {
203             display "Ethernet station (MAC) address for eth0"
204             flavor  data
205             default_value {"0x08, 0x88, 0x12, 0x34, 0x56, 0x78"}
206             description   "The default ethernet station address. This is the
207                            MAC address used when no value is found in the
208                            RedBoot FLASH configuration field."
209         }
210
211         cdl_option  CYGPKG_DEVS_ETH_ARM_KS32C5000_CFLAGS_ADD {
212             display "Additional compiler flags"
213             flavor  data
214             no_define
215             default_value { "-D_KERNEL -D__ECOS" }
216             description   "
217                 This option modifies the set of compiler flags for
218                 building the Samsung KS32C5000 ethernet driver package. 
219                 These flags are used in addition to the set of global flags."
220         }
221     }
222 }
223
224 # EOF ks32c5000_eth.cdl