Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178117482
D57194.1796017393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D57194.1796017393.diff
View Options
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -761,8 +761,12 @@
USB_SPEED_FULL,
USB_SPEED_HIGH,
USB_SPEED_SUPER,
+ /* Enhanced SuperSpeed links are in USB 3.2 rank order */
+ USB_SPEED_SUPER_PLUS_X2, /* SuperSpeedPlus Gen1x2 = 10 Gbps */
+ USB_SPEED_SUPER_PLUS, /* SuperSpeedPlus Gen2x1 = 10 Gbps */
+ USB_SPEED_SUPER_PLUS_GEN2_X2, /* SuperSpeedPlus Gen2x2 = 20 Gbps */
+ USB_SPEED_MAX,
};
-#define USB_SPEED_MAX (USB_SPEED_SUPER+1)
/*
* The "USB_REV" macros defines all the supported USB revisions.
@@ -774,9 +778,11 @@
USB_REV_1_1,
USB_REV_2_0,
USB_REV_2_5,
- USB_REV_3_0
+ USB_REV_3_0,
+ USB_REV_3_1,
+ USB_REV_3_2,
+ USB_REV_MAX,
};
-#define USB_REV_MAX (USB_REV_3_0+1)
/*
* Supported host controller modes.
@@ -784,9 +790,9 @@
enum usb_hc_mode {
USB_MODE_HOST, /* initiates transfers */
USB_MODE_DEVICE, /* bus transfer target */
- USB_MODE_DUAL /* can be host or device */
+ USB_MODE_DUAL, /* can be host or device */
+ USB_MODE_MAX,
};
-#define USB_MODE_MAX (USB_MODE_DUAL+1)
/*
* The "USB_STATE" enums define all the supported device states.
@@ -797,8 +803,8 @@
USB_STATE_POWERED,
USB_STATE_ADDRESSED,
USB_STATE_CONFIGURED,
+ USB_STATE_MAX,
};
-#define USB_STATE_MAX (USB_STATE_CONFIGURED+1)
/*
* The "USB_EP_MODE" macros define all the currently supported
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 5:43 AM (22 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41354272
Default Alt Text
D57194.1796017393.diff (1 KB)
Attached To
Mode
D57194: usb: Add SSP and SSPx2 speed and move USB_*_MAX into enum
Attached
Detach File
Event Timeline