Skip to content

Commit fa1c094

Browse files
yangsong8-a1Alan Carvalho de Assis
authored andcommitted
usbdev: add usb3.0 ep companion struct and descriptor
Signed-off-by: yangsong8 <[email protected]>
1 parent 1dd38fe commit fa1c094

File tree

17 files changed

+1528
-351
lines changed

17 files changed

+1528
-351
lines changed

drivers/usbdev/Kconfig

Lines changed: 190 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,20 @@ config PL2303_EPBULK_SSSIZE
345345
Max package size for the bulk endpoint if super speed mode.
346346
Default 1024.
347347

348+
config PL2303_EPBULK_MAXBURST
349+
int "BULK endpoints super speed MAXBURST size"
350+
default 0
351+
---help---
352+
Max burst size for the bulk endpoint if super speed mode.
353+
Default 0.
354+
355+
config PL2303_EPBULK_MAXSTREAM
356+
int "BULK endpoints super speed MAXSTREAM size"
357+
default 0
358+
---help---
359+
Max stream size for the bulk endpoint if super speed mode.
360+
Default 0.
361+
348362
endif # USBDEV_SUPERSPEED
349363

350364
config PL2303_NWRREQS
@@ -500,6 +514,13 @@ config CDCACM_EPINTIN_SSSIZE
500514
Max package size for the interrupt IN endpoint if super speed mode.
501515
Default 64.
502516

517+
config CDCACM_EPINTIN_MAXBURST
518+
int "Interrupt IN super speed MAXBURST size"
519+
default 0
520+
---help---
521+
Max burst size for the interrupt IN endpoint if super speed mode.
522+
Default 0.
523+
503524
endif # USBDEV_SUPERSPEED
504525

505526
if !CDCACM_COMPOSITE
@@ -526,7 +547,7 @@ config CDCACM_EPBULKOUT_FSSIZE
526547
if USBDEV_DUALSPEED
527548

528549
config CDCACM_EPBULKOUT_HSSIZE
529-
int "Bulk OUT out high speed MAXPACKET size"
550+
int "Bulk OUT high speed MAXPACKET size"
530551
default 512
531552
---help---
532553
Max package size for the bulk OUT endpoint if high speed mode.
@@ -537,12 +558,26 @@ endif # USBDEV_DUALSPEED
537558
if USBDEV_SUPERSPEED
538559

539560
config CDCACM_EPBULKOUT_SSSIZE
540-
int "Bulk OUT out super speed MAXPACKET size"
561+
int "Bulk OUT super speed MAXPACKET size"
541562
default 1024
542563
---help---
543564
Max package size for the bulk OUT endpoint if super speed mode.
544565
Default 1024.
545566

567+
config CDCACM_EPBULKOUT_MAXBURST
568+
int "Bulk OUT super speed MAXBURST size"
569+
default 0
570+
---help---
571+
Max burst size for the bulk OUT endpoint if super speed mode.
572+
Default 0.
573+
574+
config CDCACM_EPBULKOUT_MAXSTREAM
575+
int "Bulk OUT super speed MAXSTREAM size"
576+
default 0
577+
---help---
578+
Max stream size for the bulk OUT endpoint if super speed mode.
579+
Default 0.
580+
546581
endif # USBDEV_SUPERSPEED
547582

548583
if !CDCACM_COMPOSITE
@@ -586,6 +621,20 @@ config CDCACM_EPBULKIN_SSSIZE
586621
Max package size for the bulk IN endpoint if super speed mode.
587622
Default 1024.
588623

624+
config CDCACM_EPBULKIN_MAXBURST
625+
int "Bulk IN super speed MAXBURST size"
626+
default 0
627+
---help---
628+
Max burst size for the bulk IN endpoint if super speed mode.
629+
Default 0.
630+
631+
config CDCACM_EPBULKIN_MAXSTREAM
632+
int "Bulk IN super speed MAXSTREAM size"
633+
default 0
634+
---help---
635+
Max stream size for the bulk IN endpoint if super speed mode.
636+
Default 0.
637+
589638
endif # USBDEV_SUPERSPEED
590639

591640
config CDCACM_NRDREQS
@@ -749,6 +798,20 @@ config USBADB_EPBULKOUT_SSSIZE
749798
Max package size for the bulk OUT endpoint if super speed mode.
750799
Default 1024.
751800

