Mon Feb 14 09:22:30 2022 UTC ()
usbdi(9): Fix missing includes in usbdi.h.


(riastradh)
diff -r1.103 -r1.104 src/sys/dev/usb/usbdi.h

cvs diff -r1.103 -r1.104 src/sys/dev/usb/usbdi.h (expand / switch to unified diff)

--- src/sys/dev/usb/usbdi.h 2021/06/13 14:48:10 1.103
+++ src/sys/dev/usb/usbdi.h 2022/02/14 09:22:30 1.104
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: usbdi.h,v 1.103 2021/06/13 14:48:10 riastradh Exp $ */ 1/* $NetBSD: usbdi.h,v 1.104 2022/02/14 09:22:30 riastradh Exp $ */
2/* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */ 2/* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */
3 3
4/* 4/*
5 * Copyright (c) 1998 The NetBSD Foundation, Inc. 5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * This code is derived from software contributed to The NetBSD Foundation 8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Lennart Augustsson (lennart@augustsson.net) at 9 * by Lennart Augustsson (lennart@augustsson.net) at
10 * Carlstedt Research & Technology. 10 * Carlstedt Research & Technology.
11 * 11 *
12 * Redistribution and use in source and binary forms, with or without 12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions 13 * modification, are permitted provided that the following conditions
14 * are met: 14 * are met:
@@ -24,26 +24,30 @@ @@ -24,26 +24,30 @@
24 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE. 31 * POSSIBILITY OF SUCH DAMAGE.
32 */ 32 */
33 33
34#ifndef _USBDI_H_ 34#ifndef _USBDI_H_
35#define _USBDI_H_ 35#define _USBDI_H_
36 36
 37#include <sys/types.h>
 38
 39#include <dev/usb/usb.h>
 40
37struct usbd_bus; 41struct usbd_bus;
38struct usbd_device; 42struct usbd_device;
39struct usbd_interface; 43struct usbd_interface;
40struct usbd_pipe; 44struct usbd_pipe;
41struct usbd_xfer; 45struct usbd_xfer;
42 46
43typedef enum { /* keep in sync with usbd_error_strs */ 47typedef enum { /* keep in sync with usbd_error_strs */
44 USBD_NORMAL_COMPLETION = 0, /* must be 0 */ 48 USBD_NORMAL_COMPLETION = 0, /* must be 0 */
45 USBD_IN_PROGRESS, /* 1 */ 49 USBD_IN_PROGRESS, /* 1 */
46 /* errors */ 50 /* errors */
47 USBD_PENDING_REQUESTS, /* 2 */ 51 USBD_PENDING_REQUESTS, /* 2 */
48 USBD_NOT_STARTED, /* 3 */ 52 USBD_NOT_STARTED, /* 3 */
49 USBD_INVAL, /* 4 */ 53 USBD_INVAL, /* 4 */