Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Wrap long lines and other whitespace. From t-hash.



details:   https://anonhg.NetBSD.org/src/rev/700bd609e4ba
branches:  trunk
changeset: 345699:700bd609e4ba
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jun 05 07:55:28 2016 +0000

description:
Wrap long lines and other whitespace.  From t-hash.

diffstat:

 sys/dev/usb/xhci.c |  17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diffs (82 lines):

diff -r 61e672d30d93 -r 700bd609e4ba sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Sun Jun 05 07:54:01 2016 +0000
+++ b/sys/dev/usb/xhci.c        Sun Jun 05 07:55:28 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.49 2016/06/05 07:54:01 skrll Exp $  */
+/*     $NetBSD: xhci.c,v 1.50 2016/06/05 07:55:28 skrll Exp $  */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.49 2016/06/05 07:54:01 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.50 2016/06/05 07:55:28 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -2015,8 +2015,7 @@
 
 /* Process Command complete events */
 static void
-xhci_event_cmd(struct xhci_softc * const sc,
-    const struct xhci_trb * const trb)
+xhci_event_cmd(struct xhci_softc * const sc, const struct xhci_trb * const trb)
 {
        uint64_t trb_0;
        uint32_t trb_2, trb_3;
@@ -2250,6 +2249,7 @@
        dev->ud_ep0desc.bDescriptorType = UDESC_ENDPOINT;
        dev->ud_ep0desc.bEndpointAddress = USB_CONTROL_ENDPOINT;
        dev->ud_ep0desc.bmAttributes = UE_CONTROL;
+
        /* 4.3,  4.8.2.1 */
        switch (speed) {
        case USB_SPEED_SUPER:
@@ -2355,8 +2355,10 @@
                err = xhci_enable_slot(sc, &slot);
                if (err)
                        goto bad;
+
                xs = &sc->sc_slots[slot];
                dev->ud_hcpriv = xs;
+
                /* 4.3.3 initialize slot structure */
                err = xhci_init_slot(dev, slot);
                if (err) {
@@ -2379,6 +2381,7 @@
 
                /* Allow device time to set new address */
                usbd_delay_ms(dev, USB_SET_ADDRESS_SETTLE);
+
                cp = xhci_slot_get_dcv(sc, xs, XHCI_DCI_SLOT);
                //hexdump("slot context", cp, sc->sc_ctxsz);
                uint8_t addr = XHCI_SCTX_3_DEV_ADDR_GET(cp[3]);
@@ -2394,6 +2397,7 @@
                err = usbd_get_initial_ddesc(dev, dd);
                if (err)
                        goto bad;
+
                /* 4.8.2.1 */
                if (USB_IS_SS(speed)) {
                        if (dd->bMaxPacketSize != 9) {
@@ -2411,6 +2415,7 @@
                DPRINTFN(4, "bMaxPacketSize %u", dd->bMaxPacketSize, 0, 0, 0);
                xhci_update_ep0_mps(sc, xs,
                    UGETW(dev->ud_ep0desc.wMaxPacketSize));
+
                err = usbd_reload_device_desc(dev);
                if (err)
                        goto bad;
@@ -2626,8 +2631,8 @@
  * trb_0 in CMD_COMPLETE TRB and sc->sc_command_addr are identical.
  */
 static usbd_status
-xhci_do_command_locked(struct xhci_softc * const sc, struct xhci_trb * const trb,
-    int timeout)
+xhci_do_command_locked(struct xhci_softc * const sc,
+    struct xhci_trb * const trb, int timeout)
 {
        struct xhci_ring * const cr = &sc->sc_cr;
        usbd_status err;



Home | Main Index | Thread Index | Old Index