hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/linux/usb.h
....@@ -285,6 +285,11 @@
285285 #define USB_MAXINTERFACES 32
286286 #define USB_MAXIADS (USB_MAXINTERFACES/2)
287287
288
+bool usb_check_bulk_endpoints(
289
+ const struct usb_interface *intf, const u8 *ep_addrs);
290
+bool usb_check_int_endpoints(
291
+ const struct usb_interface *intf, const u8 *ep_addrs);
292
+
288293 /*
289294 * USB Resume Timer: Every Host controller driver should drive the resume
290295 * signalling on the bus for the amount of time defined by this macro.
....@@ -773,11 +778,14 @@
773778 extern int usb_acpi_set_power_state(struct usb_device *hdev, int index,
774779 bool enable);
775780 extern bool usb_acpi_power_manageable(struct usb_device *hdev, int index);
781
+extern int usb_acpi_port_lpm_incapable(struct usb_device *hdev, int index);
776782 #else
777783 static inline int usb_acpi_set_power_state(struct usb_device *hdev, int index,
778784 bool enable) { return 0; }
779785 static inline bool usb_acpi_power_manageable(struct usb_device *hdev, int index)
780786 { return true; }
787
+static inline int usb_acpi_port_lpm_incapable(struct usb_device *hdev, int index)
788
+ { return 0; }
781789 #endif
782790
783791 /* USB autosuspend and autoresume */