Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Publish the request/response structures too.



details:   https://anonhg.NetBSD.org/src/rev/4c4fe4f8f398
branches:  trunk
changeset: 746430:4c4fe4f8f398
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Mar 31 16:34:25 2020 +0000

description:
Publish the request/response structures too.

diffstat:

 sys/dev/usb/vhci.c |  17 ++---------------
 sys/dev/usb/vhci.h |  15 ++++++++++++++-
 2 files changed, 16 insertions(+), 16 deletions(-)

diffs (67 lines):

diff -r ceb87e769248 -r 4c4fe4f8f398 sys/dev/usb/vhci.c
--- a/sys/dev/usb/vhci.c        Tue Mar 31 16:28:28 2020 +0000
+++ b/sys/dev/usb/vhci.c        Tue Mar 31 16:34:25 2020 +0000
@@ -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 @@
  *             +------------------------------------------------+
  */
 
-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 {
diff -r ceb87e769248 -r 4c4fe4f8f398 sys/dev/usb/vhci.h
--- a/sys/dev/usb/vhci.h        Tue Mar 31 16:28:28 2020 +0000
+++ b/sys/dev/usb/vhci.h        Tue Mar 31 16:34:25 2020 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index