1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# usbs_eth.cdl
|
4 |
|
|
#
|
5 |
|
|
# USB slave-side ethernet package.
|
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, 2003 Free Software Foundation, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later
|
16 |
|
|
## version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
## ANY 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
|
24 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use
|
28 |
|
|
## macros or inline functions from this file, or you compile this file
|
29 |
|
|
## and link it with other works to produce a work based on this file,
|
30 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
## the GNU General Public License. However the source code for this file
|
32 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
## General Public License v2.
|
34 |
|
|
##
|
35 |
|
|
## This exception does not invalidate any other reasons why a work based
|
36 |
|
|
## on this file might be covered by the GNU General Public License.
|
37 |
|
|
## -------------------------------------------
|
38 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
# ====================================================================
|
40 |
|
|
######DESCRIPTIONBEGIN####
|
41 |
|
|
#
|
42 |
|
|
# Author(s): bartv
|
43 |
|
|
# Original data: bartv
|
44 |
|
|
# Contributors:
|
45 |
|
|
# Date: 2000-10-04
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
# ====================================================================
|
49 |
|
|
|
50 |
|
|
cdl_package CYGPKG_IO_USB_SLAVE_ETH {
|
51 |
|
|
display "USB slave ethernet support"
|
52 |
|
|
include_dir "cyg/io/usb"
|
53 |
|
|
parent CYGPKG_IO_USB_SLAVE
|
54 |
|
|
requires { CYGHWR_IO_USB_SLAVE_OUT_ENDPOINTS >= 1 }
|
55 |
|
|
requires { CYGHWR_IO_USB_SLAVE_IN_ENDPOINTS >= 1 }
|
56 |
|
|
compile usbseth.c
|
57 |
|
|
implements CYGINT_IO_USB_SLAVE_CLIENTS
|
58 |
|
|
doc ref/io-usb-slave-eth.html
|
59 |
|
|
|
60 |
|
|
description "
|
61 |
|
|
The USB slave ethernet package supports the development
|
62 |
|
|
of USB peripherals which provide an ethernet service to
|
63 |
|
|
the host machine. Such a peripheral could be a simple
|
64 |
|
|
USB-ethernet converter, or it could be rather more
|
65 |
|
|
complicated internally."
|
66 |
|
|
|
67 |
|
|
cdl_component CYGPKG_USBS_ETHDRV {
|
68 |
|
|
display "Provide a driver for a TCP/IP stack."
|
69 |
|
|
requires CYGPKG_IO_ETH_DRIVERS
|
70 |
|
|
implements CYGHWR_NET_DRIVERS
|
71 |
|
|
default_value CYGPKG_NET
|
72 |
|
|
compile -library=libextras.a usbsethdrv.c
|
73 |
|
|
|
74 |
|
|
description "
|
75 |
|
|
The primary purpose of USB slave ethernet support is to provide
|
76 |
|
|
an ethernet service to the USB host. This is very different
|
77 |
|
|
from a conventional network driver which provides a service
|
78 |
|
|
to a TCP/IP stack running inside the peripheral. If this
|
79 |
|
|
component is enabled then the USB-ethernet code will implement
|
80 |
|
|
an eCos network driver, thus supporting both a host-side TCP/IP
|
81 |
|
|
stack and an eCos stack. This raises issues such as enabling
|
82 |
|
|
the bridge code in the stack, and the package documentation
|
83 |
|
|
should be consulted for further information."
|
84 |
|
|
|
85 |
|
|
cdl_option CYGFUN_USBS_ETHDRV_STATISTICS {
|
86 |
|
|
display "Maintain traffic statistics"
|
87 |
|
|
flavor bool
|
88 |
|
|
default_value CYGPKG_SNMPAGENT
|
89 |
|
|
description "
|
90 |
|
|
The USB network device driver can maintain some statistics
|
91 |
|
|
about traffic, for example the number of incoming and
|
92 |
|
|
outgoing packets. These statistics are intended mainly
|
93 |
|
|
for SNMP agent software."
|
94 |
|
|
}
|
95 |
|
|
|
96 |
|
|
cdl_option CYGDAT_USBS_ETHDRV_NAME {
|
97 |
|
|
display "Name to use for this network device"
|
98 |
|
|
flavor data
|
99 |
|
|
default_value { (1 == CYGHWR_NET_DRIVERS) ? "\"eth0\"" : "\"eth1\"" }
|
100 |
|
|
description "
|
101 |
|
|
The name of this network device for control purposes.
|
102 |
|
|
"
|
103 |
|
|
}
|
104 |
|
|
|
105 |
|
|
cdl_option CYGPRI_USBS_ETHDRV_ETH0 {
|
106 |
|
|
display "Enable/disable generic eth0 configury"
|
107 |
|
|
flavor bool
|
108 |
|
|
calculated { "\"eth0\"" == CYGDAT_USBS_ETHDRV_NAME }
|
109 |
|
|
implements CYGHWR_NET_DRIVER_ETH0
|
110 |
|
|
requires !CYGHWR_NET_DRIVER_ETH0_BOOTP
|
111 |
|
|
}
|
112 |
|
|
|
113 |
|
|
cdl_option CYGPRI_USBS_ETHDRV_ETH1 {
|
114 |
|
|
display "Enable/disable generic eth1 configury"
|
115 |
|
|
flavor bool
|
116 |
|
|
calculated { "\"eth1\"" == CYGDAT_USBS_ETHDRV_NAME }
|
117 |
|
|
implements CYGHWR_NET_DRIVER_ETH1
|
118 |
|
|
requires !CYGHWR_NET_DRIVER_ETH1_BOOTP
|
119 |
|
|
}
|
120 |
|
|
}
|
121 |
|
|
|
122 |
|
|
cdl_component CYGPKG_IO_USB_SLAVE_ETH_OPTIONS {
|
123 |
|
|
display "Build options"
|
124 |
|
|
flavor none
|
125 |
|
|
|
126 |
|
|
description "
|
127 |
|
|
Package-specific build options including control over compiler
|
128 |
|
|
flags used only in building this package."
|
129 |
|
|
|
130 |
|
|
cdl_option CYGPKG_IO_USB_SLAVE_ETH_CFLAGS_ADD {
|
131 |
|
|
display "Additional compiler flags"
|
132 |
|
|
flavor data
|
133 |
|
|
no_define
|
134 |
|
|
default_value { "-D_KERNEL -D__ECOS" }
|
135 |
|
|
description "
|
136 |
|
|
This option modifies the set of compiler flags for
|
137 |
|
|
building this package. These flags are used in addition
|
138 |
|
|
to the set of global flags."
|
139 |
|
|
}
|
140 |
|
|
cdl_option CYGPKG_IO_USB_SLAVE_ETH_CFLAGS_REMOVE {
|
141 |
|
|
display "Suppressed compiler flags"
|
142 |
|
|
flavor data
|
143 |
|
|
no_define
|
144 |
|
|
default_value { "" }
|
145 |
|
|
description "
|
146 |
|
|
This option modifies the set of compiler flags for
|
147 |
|
|
building this package. These flags are removed from
|
148 |
|
|
the set of global flags if present."
|
149 |
|
|
}
|
150 |
|
|
}
|
151 |
|
|
}
|