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

Commit 87cce952 authored by Hemant Kumar's avatar Hemant Kumar
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.14 commit <ceb432de347d> ("Merge "perf:
Add workaround for performance monitor irq burst"").

Change-Id: If849fdeab445e99dc914060eae98e1948a48e3d2
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 9cad46b3
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -234,6 +234,8 @@ config USB_F_ACC

config USB_F_QDSS
	tristate
config USB_F_GSI
	tristate

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

@@ -570,6 +572,16 @@ config USB_CONFIGFS_F_QDSS
	  between USB BAM and QDSS BAM for QDSS debug functionality
	  over USB.

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. This driver provides USB RMNET/RNDIS/ECM/MBIM/DPL
	  related functionalities using GSI hardware accelerated data
	  path and control path.

choice
	tristate "USB Gadget precomposed configurations"
	default USB_ETH
+2 −0
Original line number Diff line number Diff line
@@ -62,3 +62,5 @@ usb_f_accessory-y := f_accessory.o
obj-$(CONFIG_USB_F_ACC)         += usb_f_accessory.o
usb_f_qdss-y			:= f_qdss.o u_qdss.o
obj-$(CONFIG_USB_F_QDSS)	+= usb_f_qdss.o
usb_f_gsi-y			:= f_gsi.o rndis.o
obj-$(CONFIG_USB_F_GSI)		+= usb_f_gsi.o
+3455 −0

File added.

Preview size limit exceeded, changes collapsed.

+1420 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -232,6 +232,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