git: c43a85045166 - main - libusb: add libusb_supported_speed enum

From: ShengYi Hung <aokblast_at_FreeBSD.org>
Date: Wed, 06 Aug 2025 14:20:29 UTC
The branch main has been updated by aokblast:

URL: https://cgit.FreeBSD.org/src/commit/?id=c43a8504516643e747488011ede347b9fe2d7777

commit c43a8504516643e747488011ede347b9fe2d7777
Author:     ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2025-08-05 16:09:48 +0000
Commit:     ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2025-08-06 14:05:40 +0000

    libusb: add libusb_supported_speed enum
    
    Approved by:    lwhsu (mentor), markj (mentor)
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D51743
---
 lib/libusb/libusb.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/libusb/libusb.h b/lib/libusb/libusb.h
index 30a07acb306e..85e24bc68474 100644
--- a/lib/libusb/libusb.h
+++ b/lib/libusb/libusb.h
@@ -176,6 +176,13 @@ enum libusb_usb_2_0_extension_attributes {
 	LIBUSB_BM_LPM_SUPPORT = 0x2,
 };
 
+enum libusb_supported_speed {
+	LIBUSB_LOW_SPEED_OPERATION = (1 << 0),
+	LIBUSB_FULL_SPEED_OPERATION = (1 << 1),
+	LIBUSB_HIGH_SPEED_OPERATION = (1 << 2),
+	LIBUSB_SUPER_SPEED_OPERATION = (1 << 3),
+};
+
 enum libusb_bos_type {
 	LIBUSB_BT_WIRELESS_USB_DEVICE_CAPABILITY = 1,
 	LIBUSB_BT_USB_2_0_EXTENSION = 2,