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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [eth/] [frv/] [cb70/] [current/] [cdl/] [cb70_eth_driver.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#       cb70_eth_driver.cdl
4
#
5
#       Ethernet driver
6
#       CB70 w/DM9000 platform specific support
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, 2003 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):
44
# Original data:  msalter
45
# Contributors:
46
# Date:           2004-03-22
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
cdl_package CYGPKG_DEVS_ETH_FRV_CB70 {
53
    display       "cb70 CPU board with Davicom DM9000 ethernet driver"
54
    parent        CYGPKG_IO_ETH_DRIVERS
55
    active_if     CYGPKG_IO_ETH_DRIVERS
56
    active_if     CYGPKG_HAL_FRV_MB93091
57
 
58
    include_dir   cyg/io
59
 
60
    # FIXME: This really belongs in the DM9000 package
61
    cdl_interface CYGINT_DEVS_ETH_DAVICOM_DM9000_REQUIRED {
62
        display   "Davicom DM9000 ethernet driver required"
63
    }
64
 
65
    define_proc {
66
        puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
67
        puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_DAVICOM_DM9000_INL "
68
 
69
        puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_DAVICOM_DM9000_CFG "
70
 
71
        puts $::cdl_system_header "/*****  ethernet driver proc output end  *****/"
72
    }
73
 
74
 
75
    cdl_component CYGPKG_DEVS_ETH_FRV_CB70_ETH0 {
76
        display       "cb70 ethernet port driver for builtin Davicom DM9000"
77
        flavor        bool
78
        default_value 1
79
        description   "
80
            This option includes the Davicom DM9000 ethernet device driver for a
81
            CB70 CPU board."
82
 
83
        implements CYGHWR_NET_DRIVERS
84
        implements CYGHWR_NET_DRIVER_ETH0
85
        implements CYGINT_DEVS_ETH_DAVICOM_DM9000_REQUIRED
86
 
87
        cdl_option CYGDAT_DEVS_ETH_FRV_CB70_ETH0_NAME {
88
            display       "Device name for the ETH0 ethernet port driver"
89
            flavor        data
90
            default_value {"\"eth0\""}
91
            description   "
92
                This option sets the name of the ethernet device for a
93
                DM9000-based CB70 CPU card."
94
        }
95
    }
96
 
97
 
98
    cdl_component CYGPKG_DEVS_ETH_DM9000_ETH_REDBOOT_HOLDS_ESA {
99
        display         "RedBoot manages ESA initialization data"
100
        flavor          bool
101
        default_value   0
102
 
103
        active_if     CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
104
 
105
        description   "Enabling this option will allow the ethernet
106
        station address to be acquired from RedBoot's configuration data,
107
        stored in flash memory.  It can be overridden individually by the
108
        'Set the ethernet station address' option for each interface."
109
 
110
        cdl_component CYGPKG_DEVS_ETH_DM9000_ETH_REDBOOT_HOLDS_ESA_VARS {
111
            display        "Build-in flash config fields for ESAs"
112
            flavor         bool
113
            default_value  0
114
 
115
            active_if       CYGPKG_REDBOOT
116
            active_if       CYGPKG_REDBOOT_FLASH
117
            active_if       CYGSEM_REDBOOT_FLASH_CONFIG
118
            active_if       CYGPKG_REDBOOT_NETWORKING
119
 
120
            description "
121
            This option controls the presence of RedBoot flash
122
            configuration fields for the ESAs of the interfaces when you
123
            are building RedBoot.  It is independent of whether RedBoot
124
            itself uses the network or any particular interface; this
125
            support is more for the application to use than for RedBoot
126
            itself, though the application gets at the data by vector
127
            calls; this option cannot be enabled outside of building
128
            RedBoot."
129
 
130
            cdl_option CYGVAR_ETH_DM9000_REDBOOT_HOLDS_ESA_ETH0 {
131
                display         "RedBoot manages ESA for eth0"
132
                flavor          bool
133
                default_value   0
134
            }
135
 
136
            cdl_option CYGDAT_DEVS_ETH_FRV_CB70_ETH0_DEFAULT_ESA {
137
                display       "The ethernet station address"
138
                flavor        data
139
                default_value {"{0x00, 0x03, 0x47, 0xdf, 0x32, 0xa8}"}
140
                description   "The default ethernet station address. This is the
141
                               address used as the default value in the RedBoot
142
                               flash configuration field."
143
            }
144
        }
145
    }
146
}
147
 

powered by: WebSVN 2.1.0

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