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:
parent
f77a824105
commit
8f4cb0fec3
@ -1023,6 +1023,19 @@ config RNDIS_VERSIONNO
|
||||
default 0x0001
|
||||
|
||||
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
|
||||
|
||||
menuconfig DFU
|
||||
|
@ -75,9 +75,9 @@
|
||||
#define RNDIS_CONFIGIDNONE (0)
|
||||
#define RNDIS_NINTERFACES (2)
|
||||
|
||||
#define RNDIS_EPINTIN_ADDR USB_EPIN(3)
|
||||
#define RNDIS_EPBULKIN_ADDR USB_EPIN(1)
|
||||
#define RNDIS_EPBULKOUT_ADDR USB_EPOUT(2)
|
||||
#define RNDIS_EPINTIN_ADDR USB_EPIN(CONFIG_RNDIS_EPINTIN)
|
||||
#define RNDIS_EPBULKIN_ADDR USB_EPIN(CONFIG_RNDIS_EPBULKIN)
|
||||
#define RNDIS_EPBULKOUT_ADDR USB_EPOUT(CONFIG_RNDIS_EPBULKOUT)
|
||||
#define RNDIS_NUM_EPS (3)
|
||||
|
||||
#define RNDIS_MANUFACTURERSTRID (1)
|
||||
|
Loading…
Reference in New Issue
Block a user