801+
config USBADB_EPBULKOUT_MAXBURST
802+
int "Bulk OUT super speed MAXBURST size"
803+
default 0
804+
---help---
805+
Max burst size for the bulk OUT endpoint if super speed mode.
806+
Default 0.
807+
808+
config USBADB_EPBULKOUT_MAXSTREAM
809+
int "Bulk OUT super speed MAXBSTREAM size"
810+
default 0
811+
---help---
812+
Max stream size for the bulk OUT endpoint if super speed mode.
813+
Default 0.
814+
752815
endif # USBDEV_SUPERSPEED
753816

754817
config USBADB_EPBULKIN_FSSIZE
@@ -778,6 +841,20 @@ config USBADB_EPBULKIN_SSSIZE
778841
Max package size for the bulk IN endpoint if super speed mode.
779842
Default 1024.
780843

844+
config USBADB_EPBULKIN_MAXBURST
845+
int "Bulk IN super speed MAXBURST size"
846+
default 0
847+
---help---
848+
Max burst size for the bulk IN endpoint if super speed mode.
849+
Default 0.
850+
851+
config USBADB_EPBULKIN_MAXSTREAM
852+
int "Bulk IN super speed MAXBSTREAM size"
853+
default 0
854+
---help---
855+
Max stream size for the bulk IN endpoint if super speed mode.
856+
Default 0.
857+
781858
endif # USBDEV_SUPERSPEED
782859

783860
config USBADB_NRDREQS
@@ -1228,6 +1305,13 @@ config CDCECM_EPINTIN_SSSIZE
12281305
Max package size for the interrupt IN endpoint if super speed mode.
12291306
Default 64.
12301307

1308+
config CDCECM_EPINTIN_MAXBURST
1309+
int "Interrupt IN super speed MAXBURST size"
1310+
default 0
1311+
---help---
1312+
Max burst size for the interrupt IN endpoint if super speed mode.
1313+
Default 0.
1314+
12311315
endif # USBDEV_SUPERSPEED
12321316

12331317
if !CDCECM_COMPOSITE
@@ -1271,6 +1355,20 @@ config CDCECM_EPBULKOUT_SSSIZE
12711355
Max package size for the bulk OUT endpoint if super speed mode.
12721356
Default 1024.
12731357

1358+
config CDCECM_EPBULKOUT_MAXBURST
1359+
int "Bulk OUT super speed MAXBURST size"
1360+
default 0
1361+
---help---
1362+
Max burst size for the bulk OUT endpoint if super speed mode.
1363+
Default 0.
1364+
1365+
config CDCECM_EPBULKOUT_MAXSTREAM
1366+
int "Bulk OUT super speed MAXSTREAM size"
1367+
default 0
1368+
---help---
1369+
Max stream size for the bulk OUT endpoint if super speed mode.
1370+
Default 0.
1371+
12741372
endif # USBDEV_SUPERSPEED
12751373

12761374
if !CDCECM_COMPOSITE
@@ -1314,6 +1412,20 @@ config CDCECM_EPBULKIN_SSSIZE
13141412
Max package size for the bulk IN endpoint if super speed mode.
13151413
Default 1024.
13161414

1415+
config CDCECM_EPBULKIN_MAXBURST
1416+
int "Bulk IN super speed MAXBURST size"
1417+
default 0
1418+
---help---
1419+
Max burst size for the bulk IN endpoint if super speed mode.
1420+
Default 0.
1421+
1422+
config CDCECM_EPBULKIN_MAXSTREAM
1423+
int "Bulk IN super speed MAXSTREAM size"
1424+
default 0
1425+
---help---
1426+
Max stream size for the bulk IN endpoint if super speed mode.
1427+
Default 0.
1428+
13171429
endif # USBDEV_SUPERSPEED
13181430

13191431
if !CDCECM_COMPOSITE
@@ -1436,6 +1548,13 @@ config CDCNCM_EPINTIN_SSSIZE
14361548
Max package size for the interrupt IN endpoint if super speed mode.
14371549
Default 64.
14381550

1551+
config CDCNCM_EPINTIN_MAXBURST
1552+
int "Interrupt IN super speed MAXBURST size"
1553+
default 0
1554+
---help---
1555+
Max burst size for the interrupt IN endpoint if super speed mode.
1556+
Default 0.
1557+
14391558
endif # USBDEV_SUPERSPEED
14401559

14411560
if !CDCNCM_COMPOSITE
@@ -1479,6 +1598,20 @@ config CDCNCM_EPBULKOUT_SSSIZE
14791598
Max package size for the bulk OUT endpoint if super speed mode.
14801599
Default 1024.
14811600

