1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# edosk2674_eth_drivers.cdl
|
4 |
|
|
#
|
5 |
|
|
# Ethernet drivers - support for LAN91CXX ethernet controller
|
6 |
|
|
# on the EDOSK-2674 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): yoshinori sato
|
44 |
|
|
# Contributors: yoshinori sato
|
45 |
|
|
# Date: 2003-02-26
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_DEVS_ETH_H8300_EDOSK2674 {
|
52 |
|
|
|
53 |
|
|
display "EDOSK-2674 SMC91C96 ethernet driver"
|
54 |
|
|
|
55 |
|
|
parent CYGPKG_IO_ETH_DRIVERS
|
56 |
|
|
active_if CYGPKG_IO_ETH_DRIVERS
|
57 |
|
|
active_if CYGPKG_HAL_H8300_H8S_EDOSK2674
|
58 |
|
|
|
59 |
|
|
implements CYGHWR_NET_DRIVERS
|
60 |
|
|
implements CYGHWR_NET_DRIVER_ETH0
|
61 |
|
|
implements CYGINT_DEVS_ETH_SMSC_LAN91CXX_REQUIRED
|
62 |
|
|
implements CYGSEM_DEVS_ETH_SMSC_LAN91CXX_8_BIT
|
63 |
|
|
|
64 |
|
|
description "Ethernet driver for EDOSK-2674 boards."
|
65 |
|
|
|
66 |
|
|
include_dir cyg/io
|
67 |
|
|
|
68 |
|
|
define_proc {
|
69 |
|
|
puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
|
70 |
|
|
puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_SMSC_LAN91CXX_INL "
|
71 |
|
|
puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_SMSC_LAN91CXX_CFG "
|
72 |
|
|
puts $::cdl_system_header "/***** ethernet driver proc output end *****/"
|
73 |
|
|
}
|
74 |
|
|
|
75 |
|
|
# Arguably this should do in the generic package
|
76 |
|
|
# but then there is a logic loop so you can never enable it.
|
77 |
|
|
|
78 |
|
|
cdl_interface CYGINT_DEVS_ETH_SMSC_LAN91CXX_REQUIRED {
|
79 |
|
|
display "SMSC LAN91CXX driver required"
|
80 |
|
|
}
|
81 |
|
|
|
82 |
|
|
cdl_option CYGDAT_DEVS_ETH_H8300_EDOSK2674_NAME {
|
83 |
|
|
display "Device name for the ethernet driver"
|
84 |
|
|
flavor data
|
85 |
|
|
default_value {"\"eth0\""}
|
86 |
|
|
description "
|
87 |
|
|
This option sets the name of the ethernet device for the
|
88 |
|
|
ethernet port."
|
89 |
|
|
}
|
90 |
|
|
|
91 |
|
|
cdl_option CYGDAT_DEVS_ETH_H8300_EDOSK2674_ESA {
|
92 |
|
|
display "The ethernet station address (MAC)"
|
93 |
|
|
flavor data
|
94 |
|
|
default_value {"{0x12, 0x13, 0x14, 0x15, 0x16, 0x17}"}
|
95 |
|
|
description "A static ethernet station address.
|
96 |
|
|
Caution: Booting two systems with the same MAC on the same
|
97 |
|
|
network, will cause severe conflicts."
|
98 |
|
|
active_if !CYGSEM_DEVS_ETH_ARM_FLEXANET_REDBOOT_ESA
|
99 |
|
|
}
|
100 |
|
|
|
101 |
|
|
cdl_option CYGSEM_DEVS_ETH_H8300_EDOSK2674_ETH0_SET_ESA {
|
102 |
|
|
display "Use the RedBoot ESA (MAC address)"
|
103 |
|
|
default_value 0
|
104 |
|
|
flavor bool
|
105 |
|
|
description "
|
106 |
|
|
Use the ESA that is stored as a RedBoot variable instead of
|
107 |
|
|
a static ESA."
|
108 |
|
|
}
|
109 |
|
|
|
110 |
|
|
}
|
111 |
|
|
|
112 |
|
|
# EOF flexanet_eth_drivers.cdl
|