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 In uhci_device_isoc_enter define



details:   https://anonhg.NetBSD.org/src/rev/58cad77fde07
branches:  nick-nhusb
changeset: 804559:58cad77fde07
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Feb 27 16:07:01 2016 +0000

description:
In uhci_device_isoc_enter define

        struct uhci_xfer *ux = UHCI_XFER2UXFER(xfer);

and use it.  No functionaly change.

diffstat:

 sys/dev/usb/uhci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r c8c6dfadc4e5 -r 58cad77fde07 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sat Feb 27 15:54:30 2016 +0000
+++ b/sys/dev/usb/uhci.c        Sat Feb 27 16:07:01 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.264.4.61 2016/02/16 21:17:27 skrll Exp $    */
+/*     $NetBSD: uhci.c,v 1.264.4.62 2016/02/27 16:07:01 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.61 2016/02/16 21:17:27 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.62 2016/02/27 16:07:01 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -3035,6 +3035,7 @@
 {
        uhci_softc_t *sc = UHCI_XFER2SC(xfer);
        struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
+       struct uhci_xfer *ux = UHCI_XFER2UXFER(xfer);
        struct isoc *isoc = &upipe->isoc;
        uhci_soft_td_t *std;
        uint32_t buf, len, status, offs;
@@ -3067,7 +3068,7 @@
        }
 
        xfer->ux_status = USBD_IN_PROGRESS;
-       UHCI_XFER2UXFER(xfer)->ux_curframe = next;
+       ux->ux_curframe = next;
 
        buf = DMAADDR(&xfer->ux_dmabuf, 0);
        offs = 0;



Home | Main Index | Thread Index | Old Index