1601+
config CDCNCM_EPBULKOUT_MAXBURST
1602+
int "Bulk OUT super speed MAXBURST size"
1603+
default 0
1604+
---help---
1605+
Max burst size for the bulk OUT endpoint if super speed mode.
1606+
Default 0.
1607+
1608+
config CDCNCM_EPBULKOUT_MAXSTREAM
1609+
int "Bulk OUT super speed MAXSTREAM size"
1610+
default 0
1611+
---help---
1612+
Max stream size for the bulk OUT endpoint if super speed mode.
1613+
Default 0.
1614+
14821615
endif # USBDEV_SUPERSPEED
14831616

14841617
if !CDCNCM_COMPOSITE
@@ -1522,6 +1655,20 @@ config CDCNCM_EPBULKIN_SSSIZE
15221655
Max package size for the bulk IN endpoint if super speed mode.
15231656
Default 1024.
15241657

1658+
config CDCNCM_EPBULKIN_MAXBURST
1659+
int "Bulk IN super speed MAXBURST size"
1660+
default 0
1661+
---help---
1662+
Max burst size for the bulk IN endpoint if super speed mode.
1663+
Default 0.
1664+
1665+
config CDCNCM_EPBULKIN_MAXSTREAM
1666+
int "Bulk IN super speed MAXSTREAM size"
1667+
default 0
1668+
---help---
1669+
Max stream size for the bulk IN endpoint if super speed mode.
1670+
Default 0.
1671+
15251672
endif # USBDEV_SUPERSPEED
15261673

15271674
if !CDCNCM_COMPOSITE
@@ -1678,7 +1825,21 @@ config USBMTP_EPBULKOUT_SSSIZE
16781825
Max package size for the bulk OUT endpoint if Super Speed mode.
16791826
Default 1024.
16801827

1681-
endif # USBDEV_DUALSPEED
1828+
config USBMTP_EPBULKOUT_MAXBURST
1829+
int "Bulk OUT Super Speed MAXBURST size"
1830+
default 0
1831+
---help---
1832+
Max burst size for the bulk OUT endpoint if Super Speed mode.
1833+
Default 0.
1834+
1835+
config USBMTP_EPBULKOUT_MAXSTREAM
1836+
int "Bulk OUT Super Speed MAXSTREAM size"
1837+
default 0
1838+
---help---
1839+
Max stream size for the bulk OUT endpoint if Super Speed mode.
1840+
Default 0.
1841+
1842+
endif # USBDEV_SUPERSPEED
16821843

16831844
config USBMTP_EPBULKIN_FSSIZE
16841845
int "Bulk IN Full Speed MAXPACKET size"
@@ -1707,7 +1868,21 @@ config USBMTP_EPBULKIN_SSSIZE
17071868
Max package size for the bulk IN endpoint if Super Speed mode.
17081869
Default 1024.
17091870

1710-
endif # USBDEV_DUALSPEED
1871+
config USBMTP_EPBULKIN_MAXBURST
1872+
int "Bulk IN Super Speed MAXBURST size"
1873+
default 0
1874+
---help---
1875+
Max burst size for the bulk IN endpoint if Super Speed mode.
1876+
Default 0.
1877+
1878+
config USBMTP_EPBULKIN_MAXSTREAM
1879+
int "Bulk IN Super Speed MAXSTREAM size"
1880+
default 0
1881+
---help---
1882+
Max stream size for the bulk IN endpoint if Super Speed mode.
1883+
Default 0.
1884+
1885+
endif # USBDEV_SUPERSPEED
17111886

17121887
config USBMTP_EPINTIN_SIZE
17131888
int "Interrupt IN MAXPACKET size"
@@ -1721,6 +1896,17 @@ config USBMTP_EPINTIN_INTERVAL
17211896
---help---
17221897
The poll interval for the Interrupt IN endpoint, Default 10.
17231898

1899+
if USBDEV_SUPERSPEED
1900+
1901+
config USBMTP_EPINTIN_MAXBURST
1902+
int "Interrupt IN Super Speed MAXBURST size"
1903+
default 0
1904+
---help---
1905+
Max burst size for the Interrupt IN endpoint if Super Speed mode.
1906+
Default 0.
1907+
1908+
endif # USBDEV_SUPERSPEED
1909+
17241910
config USBMTP_NRDREQS
17251911
int "Number of read requests that can be in flight"
17261912
default 4

0 commit comments

Comments
 (0)