Module Name: src Committed By: maxv Date: Tue Mar 31 16:34:25 UTC 2020
Modified Files: src/sys/dev/usb: vhci.c vhci.h Log Message: Publish the request/response structures too. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/usb/vhci.c cvs rdiff -u -r1.1 -r1.2 src/sys/dev/usb/vhci.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/vhci.c diff -u src/sys/dev/usb/vhci.c:1.15 src/sys/dev/usb/vhci.c:1.16 --- src/sys/dev/usb/vhci.c:1.15 Tue Mar 31 16:28:28 2020 +++ src/sys/dev/usb/vhci.c Tue Mar 31 16:34:25 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: vhci.c,v 1.15 2020/03/31 16:28:28 maxv Exp $ */ +/* $NetBSD: vhci.c,v 1.16 2020/03/31 16:34:25 maxv Exp $ */ /* * Copyright (c) 2019-2020 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vhci.c,v 1.15 2020/03/31 16:28:28 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vhci.c,v 1.16 2020/03/31 16:34:25 maxv Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -174,19 +174,6 @@ static const struct usbd_pipe_methods vh * +------------------------------------------------+ */ -typedef struct { - int type; -#define VHCI_REQ_CTRL 0 - - union { - usb_device_request_t ctrl; - } u; -} vhci_request_t; - -typedef struct { - size_t size; -} vhci_response_t; - struct vhci_xfer; typedef struct vhci_packet { Index: src/sys/dev/usb/vhci.h diff -u src/sys/dev/usb/vhci.h:1.1 src/sys/dev/usb/vhci.h:1.2 --- src/sys/dev/usb/vhci.h:1.1 Tue Mar 31 16:28:28 2020 +++ src/sys/dev/usb/vhci.h Tue Mar 31 16:34:25 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: vhci.h,v 1.1 2020/03/31 16:28:28 maxv Exp $ */ +/* $NetBSD: vhci.h,v 1.2 2020/03/31 16:34:25 maxv Exp $ */ /* * Copyright (c) 2019-2020 The NetBSD Foundation, Inc. @@ -29,6 +29,19 @@ * POSSIBILITY OF SUCH DAMAGE. */ +typedef struct { + int type; +#define VHCI_REQ_CTRL 0 + + union { + usb_device_request_t ctrl; + } u; +} vhci_request_t; + +typedef struct { + size_t size; +} vhci_response_t; + struct vhci_ioc_get_info { /* General. */ size_t nports;