sync usb_device_info with usb.h, spotted by Enrik Berkhan, and millert@
authorsthen <sthen@openbsd.org>
Sat, 13 Mar 2021 16:41:47 +0000 (16:41 +0000)
committersthen <sthen@openbsd.org>
Sat, 13 Mar 2021 16:41:47 +0000 (16:41 +0000)
noticed another change

share/man/man4/usb.4

index 5f9d5fd..c138eaa 100644 (file)
@@ -1,4 +1,4 @@
-.\"    $OpenBSD: usb.4,v 1.205 2021/02/04 16:25:38 anton Exp $
+.\"    $OpenBSD: usb.4,v 1.206 2021/03/13 16:41:47 sthen Exp $
 .\"    $NetBSD: usb.4,v 1.15 1999/07/29 14:20:32 augustss Exp $
 .\"
 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd $Mdocdate: February 4 2021 $
+.Dd $Mdocdate: March 13 2021 $
 .Dt USB 4
 .Os
 .Sh NAME
@@ -431,18 +431,16 @@ struct usb_device_info {
        u_int8_t        udi_protocol;
        u_int8_t        udi_config;
        u_int8_t        udi_speed;
-#define USB_SPEED_LOW  1
-#define USB_SPEED_FULL 2
-#define USB_SPEED_HIGH 3
+#define USB_SPEED_LOW  1
+#define USB_SPEED_FULL 2
+#define USB_SPEED_HIGH 3
+#define USB_SPEED_SUPER        4
+       u_int8_t        udi_port;
        int             udi_power;      /* power consumption */
        int             udi_nports;
        char            udi_devnames[USB_MAX_DEVNAMES]
                            [USB_MAX_DEVNAMELEN];
-       u_int8_t        udi_ports[16];  /* hub only */
-#define USB_PORT_ENABLED 0xff
-#define USB_PORT_SUSPENDED 0xfe
-#define USB_PORT_POWERED 0xfd
-#define USB_PORT_DISABLED 0xfc
+       u_int32_t       udi_ports[16];  /* hub only */
        char            udi_serial[USB_MAX_STRING_LEN];
 };
 .Ed