Loading drivers/usb/misc/mdm_data_bridge.c +213 −427 File changed.Preview size limit exceeded, changes collapsed. Show changes include/linux/usb/usb_bridge.h +21 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,30 @@ #include <linux/netdevice.h> #include <linux/usb.h> #define MAX_BRIDGE_DEVICES 4 #define BRIDGE_NAME_MAX_LEN 20 #define MAX_INST_NAME_LEN 40 enum bridge_id { USB_BRIDGE_QDSS, USB_BRIDGE_DPL, MAX_BRIDGE_DEVICES, }; static int bridge_name_to_id(const char *name) { if (!name) goto fail; if (!strncasecmp(name, "qdss", MAX_INST_NAME_LEN)) return USB_BRIDGE_QDSS; if (!strncasecmp(name, "dpl", MAX_INST_NAME_LEN)) return USB_BRIDGE_DPL; fail: return -EINVAL; } struct bridge_ops { int (*send_pkt)(void *, void *, size_t actual); void (*send_cbits)(void *, unsigned int); /* flow control */ void (*unthrottle_tx)(void *); Loading Loading
drivers/usb/misc/mdm_data_bridge.c +213 −427 File changed.Preview size limit exceeded, changes collapsed. Show changes
include/linux/usb/usb_bridge.h +21 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,30 @@ #include <linux/netdevice.h> #include <linux/usb.h> #define MAX_BRIDGE_DEVICES 4 #define BRIDGE_NAME_MAX_LEN 20 #define MAX_INST_NAME_LEN 40 enum bridge_id { USB_BRIDGE_QDSS, USB_BRIDGE_DPL, MAX_BRIDGE_DEVICES, }; static int bridge_name_to_id(const char *name) { if (!name) goto fail; if (!strncasecmp(name, "qdss", MAX_INST_NAME_LEN)) return USB_BRIDGE_QDSS; if (!strncasecmp(name, "dpl", MAX_INST_NAME_LEN)) return USB_BRIDGE_DPL; fail: return -EINVAL; } struct bridge_ops { int (*send_pkt)(void *, void *, size_t actual); void (*send_cbits)(void *, unsigned int); /* flow control */ void (*unthrottle_tx)(void *); Loading