annotate packages/io/usb/msd/slave/current/cdl/usbs_msd.cdl @ 2975:faa94c77900c

* ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage function driver. Contributed by Christophe Coutand. [ Bugzilla 1000987 ]
author jld
date Fri, 12 Nov 2010 13:19:06 +0000
parents
children 9843108eda9d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2975
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
1 # ====================================================================
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
2 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
3 # usbs_msd.cdl
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
4 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
5 # USB slave-side mass storage package.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
6 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
7 # ====================================================================
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
8 ## ####ECOSGPLCOPYRIGHTBEGIN####
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
9 ## -------------------------------------------
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
10 ## This file is part of eCos, the Embedded Configurable Operating System.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
11 ## Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
12 ##
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
13 ## eCos is free software; you can redistribute it and/or modify it under
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
14 ## the terms of the GNU General Public License as published by the Free
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
15 ## Software Foundation; either version 2 or (at your option) any later
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
16 ## version.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
17 ##
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
19 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
21 ## for more details.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
22 ##
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
23 ## You should have received a copy of the GNU General Public License
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
24 ## along with eCos; if not, write to the Free Software Foundation, Inc.,
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
25 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
26 ##
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
27 ## As a special exception, if other files instantiate templates or use
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
28 ## macros or inline functions from this file, or you compile this file
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
29 ## and link it with other works to produce a work based on this file,
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
30 ## this file does not by itself cause the resulting work to be covered by
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
31 ## the GNU General Public License. However the source code for this file
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
32 ## must still be made available in accordance with section (3) of the GNU
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
33 ## General Public License v2.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
34 ##
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
35 ## This exception does not invalidate any other reasons why a work based
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
36 ## on this file might be covered by the GNU General Public License.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
37 ## -------------------------------------------
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
38 ## ####ECOSGPLCOPYRIGHTEND####
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
39 # ====================================================================
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
40 ######DESCRIPTIONBEGIN####
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
41 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
42 # Author(s): USB Slave Mass Storage, ccoutand <ccoutand@stmi.com>
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
43 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
44 # Contributors: jld
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
45 # Date: 2010-06-04
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
46 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
47 #####DESCRIPTIONEND####
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
48 # ====================================================================
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
49
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
50 cdl_package CYGPKG_IO_USB_SLAVE_MSD {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
51
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
52 display "USB slave mass storage support"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
53 include_dir "cyg/io/usb"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
54 parent CYGPKG_IO_USB_SLAVE
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
55
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
56 requires { CYGPKG_KERNEL }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
57 requires { CYGPKG_IO_DISK }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
58 requires { CYGHWR_IO_USB_SLAVE_OUT_ENDPOINTS >= 1 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
59 requires { CYGHWR_IO_USB_SLAVE_IN_ENDPOINTS >= 1 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
60
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
61 compile usbs_msd.c usbs_msd_handler.c usbs_msd_scsi.c
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
62
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
63 implements CYGINT_IO_USB_SLAVE_CLIENTS
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
64
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
65 define_proc {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
66 puts $::cdl_system_header "#define CYGDAT_IO_USB_SLAVE_MSD_INL <cyg/io/usb/usbs_msd.inl>"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
67 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
68
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
69 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
70 The USB slave mass storage device (MSD) package supports
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
71 the development of USB peripherals which act has mass storage
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
72 device to the host machine. The actual storage must be implemented
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
73 on top of the disk package."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
74
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
75 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
76 # Mass Storage Device 0
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
77 #
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
78 cdl_component CYGPKG_IO_USB_SLAVE_MSD0 {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
79 display "USB slave mass storage support for device 0"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
80 flavor bool
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
81 default_value 1
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
82 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
83 This option implement the USB MSD device 0."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
84
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
85 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_SUB_CLASS_TYPE {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
86 display "Mass-storage Device USB Sub Class"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
87 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
88 default_value { "SCSI" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
89 legal_values { "SCSI" "RBC" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
90 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
91 Specify the transport protocols and command code systems
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
92 transported by the interface. Currently only the SCSI
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
93 transparent command set is implemented."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
94 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
95
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
96 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_EP0 {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
97 display "Name of EP0 structure"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
98 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
99 default_value { "usbs_at91_ep0" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
100 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
101 The name of the variable that contains the endpoint 0
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
102 structure. This should be set to the EP0 structure for
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
103 the desired USB device driver such as usbs_at91_ep0,
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
104 usbs_sa11x0_ep0, etc"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
105 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
106
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
107 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_EP0_MAX_PACKET_SIZE {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
108 display "The size of EP0"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
109 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
110 default_value 8
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
111 legal_values { 8 16 64 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
112 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
113 The size of the EP0 hardware buffer on the specific USB
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
114 chip used."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
115 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
116
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
117
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
118 cdl_component CYGPKG_IO_USB_SLAVE_MSD0_STATIC_EP {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
119 display "Use static I/O endpoint structures"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
120 flavor bool
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
121 default_value 1
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
122 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
123 Enables the use of static I/O endpoint structures. Some
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
124 USB slave device drivers implement dynamic endpoint
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
125 configuration and therefore require this component to be
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
126 disabled."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
127
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
128 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_TX_EP {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
129 display "The Tx (USB IN) endpoint structure"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
130 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
131 default_value { "usbs_at91_ep1" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
132 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
133 The endpoint structure that corresponds to the selected
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
134 Tx endpoint number. This is dependent on the USBS device
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
135 driver selected, and could be usbs_at91_ep1,
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
136 usbs_sa11x0_ep1, etc"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
137 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
138
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
139 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_RX_EP {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
140 display "The Rx (USB OUT) endpoint structure"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
141 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
142 default_value { "usbs_at91_ep2" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
143 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
144 The endpoint structure that corresponds to the selected
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
145 Rx endpoint number. This is dependent on the USBS device
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
146 driver selected, and could be usbs_at91_ep2,
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
147 usbs_sa11x0_ep2, etc"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
148 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
149 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
150
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
151 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_TX_EP_NUM {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
152 display "Tx (USB IN) endpoint number"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
153 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
154 default_value 1
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
155 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
156 The endpoint that should be used for the device-side
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
157 transmitter, which is the USB IN direction."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
158 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
159
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
160 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_TX_EP_MAX_PACKET_SIZE {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
161 display "Tx (USB IN) endpoint sze"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
162 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
163 default_value 64
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
164 legal_values { 32 64 128 256 512 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
165 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
166 The size of the Tx EP hardware buffer on the specific USB
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
167 chip used."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
168 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
169
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
170 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_RX_EP_NUM {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
171 display "Rx (USB OUT) endpoint number"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
172 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
173 default_value 2
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
174 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
175 The endpoint that should be used for the device-side
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
176 receiver, which is the USB OUT direction."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
177 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
178
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
179 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_RX_EP_MAX_PACKET_SIZE {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
180 display "Rx (USB OUT) endpoint size"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
181 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
182 default_value 64
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
183 legal_values { 32 64 128 256 512}
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
184 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
185 The size of the Rx EP hardware buffer on the specific USB
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
186 chip used."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
187 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
188
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
189 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_VENDOR_ID {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
190 display "USB Forum Vendor ID"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
191 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
192 default_value 0xFFFF
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
193 legal_values 1 to 0xFFFF
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
194 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
195 Each USB vendor has an Vendor ID allocated to it by the
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
196 USB-IF organization. Any arbitrary value can be selected
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
197 for testing provided that it doesn't conflict with devices
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
198 on the development host, but a device should NEVER be
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
199 released publicly without a valid Vendor ID"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
200 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
201
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
202 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_PRODUCT_ID {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
203 display "USB product ID"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
204 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
205 default_value 1
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
206 legal_values 1 to 0xFFFF
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
207 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
208 You are free to select an arbitrary 16-bit Product ID for
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
209 a device. The combination of Vendor ID and Product ID
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
210 uniquely identified a USB device."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
211 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
212
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
213 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_MFG_STR {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
214 display "The Device Vendor's Name (Manufacturer String)"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
215 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
216 default_value { "\"eCos\"" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
217 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
218 The standard USB enumeration allows for a
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
219 manufacturer's name which is normally reported to the
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
220 user when the device is first plugged into the host."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
221 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
222
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
223 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_PRODUCT_STR {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
224 display "The Device Product Name"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
225 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
226 default_value { "\"eCos USB Mass Storage Device\"" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
227 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
228 The standard USB enumeration allows for a product name
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
229 which is normally reported to the user when the device
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
230 is first plugged into the host."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
231 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
232
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
233 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_SERIAL_STR {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
234 display "The Device Product Serial Number"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
235 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
236 default_value { "\"123456789AB\"" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
237 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
238 The standard USB enumeration allows for a serial number."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
239 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
240
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
241 cdl_option CYGDAT_IO_USB_SLAVE_MSD0_LUN0_NAME {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
242 display "LUN0 entry name"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
243 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
244 default_value { "\"/dev/ramdisk0/1\"" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
245 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
246 Specify the logical unit 0 devtab entry name. The default value
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
247 correspond to the partition 1 of the RAM disk created in the
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
248 USBS mass storage example application."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
249 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
250
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
251 cdl_option CYGOPT_IO_USB_SLAVE_MSD0_BUSPOWERED {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
252 display "The Device is bus powered"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
253 default_value 0
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
254 flavor bool
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
255 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
256 Tells the host whether the Device is a bus powered
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
257 device or a self powered device."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
258 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
259
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
260 cdl_option CYGNUM_IO_USB_SLAVE_MSD0_CURRENTDRAW {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
261 display "Maximum current (in mA) drawn from USB bus"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
262 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
263 default_value 100
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
264 legal_values 1 to 500
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
265 requires { (CYGNUM_IO_USB_SLAVE_MSD_CURRENTDRAW > 100)
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
266 implies CYGOPT_IO_USB_SLAVE_MSD_BUSPOWERED }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
267 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
268 The maximum current drawn by the Device from the USB bus.
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
269 It should report the peak value. A self powered device
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
270 can draw up to 100mA, a bus powered device can draw up to
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
271 500mA. (If it is sometimes below 100mA and sometimes over,
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
272 then a transition could be done at runtime between self and
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
273 bus powered modes, but that would be complicated and the
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
274 device would have to return from configured to addressed
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
275 state. For details, see the USB specification.)"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
276 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
277
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
278 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
279
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
280 cdl_option CYGBLD_IO_USB_SLAVE_MSD_DEBUG {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
281 display "Enable debug output from the driver"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
282 default_value 0
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
283 flavor bool
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
284 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
285 The driver may produce debug output which can be
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
286 useful to work out why it is not working as expected."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
287 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
288
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
289 cdl_option CYGBLD_IO_USB_SLAVE_MSD_TRACE {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
290 display "Enable trace output from the driver"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
291 default_value 0
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
292 flavor bool
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
293 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
294 Allow tracing of every USB transaction for debugging
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
295 purpose."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
296 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
297
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
298 cdl_option CYGSEM_IO_USB_SLAVE_MSD_STALL_ENABLE {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
299 display "Enable application to stall endpoints"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
300 default_value 0
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
301 flavor bool
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
302 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
303 A mass storage device must stall one or both bulk endpoints in
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
304 several situations. However, not all USB device drivers seems
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
305 to implement this functionality correctly. Hence this option is
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
306 disable be default. Testing shows that both Linux and Windows can
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
307 handle mass storage with stall disable."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
308 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
309
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
310 cdl_component CYGPKG_IO_USB_SLAVE_MSD_OPTIONS {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
311 display "Build options"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
312 flavor none
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
313
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
314 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
315 Package-specific build options including control over compiler
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
316 flags used only in building this package."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
317
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
318 cdl_option CYGPKG_IO_USB_SLAVE_MSD_CFLAGS_ADD {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
319 display "Additional compiler flags"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
320 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
321 no_define
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
322 default_value { "" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
323 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
324 This option modifies the set of compiler flags for
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
325 building this package. These flags are used in addition
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
326 to the set of global flags."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
327 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
328
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
329 cdl_option CYGPKG_IO_USB_SLAVE_MSD_CFLAGS_REMOVE {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
330 display "Suppressed compiler flags"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
331 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
332 no_define
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
333 default_value { "" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
334 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
335 This option modifies the set of compiler flags for
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
336 building this package. These flags are removed from
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
337 the set of global flags if present."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
338 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
339
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
340 cdl_component CYGBLD_IO_USB_SLAVE_MSD_EXAMPLES {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
341 display "Build example programs"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
342 no_define
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
343 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
344 Enabling this option will cause the example program
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
345 to be built using the normal test case infrastructure."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
346
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
347 cdl_option CYGPKG_IO_USB_SLAVE_MSD_TESTS {
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
348 display "USBS MSD example/test program"
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
349 no_define
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
350 flavor data
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
351 calculated { "tests/usbs_test_ramdisk" }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
352 description "
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
353 usbs_test_ramdisk creates a tiny FAT12 file-system
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
354 on top of a 'ram disk' device. The USB MSD service is
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
355 started and the disk should appear at the host side as
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
356 a regular mass storage device. If the FAT file-system
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
357 package is included, some files will be created prior to
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
358 the USB MSD device to be started."
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
359 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
360 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
361
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
362 }
faa94c77900c * ecos.db, io/usb/msd/slave/current/*: Initial check-in of USB mass storage
jld
parents:
diff changeset
363 }