]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/eth/arm/mx27ads/v2_0/cdl/board_eth_drivers.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / eth / arm / mx27ads / v2_0 / cdl / board_eth_drivers.cdl
1 # ====================================================================
2 #
3 #      board_eth_drivers.cdl
4 #
5 # ====================================================================
6 #####ECOSGPLCOPYRIGHTBEGIN####
7 ## -------------------------------------------
8 ## This file is part of eCos, the Embedded Configurable Operating System.
9 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
10 ##
11 ## eCos is free software; you can redistribute it and/or modify it under
12 ## the terms of the GNU General Public License as published by the Free
13 ## Software Foundation; either version 2 or (at your option) any later version.
14 ##
15 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
16 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
18 ## for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License along
21 ## with eCos; if not, write to the Free Software Foundation, Inc.,
22 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 ##
24 ## As a special exception, if other files instantiate templates or use macros
25 ## or inline functions from this file, or you compile this file and link it
26 ## with other works to produce a work based on this file, this file does not
27 ## by itself cause the resulting work to be covered by the GNU General Public
28 ## License. However the source code for this file must still be made available
29 ## in accordance with section (3) of the GNU General Public License.
30 ##
31 ## This exception does not invalidate any other reasons why a work based on
32 ## this file might be covered by the GNU General Public License.
33 ##
34 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
35 ## at http://sources.redhat.com/ecos/ecos-license/
36 ## -------------------------------------------
37 #####ECOSGPLCOPYRIGHTEND####
38
39 cdl_package CYGPKG_DEVS_ETH_ARM_MX27ADS {
40     display       "Ethernet driver for Freescale MXC Board development board"
41
42     parent        CYGPKG_IO_ETH_DRIVERS
43     active_if     CYGPKG_IO_ETH_DRIVERS
44
45     include_dir   cyg/io
46
47     # FIXME: This really belongs in the CL CS8900A package
48     cdl_interface CYGINT_DEVS_ETH_CL_CS8900A_REQUIRED {
49         display   "Cirrus Logic CS8900A ethernet driver required"
50     }
51     
52     cdl_interface CYGINT_DEVS_ETH_FEC_REQUIRED {
53         display   "FEC ethernet driver required"
54     }
55
56     define_proc {
57         puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
58         puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_CL_CS8900A_INL <cyg/io/devs_eth_arm_board.inl>"
59         puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_CL_CS8900A_CFG <pkgconf/devs_eth_arm_mx27ads.h>"
60         puts $::cdl_system_header "/*****  ethernet driver proc output end  *****/"
61     }
62
63     cdl_component CYGPKG_DEVS_ETH_ARM_MXCBOARD_ETH0 {
64         display       "MXC Board ethernet port driver"
65         flavor        bool
66         default_value 1
67         description   "
68             This option includes the ethernet device driver for the
69             MXC Board port."
70
71         implements CYGHWR_NET_DRIVER_ETH0
72         implements CYGINT_DEVS_ETH_CL_CS8900A_REQUIRED
73         implements CYGINT_DEVS_ETH_FEC_REQUIRED
74
75         cdl_option CYGDAT_DEVS_ETH_ARM_MXCBOARD_ETH0_NAME {
76             display       "Device name for the ETH0 ethernet driver"
77             flavor        data
78             default_value {"\"eth0\""}
79             description   "
80                 This option sets the name of the ethernet device."
81         }
82
83         cdl_component CYGSEM_DEVS_ETH_ARM_MXCBOARD_ETH0_SET_ESA {
84             display       "Set the ethernet station address"
85             flavor        bool
86             default_value 0
87             description   "Enabling this option will allow the ethernet
88             station address to be forced to the value set by the
89             configuration.  This may be required if the hardware does
90             not include a serial EEPROM for the ESA."
91             
92             cdl_option CYGDAT_DEVS_ETH_ARM_MXCBOARD_ETH0_ESA {
93                 display       "The ethernet station address"
94                 flavor        data
95                 default_value {"{0x08, 0x88, 0x12, 0x34, 0x56, 0x78}"}
96                 description   "The ethernet station address"
97             }
98         }
99     }
100 }