From 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:44:59 +0000 Subject: [PATCH] gmac get mac form eeprom --- kernel/include/linux/usb/composite.h | 19 +++---------------- 1 files changed, 3 insertions(+), 16 deletions(-) diff --git a/kernel/include/linux/usb/composite.h b/kernel/include/linux/usb/composite.h index e836299..4d35220 100644 --- a/kernel/include/linux/usb/composite.h +++ b/kernel/include/linux/usb/composite.h @@ -118,7 +118,6 @@ /** * struct usb_function - describes one function of a configuration * @name: For diagnostics, identifies the function. - * @intf_id: Interface ID * @strings: tables of strings, keyed by identifiers assigned during bind() * and by language IDs provided in control requests * @fs_descriptors: Table of full (or low) speed descriptors, using interface and @@ -164,13 +163,6 @@ * GetStatus() request when the recipient is Interface. * @func_suspend: callback to be called when * SetFeature(FUNCTION_SUSPEND) is reseived - * @func_is_suspended: Tells whether the function is currently in - * Function Suspend state (used in Super Speed mode only). - * @func_wakeup_allowed: Tells whether Function Remote Wakeup has been allowed - * by the USB host (used in Super Speed mode only). - * @func_wakeup_pending: Marks that the function has issued a Function Wakeup - * while the USB bus was suspended and therefore a Function Wakeup - * notification needs to be sent once the USB bus is resumed. * * A single USB function uses one or more interfaces, and should in most * cases support operation at both full and high speeds. Each function is @@ -198,7 +190,6 @@ struct usb_function { const char *name; - int intf_id; struct usb_gadget_strings **strings; struct usb_descriptor_header **fs_descriptors; struct usb_descriptor_header **hs_descriptors; @@ -242,9 +233,6 @@ int (*get_status)(struct usb_function *); int (*func_suspend)(struct usb_function *, u8 suspend_opt); - unsigned func_is_suspended:1; - unsigned func_wakeup_allowed:1; - unsigned func_wakeup_pending:1; /* private: */ /* internals */ struct list_head list; @@ -260,9 +248,6 @@ int usb_function_activate(struct usb_function *); int usb_interface_id(struct usb_configuration *, struct usb_function *); -int usb_func_wakeup(struct usb_function *func); - -int usb_get_func_interface_id(struct usb_function *func); int config_ep_by_speed_and_alt(struct usb_gadget *g, struct usb_function *f, struct usb_ep *_ep, u8 alt); @@ -452,7 +437,7 @@ #define OS_STRING_IDX 0xEE /** - * struct usb_composite_device - represents one composite usb gadget + * struct usb_composite_dev - represents one composite usb gadget * @gadget: read-only, abstracts the gadget's usb peripheral controller * @req: used for control responses; buffer is pre-allocated * @os_desc_req: used for OS descriptors responses; buffer is pre-allocated @@ -540,6 +525,8 @@ extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n); extern void composite_disconnect(struct usb_gadget *gadget); +extern void composite_reset(struct usb_gadget *gadget); + extern int composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl); extern void composite_suspend(struct usb_gadget *gadget); -- Gitblit v1.6.2