Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Expose usbd_xfer_isread
details: https://anonhg.NetBSD.org/src/rev/833c1e1df589
branches: trunk
changeset: 340112:833c1e1df589
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Aug 23 11:12:01 2015 +0000
description:
Expose usbd_xfer_isread
diffstat:
sys/dev/usb/usbdi.c | 14 ++------------
sys/dev/usb/usbdivar.h | 12 +++++++++++-
2 files changed, 13 insertions(+), 13 deletions(-)
diffs (61 lines):
diff -r cef846a08e4b -r 833c1e1df589 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Sun Aug 23 11:01:24 2015 +0000
+++ b/sys/dev/usb/usbdi.c Sun Aug 23 11:12:01 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.163 2015/02/09 20:12:47 aymeric Exp $ */
+/* $NetBSD: usbdi.c,v 1.164 2015/08/23 11:12:01 skrll Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.163 2015/02/09 20:12:47 aymeric Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.164 2015/08/23 11:12:01 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -65,16 +65,6 @@
Static usbd_status usbd_open_pipe_ival
(usbd_interface_handle, u_int8_t, u_int8_t, usbd_pipe_handle *, int);
-static inline int
-usbd_xfer_isread(usbd_xfer_handle xfer)
-{
- if (xfer->rqflags & URQ_REQUEST)
- return (xfer->request.bmRequestType & UT_READ);
- else
- return (xfer->pipe->endpoint->edesc->bEndpointAddress &
- UE_DIR_IN);
-}
-
#if defined(USB_DEBUG)
void
usbd_dump_iface(struct usbd_interface *iface)
diff -r cef846a08e4b -r 833c1e1df589 sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h Sun Aug 23 11:01:24 2015 +0000
+++ b/sys/dev/usb/usbdivar.h Sun Aug 23 11:12:01 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdivar.h,v 1.109 2014/09/06 10:54:04 skrll Exp $ */
+/* $NetBSD: usbdivar.h,v 1.110 2015/08/23 11:12:01 skrll Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -325,6 +325,16 @@
void usb_needs_reattach(usbd_device_handle);
void usb_schedsoftintr(struct usbd_bus *);
+static inline int
+usbd_xfer_isread(struct usbd_xfer *xfer)
+{
+ if (xfer->rqflags & URQ_REQUEST)
+ return xfer->request.bmRequestType & UT_READ;
+
+ return xfer->pipe->endpoint->edesc->bEndpointAddress &
+ UE_DIR_IN;
+}
+
/*
* These macros reflect the current locking scheme. They might change.
*/
Home |
Main Index |
Thread Index |
Old Index