OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [eth/] [powerpc/] [csb281/] [current/] [cdl/] [csb281_eth_drivers.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      csb281_eth_drivers.cdl
4
#
5
#      Ethernet drivers - support for i82559 ethernet controller
6
#      on the Cogent CSB281 (PowerPC 8245) board.
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 Free Software Foundation, Inc.
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
17
## version.
18
##
19
## eCos is distributed in the hope that it will be useful, but WITHOUT
20
## ANY 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
25
## along with eCos; if not, write to the Free Software Foundation, Inc.,
26
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
27
##
28
## As a special exception, if other files instantiate templates or use
29
## macros or inline functions from this file, or you compile this file
30
## and link it with other works to produce a work based on this file,
31
## this file does not by itself cause the resulting work to be covered by
32
## the GNU General Public License. However the source code for this file
33
## must still be made available in accordance with section (3) of the GNU
34
## General Public License v2.
35
##
36
## This exception does not invalidate any other reasons why a work based
37
## on this file might be covered by the GNU General Public License.
38
## -------------------------------------------
39
## ####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      jskov
44
# Contributors:   jskov, hmt, gthomas
45
# Date:           2001-02-28
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_DEVS_ETH_CSB281 {
52
    display       "Cogent CSB281 ethernet driver"
53
    description   "
54
        Ethernet driver for Cogent CSB281 with Intel
55
        i82559 Ethernet controllers attached via the PCI"
56
 
57
    parent        CYGPKG_IO_ETH_DRIVERS
58
    active_if     CYGPKG_IO_ETH_DRIVERS
59
    active_if     CYGPKG_HAL_POWERPC_CSB281
60
 
61
    include_dir   cyg/io
62
 
63
    # FIXME: This really belongs in the INTEL_I82559 package
64
    cdl_interface CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED {
65
        display   "Intel i82559 ethernet driver required"
66
    }
67
 
68
    define_proc {
69
        puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
70
        puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_INTEL_I82559_INL "
71
        puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_INTEL_I82559_CFG "
72
        puts $::cdl_system_header "/*****  ethernet driver proc output end  *****/"
73
    }
74
 
75
    cdl_component CYGPKG_DEVS_ETH_CSB281_ETH0 {
76
        display       "CSB281 ethernet port 0 driver"
77
        flavor        bool
78
        default_value 1
79
        description   "
80
            This option includes the ethernet device driver on the
81
            csb281 motherboard."
82
 
83
        implements CYGHWR_NET_DRIVERS
84
        implements CYGHWR_NET_DRIVER_ETH0
85
        implements CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED
86
 
87
        cdl_option CYGDAT_DEVS_ETH_CSB281_ETH0_NAME {
88
            display       "Device name for the ethernet port 0 driver"
89
            flavor        data
90
            default_value {"\"eth0\""}
91
            description   "
92
                This option sets the name of the ethernet device for the
93
                ethernet port 0."
94
        }
95
 
96
        cdl_component CYGSEM_DEVS_ETH_CSB281_ETH0_SET_ESA {
97
            display       "Set the ethernet station address"
98
            flavor        bool
99
            default_value !CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA
100
            description   "Enabling this option will allow the ethernet
101
            station address to be forced to the value set by the
102
            configuration.  This may be required if the hardware does
103
            not include a serial EEPROM for the ESA, and if RedBoot's
104
            flash configuration support is not available."
105
 
106
            cdl_option CYGDAT_DEVS_ETH_CSB281_ETH0_ESA {
107
                display       "The ethernet station address"
108
                flavor        data
109
                default_value {"{0x00, 0xB5, 0xE0, 0xB5, 0xE0, 0x11}"}
110
                description   "The ethernet station address"
111
            }
112
        }
113
    }
114
 
115
    cdl_component CYGPKG_DEVS_ETH_CSB281_ETH1 {
116
        display       "CSB281 ethernet port 1 driver"
117
        flavor        bool
118
        default_value 0
119
        description   "
120
            This option includes the ethernet device driver for the
121
            additional i82559 devices plugged into a PCI slot."
122
 
123
        implements CYGHWR_NET_DRIVERS
124
        implements CYGHWR_NET_DRIVER_ETH1
125
        implements CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED
126
 
127
        cdl_option CYGDAT_DEVS_ETH_CSB281_ETH1_NAME {
128
            display       "Device name for the ethernet port 1 driver"
129
            flavor        data
130
            default_value {"\"eth1\""}
131
            description   "
132
                This option sets the name of the ethernet device for the
133
                ethernet port 1."
134
        }
135
 
136
        cdl_component CYGSEM_DEVS_ETH_CSB281_ETH1_SET_ESA {
137
            display       "Set the ethernet station address"
138
            flavor        bool
139
            default_value !CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA
140
            description   "Enabling this option will allow the ethernet
141
            station address to be forced to the value set by the
142
            configuration.  This may be required if the hardware does
143
            not include a serial EEPROM for the ESA, and if RedBoot's
144
            flash configuration support is not available."
145
 
146
            cdl_option CYGDAT_DEVS_ETH_CSB281_ETH1_ESA {
147
                display       "The ethernet station address"
148
                flavor        data
149
                default_value {"{0x00, 0xB5, 0xE0, 0xB5, 0xE0, 0x12}"}
150
                description   "The ethernet station address"
151
            }
152
        }
153
    }
154
 
155
 
156
    # note that this option's name is NOT csb281-specific, but i82559
157
    # generic - other instantiations can set these also.
158
    cdl_component CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA {
159
        display         "RedBoot manages ESA initialization data"
160
        flavor          bool
161
        default_value   1
162
 
163
        active_if     CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
164
 
165
        description   "Enabling this option will allow the ethernet
166
        station address to be acquired from RedBoot's configuration data,
167
        stored in flash memory.  It can be overridden individually by the
168
        'Set the ethernet station address' option for each interface."
169
 
170
        cdl_component CYGPKG_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA_VARS {
171
            display        "Build-in flash config fields for ESAs"
172
            flavor         bool
173
            default_value  1
174
 
175
            active_if       CYGPKG_REDBOOT
176
            active_if       CYGPKG_REDBOOT_FLASH
177
            active_if       CYGSEM_REDBOOT_FLASH_CONFIG
178
            active_if       CYGPKG_REDBOOT_NETWORKING
179
 
180
            description "
181
            This option controls the presence of RedBoot flash
182
            configuration fields for the ESAs of the interfaces when you
183
            are building RedBoot.  It is independent of whether RedBoot
184
            itself uses the network or any particular interface; this
185
            support is more for the application to use than for RedBoot
186
            itself, though the application gets at the data by vector
187
            calls; this option cannot be enabled outside of building
188
            RedBoot."
189
 
190
            cdl_option CYGVAR_DEVS_ETH_I82559_ETH_REDBOOT_HOLDS_ESA_ETH0 {
191
                display         "RedBoot manages ESA for eth0"
192
                flavor          bool
193
                default_value   1
194
            }
195
        }
196
    }
197
}
198
 
199
# EOF csb281_eth_drivers.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.