1 |
27 |
unneback |
# ====================================================================
|
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 Red Hat, 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 version.
|
16 |
|
|
##
|
17 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
## for more details.
|
21 |
|
|
##
|
22 |
|
|
## You should have received a copy of the GNU General Public License along
|
23 |
|
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
##
|
26 |
|
|
## As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
## or inline functions from this file, or you compile this file and link it
|
28 |
|
|
## with other works to produce a work based on this file, this file does not
|
29 |
|
|
## by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
## License. However the source code for this file must still be made available
|
31 |
|
|
## in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
##
|
33 |
|
|
## This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
## this file might be covered by the GNU General Public License.
|
35 |
|
|
##
|
36 |
|
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
## at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): bartv
|
44 |
|
|
# Original data: bartv
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 2000-10-04
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_IO_USB_SLAVE_ETH {
|
52 |
|
|
display "USB slave ethernet support"
|
53 |
|
|
include_dir "cyg/io/usb"
|
54 |
|
|
parent CYGPKG_IO_USB_SLAVE
|
55 |
|
|
requires { CYGHWR_IO_USB_SLAVE_OUT_ENDPOINTS >= 1 }
|
56 |
|
|
requires { CYGHWR_IO_USB_SLAVE_IN_ENDPOINTS >= 1 }
|
57 |
|
|
compile usbseth.c
|
58 |
|
|
implements CYGINT_IO_USB_SLAVE_CLIENTS
|
59 |
|
|
doc ref/io-usb-slave-eth.html
|
60 |
|
|
|
61 |
|
|
description "
|
62 |
|
|
The USB slave ethernet package supports the development
|
63 |
|
|
of USB peripherals which provide an ethernet service to
|
64 |
|
|
the host machine. Such a peripheral could be a simple
|
65 |
|
|
USB-ethernet converter, or it could be rather more
|
66 |
|
|
complicated internally."
|
67 |
|
|
|
68 |
|
|
cdl_component CYGPKG_USBS_ETHDRV {
|
69 |
|
|
display "Provide a driver for a TCP/IP stack."
|
70 |
|
|
requires CYGPKG_IO_ETH_DRIVERS
|
71 |
|
|
implements CYGHWR_NET_DRIVERS
|
72 |
|
|
default_value CYGPKG_NET
|
73 |
|
|
compile -library=libextras.a usbsethdrv.c
|
74 |
|
|
|
75 |
|
|
description "
|
76 |
|
|
The primary purpose of USB slave ethernet support is to provide
|
77 |
|
|
an ethernet service to the USB host. This is very different
|
78 |
|
|
from a conventional network driver which provides a service
|
79 |
|
|
to a TCP/IP stack running inside the peripheral. If this
|
80 |
|
|
component is enabled then the USB-ethernet code will implement
|
81 |
|
|
an eCos network driver, thus supporting both a host-side TCP/IP
|
82 |
|
|
stack and an eCos stack. This raises issues such as enabling
|
83 |
|
|
the bridge code in the stack, and the package documentation
|
84 |
|
|
should be consulted for further information."
|
85 |
|
|
|
86 |
|
|
cdl_option CYGFUN_USBS_ETHDRV_STATISTICS {
|
87 |
|
|
display "Maintain traffic statistics"
|
88 |
|
|
flavor bool
|
89 |
|
|
default_value CYGPKG_SNMPAGENT
|
90 |
|
|
description "
|
91 |
|
|
The USB network device driver can maintain some statistics
|
92 |
|
|
about traffic, for example the number of incoming and
|
93 |
|
|
outgoing packets. These statistics are intended mainly
|
94 |
|
|
for SNMP agent software."
|
95 |
|
|
}
|
96 |
|
|
|
97 |
|
|
cdl_option CYGDAT_USBS_ETHDRV_NAME {
|
98 |
|
|
display "Name to use for this network device"
|
99 |
|
|
flavor data
|
100 |
|
|
default_value { (1 == CYGHWR_NET_DRIVERS) ? "\"eth0\"" : "\"eth1\"" }
|
101 |
|
|
description "
|
102 |
|
|
The name of this network device for control purposes.
|
103 |
|
|
"
|
104 |
|
|
}
|
105 |
|
|
|
106 |
|
|
cdl_option CYGPRI_USBS_ETHDRV_ETH0 {
|
107 |
|
|
display "Enable/disable generic eth0 configury"
|
108 |
|
|
flavor bool
|
109 |
|
|
calculated { "\"eth0\"" == CYGDAT_USBS_ETHDRV_NAME }
|
110 |
|
|
implements CYGHWR_NET_DRIVER_ETH0
|
111 |
|
|
requires !CYGHWR_NET_DRIVER_ETH0_BOOTP
|
112 |
|
|
}
|
113 |
|
|
|
114 |
|
|
cdl_option CYGPRI_USBS_ETHDRV_ETH1 {
|
115 |
|
|
display "Enable/disable generic eth1 configury"
|
116 |
|
|
flavor bool
|
117 |
|
|
calculated { "\"eth1\"" == CYGDAT_USBS_ETHDRV_NAME }
|
118 |
|
|
implements CYGHWR_NET_DRIVER_ETH1
|
119 |
|
|
requires !CYGHWR_NET_DRIVER_ETH1_BOOTP
|
120 |
|
|
}
|
121 |
|
|
}
|
122 |
|
|
}
|