-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKconfig
More file actions
223 lines (174 loc) · 6.2 KB
/
Copy pathKconfig
File metadata and controls
223 lines (174 loc) · 6.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
config USR_LIB_USBCTRL
bool "userspace USB portable control stack"
default y
---help---
Support for communication with USB device driver(s), handling
USB control interface and registering multiple USB interfaces
if USR_LIB_USBCTRL
menu "libxDCI specific options"
config USR_LIB_USBCTRL_STRICT_USB_CONFORMITY
bool "Strict USB 2.0 conformity checks"
default y
---help---
The USB control stack is highly paranoid on its received content (mostly
Setup Packets) and check all fields w. respect for the USB 2.0 standard
specifications. This may break compatibility with laxist USB stacks that
do not fully respect the standard.
config USR_LIB_USBCTRL_DEV_VENDORID
hex "USB Vendor Identifier"
default 0xDEAD
---help---
Device vendor identifier (VID value of [VID:PID] pair)
config USR_LIB_USBCTRL_DEV_SELFPOWERED
bool "USB device is self-powered"
default n
---help---
The USB device is self powered and doesn't requires the host to enpower it
to work properly.
if !USR_LIB_USBCTRL_DIFFERENCIATE_DFU_FW_BUILD
config USR_LIB_USBCTRL_DFU_DEV_PRODUCTID
hex "USB Product Identifier"
default 0xCAFE
---help---
Device product identifier (PID value of [VID:PID] pair)
endif
config USR_LIB_USBCTRL_DIFFERENCIATE_DFU_FW_BUILD
bool "Make Firmware and DFU mode features differenciated"
default n
---help---
libxDCI allows to handle some variations between FW and DFU mode, making DFU and FW
libxDCI footprint, performances, debug levels dedicated to each mode.
This simplifies the stack debugging, reducies the needed storage content to the one
requested in the given mode, and make USB informations (product name, device name and
so on) being mode-specific.
if USR_LIB_USBCTRL_DIFFERENCIATE_DFU_FW_BUILD
# differenciate FW/DFU build case
menu "Firmware-mode specific configuration"
config USR_LIB_USBCTRL_FW_DEBUG
bool "Activate debuggging for Firmware-mode USB Control interaction"
default n
---help---
Activate various debugging for usb control interaction.
This option is efficient only if KERNEL_SERIAL is activated.
config USBCTRL_FW_MAX_CFG
int "Max number of independent configurations in Firmware mode"
default 1
---help---
This define the maximum number of USB alternative configurations. Each
configuration hold one or more interface(s), each handling a list of
endpoint and an associated USB class.
config USBCTRL_FW_MAX_CTX
int "Max number of concurrent contexts supported in firmware mode"
default 2
---help---
This define the maximum number of USB context (meaning USB physical interfaces)
that the libusbctrl can handle in the same time.
Depending on the hardware (and software) design, it can be 1, 2 or in some rare
time more.config USB_FW_DEV_VENDORID
hex "USB Vendor Identifier"
default 0xDEAD
---help---
Device vendor identifier (VID value of [VID:PID] pair)
config USR_LIB_USBCTRL_FW_DEV_PRODUCTID
hex "USB Product Identifier"
default 0xCAFE
---help---
Device product identifier (PID value of [VID:PID] pair)
endmenu
menu "DFU-mode specific configuration"
config USR_LIB_USBCTRL_DFU_DEBUG
bool "Activate debuggging for DFU-mode USB Control interaction"
default n
---help---
Activate various debugging for usb control interaction.
This option is efficient only if KERNEL_SERIAL is activated.
config USBCTRL_DFU_MAX_CFG
int "Max number of independent configurations in DFU mode"
default 1
---help---
This define the maximum number of USB alternative configurations. Each
configuration hold one or more interface(s), each handling a list of
endpoint and an associated USB class.
config USBCTRL_DFU_MAX_CTX
int "Max number of concurrent contexts supported in DFU mode"
default 2
---help---
This define the maximum number of USB context (meaning USB physical interfaces)
that the libusbctrl can handle in the same time.
Depending on the hardware (and software) design, it can be 1, 2 or in some rare
time more.
config USR_LIB_USBCTRL_DFU_DEV_PRODUCTID
hex "USB Product Identifier"
default 0xCAFE
---help---
Device product identifier (PID value of [VID:PID] pair)
endmenu
endif
if !USR_LIB_USBCTRL_DIFFERENCIATE_DFU_FW_BUILD
# unified FW/DFU build case
config USR_LIB_USBCTRL_DEBUG
bool "Activate debuggging for USB Control interaction"
default n
---help---
Activate various debugging for usb control interaction.
This option is efficient only if KERNEL_SERIAL is activated.
config USBCTRL_MAX_CFG
int "Max number of independent configurations"
default 1
---help---
This define the maximum number of USB alternative configurations. Each
configuration hold one or more interface(s), each handling a list of
endpoint and an associated USB class.
config USBCTRL_MAX_CTX
int "Max number of concurrent contexts supported"
default 2
---help---
This define the maximum number of USB context (meaning USB physical interfaces)
that the libusbctrl can handle in the same time.
Depending on the hardware (and software) design, it can be 1, 2 or in some rare
time more.
endif
config USBCTRL_EP0_FIFO_SIZE
int "USB control pipe default reception FIFO size (in bytes)"
default 128
---help---
Specify the receive RAM FIFO size for USB control pipe of the libctrl.
This FIFO size must be at least equal to 3*(ctrl pkt) + 1
config USB_DEV_PRODNAME
string "USB device product name"
default "wookey"
---help---
Device product name, as shown to the host
config USB_DEV_MANUFACTURER
string "USB Manufacturer name"
default "ANSSI"
---help---
Device product manufacturer, as shown to the host
# fIXME: permit autogenerated serial instead of fixed
config USB_DEV_SERIAL
string "USB Serial value"
default "123456789012345678901234"
---help---
Device serial number
config USB_DEV_REVISION
string "USB Device Revision"
default "0001"
---help---
Device current revision
# automatically built blocks
# index of prodname in sent descriptor table
config USB_DEV_PRODNAME_INDEX
int
default 1
---help---
Device product name index in descriptor.
# index of manufacturer in sent descriptor table
config USB_DEV_MANUFACTURER_INDEX
int
default 2
# index of serial number in sent descriptor table
config USB_DEV_SERIAL_INDEX
int "USB device serial index"
default 3
endmenu
endif