Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Expose usbd_xfer_isread
details: https://anonhg.NetBSD.org/src/rev/37f7bd8024ff
branches: nick-nhusb
changeset: 334158:37f7bd8024ff
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Mar 18 15:45:45 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 0aa387e47e48 -r 37f7bd8024ff sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Wed Mar 18 07:37:02 2015 +0000
+++ b/sys/dev/usb/usbdi.c Wed Mar 18 15:45:45 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.162.2.20 2015/03/17 19:02:44 skrll Exp $ */
+/* $NetBSD: usbdi.c,v 1.162.2.21 2015/03/18 15:45:45 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.162.2.20 2015/03/17 19:02:44 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.21 2015/03/18 15:45:45 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -67,16 +67,6 @@
Static usbd_status usbd_open_pipe_ival
(usbd_interface_handle, uint8_t, uint8_t, usbd_pipe_handle *, int);
-static inline int
-usbd_xfer_isread(usbd_xfer_handle xfer)
-{
- if (xfer->ux_rqflags & URQ_REQUEST)
- return xfer->ux_request.bmRequestType & UT_READ;
- else
- return (xfer->ux_pipe->up_endpoint->ue_edesc->bEndpointAddress &
- UE_DIR_IN);
-}
-
#if defined(USB_DEBUG)
void
usbd_dump_iface(struct usbd_interface *iface)
diff -r 0aa387e47e48 -r 37f7bd8024ff sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h Wed Mar 18 07:37:02 2015 +0000
+++ b/sys/dev/usb/usbdivar.h Wed Mar 18 15:45:45 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdivar.h,v 1.109.2.14 2015/03/05 09:06:20 skrll Exp $ */
+/* $NetBSD: usbdivar.h,v 1.109.2.15 2015/03/18 15:45:45 skrll Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -329,6 +329,16 @@
void usb_needs_reattach(usbd_device_handle);
void usb_schedsoftintr(struct usbd_bus *);
+static inline int
+usbd_xfer_isread(usbd_xfer_handle xfer)
+{
+ if (xfer->ux_rqflags & URQ_REQUEST)
+ return xfer->ux_request.bmRequestType & UT_READ;
+
+ return xfer->ux_pipe->up_endpoint->ue_edesc->bEndpointAddress &
+ UE_DIR_IN;
+}
+
/*
* These macros reflect the current locking scheme. They might change.
*/
Home |
Main Index |
Thread Index |
Old Index