Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0663c43b authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: Add snapshot of USB GSI function driver



This change adds USB GSI function driver which provides USB RMNET/RNDIS/
ECM/MBIM/DPL related functionalities with GSI hardware accelerated path.

This snapshot is taken as of msm-4.4 commit 4195f84bde61 ("qcom-charger:
smb2: add support of PMFALCON").

It removes usage of debug.h and related functionality used for debugging
purpose. IPC logging based debug functionality shall be added later.

Change-Id: Ia6915c76deb084ebb789ae33c509e835502cfcf1
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 8fccfa63
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -230,6 +230,9 @@ config USB_F_CDEV
config USB_F_CCID
	tristate

config USB_F_GSI
	tristate

# this first set of drivers all depend on bulk-capable hardware.

config USB_CONFIGFS
@@ -539,6 +542,13 @@ config USB_CONFIGFS_F_CCID
	  USB CCID function driver creates transport layer between the
	  userspace CCID component and the Windows Host.

config USB_CONFIGFS_F_GSI
	bool "USB GSI function"
	select USB_F_GSI
	depends on USB_CONFIGFS
	help
	  Generic function driver to support h/w acceleration to IPA over GSI.

choice
	tristate "USB Gadget Drivers"
	default USB_ETH
+2 −0
Original line number Diff line number Diff line
@@ -60,3 +60,5 @@ usb_f_cdev-y := f_cdev.o
obj-$(CONFIG_USB_F_CDEV)	+= usb_f_cdev.o
usb_f_ccid-y			:= f_ccid.o
obj-$(CONFIG_USB_F_CCID)   	+= usb_f_ccid.o
usb_f_gsi-y			:= f_gsi.o rndis.o
obj-$(CONFIG_USB_F_GSI)         += usb_f_gsi.o
+3066 −0

File added.

Preview size limit exceeded, changes collapsed.

+1371 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -231,6 +231,7 @@ struct usb_cdc_mbim_extended_desc {

#define USB_CDC_SEND_ENCAPSULATED_COMMAND	0x00
#define USB_CDC_GET_ENCAPSULATED_RESPONSE	0x01
#define USB_CDC_RESET_FUNCTION			0x05
#define USB_CDC_REQ_SET_LINE_CODING		0x20
#define USB_CDC_REQ_GET_LINE_CODING		0x21
#define USB_CDC_REQ_SET_CONTROL_LINE_STATE	0x22