rndis: add endpoint configure

ep3 is not avaliable in dummy hcd, so need to
make the endpoint number configurable.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2022-12-15 13:49:54 +08:00 committed by Xiang Xiao
parent f77a824105
commit 8f4cb0fec3
2 changed files with 16 additions and 3 deletions

View File

@ -1023,6 +1023,19 @@ config RNDIS_VERSIONNO
default 0x0001 default 0x0001
endif # !RNDIS_COMPOSITE endif # !RNDIS_COMPOSITE
config RNDIS_EPBULKIN
int "RNDIS bulk in endpoint number"
default 1
config RNDIS_EPBULKOUT
int "RNDIS bulk out endpoint number"
default 2
config RNDIS_EPINTIN
int "RNDIS interrupt in endpoint number"
default 3
endif # RNDIS endif # RNDIS
menuconfig DFU menuconfig DFU

View File

@ -75,9 +75,9 @@
#define RNDIS_CONFIGIDNONE (0) #define RNDIS_CONFIGIDNONE (0)
#define RNDIS_NINTERFACES (2) #define RNDIS_NINTERFACES (2)
#define RNDIS_EPINTIN_ADDR USB_EPIN(3) #define RNDIS_EPINTIN_ADDR USB_EPIN(CONFIG_RNDIS_EPINTIN)
#define RNDIS_EPBULKIN_ADDR USB_EPIN(1) #define RNDIS_EPBULKIN_ADDR USB_EPIN(CONFIG_RNDIS_EPBULKIN)
#define RNDIS_EPBULKOUT_ADDR USB_EPOUT(2) #define RNDIS_EPBULKOUT_ADDR USB_EPOUT(CONFIG_RNDIS_EPBULKOUT)
#define RNDIS_NUM_EPS (3) #define RNDIS_NUM_EPS (3)
#define RNDIS_MANUFACTURERSTRID (1) #define RNDIS_MANUFACTURERSTRID (1)