Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Get rid of trailing white space.



details:   https://anonhg.NetBSD.org/src/rev/ff27c775629d
branches:  trunk
changeset: 533976:ff27c775629d
user:      augustss <augustss%NetBSD.org@localhost>
date:      Thu Jul 11 21:14:24 2002 +0000

description:
Get rid of trailing white space.

diffstat:

 sys/dev/usb/ehci.c         |  70 +++++++++++++++++++++++-----------------------
 sys/dev/usb/ezload.c       |  12 +++---
 sys/dev/usb/hid.c          |  34 +++++++++++-----------
 sys/dev/usb/hid.h          |   4 +-
 sys/dev/usb/if_aue.c       |  18 +++++-----
 sys/dev/usb/if_cue.c       |  22 +++++++-------
 sys/dev/usb/if_kue.c       |  14 ++++----
 sys/dev/usb/if_upl.c       |  10 +++---
 sys/dev/usb/if_url.c       |  42 +++++++++++++-------------
 sys/dev/usb/ohcireg.h      |   4 +-
 sys/dev/usb/uaudioreg.h    |   4 +-
 sys/dev/usb/ucom.c         |  42 +++++++++++++-------------
 sys/dev/usb/udsbr.c        |   6 +-
 sys/dev/usb/uftdi.c        |  12 +++---
 sys/dev/usb/uftdireg.h     |  64 +++++++++++++++++++++---------------------
 sys/dev/usb/ugen.c         |  16 +++++-----
 sys/dev/usb/uhci.c         |   8 ++--
 sys/dev/usb/uhcireg.h      |   6 +-
 sys/dev/usb/uhcivar.h      |   8 ++--
 sys/dev/usb/uhid.c         |  14 ++++----
 sys/dev/usb/uhidev.c       |  22 +++++++-------
 sys/dev/usb/uhub.c         |  36 +++++++++++-----------
 sys/dev/usb/uirda.c        |  16 +++++-----
 sys/dev/usb/ukbd.c         |  32 ++++++++++----------
 sys/dev/usb/ukbdmap.c      |  10 +++---
 sys/dev/usb/ulpt.c         |  12 +++---
 sys/dev/usb/umass.c        |  40 +++++++++++++-------------
 sys/dev/usb/umass_isdata.c |  10 +++---
 sys/dev/usb/umass_scsipi.c |  12 +++---
 sys/dev/usb/umassvar.h     |  10 +++---
 sys/dev/usb/umct.c         |  18 +++++-----
 sys/dev/usb/umidi.c        |  10 +++---
 sys/dev/usb/umidivar.h     |   6 +-
 sys/dev/usb/umodem.c       |  16 +++++-----
 sys/dev/usb/ums.c          |  12 +++---
 sys/dev/usb/uplcom.c       |  28 +++++++++---------
 sys/dev/usb/urio.c         |  14 ++++----
 sys/dev/usb/usb.h          |  12 +++---
 sys/dev/usb/usb_mem.c      |  14 ++++----
 sys/dev/usb/usb_mem.h      |   4 +-
 sys/dev/usb/usb_port.h     |   4 +-
 sys/dev/usb/usb_quirks.c   |  10 +++---
 sys/dev/usb/usb_subr.c     |  46 +++++++++++++++---------------
 sys/dev/usb/usbdi.c        |  66 +++++++++++++++++++++---------------------
 sys/dev/usb/usbdi.h        |   8 ++--
 sys/dev/usb/usbdi_util.c   |  24 +++++++-------
 sys/dev/usb/usbdi_util.h   |   8 ++--
 sys/dev/usb/usbdivar.h     |   6 +-
 sys/dev/usb/uscanner.c     |  10 +++---
 sys/dev/usb/usscanner.c    |  16 +++++-----
 sys/dev/usb/uvisor.c       |  14 ++++----
 sys/dev/usb/uvscom.c       |  26 ++++++++--------
 sys/dev/usb/uyap.c         |  10 +++---
 53 files changed, 496 insertions(+), 496 deletions(-)

diffs (truncated from 4100 to 300 lines):

diff -r d549fab2447e -r ff27c775629d sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Thu Jul 11 21:09:00 2002 +0000
+++ b/sys/dev/usb/ehci.c        Thu Jul 11 21:14:24 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.32 2002/06/01 23:51:03 lukem Exp $  */
+/*     $NetBSD: ehci.c,v 1.33 2002/07/11 21:14:24 augustss Exp $       */
 
 /*
  * TODO
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.32 2002/06/01 23:51:03 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.33 2002/07/11 21:14:24 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -231,7 +231,7 @@
        ehci_freex,
 };
 
-Static struct usbd_pipe_methods ehci_root_ctrl_methods = {     
+Static struct usbd_pipe_methods ehci_root_ctrl_methods = {
        ehci_root_ctrl_transfer,
        ehci_root_ctrl_start,
        ehci_root_ctrl_abort,
@@ -240,7 +240,7 @@
        ehci_root_ctrl_done,
 };
 
-Static struct usbd_pipe_methods ehci_root_intr_methods = {     
+Static struct usbd_pipe_methods ehci_root_intr_methods = {
        ehci_root_intr_transfer,
        ehci_root_intr_start,
        ehci_root_intr_abort,
@@ -249,7 +249,7 @@
        ehci_root_intr_done,
 };
 
-Static struct usbd_pipe_methods ehci_device_ctrl_methods = {   
+Static struct usbd_pipe_methods ehci_device_ctrl_methods = {
        ehci_device_ctrl_transfer,
        ehci_device_ctrl_start,
        ehci_device_ctrl_abort,
@@ -258,7 +258,7 @@
        ehci_device_ctrl_done,
 };
 
-Static struct usbd_pipe_methods ehci_device_intr_methods = {   
+Static struct usbd_pipe_methods ehci_device_intr_methods = {
        ehci_device_intr_transfer,
        ehci_device_intr_start,
        ehci_device_intr_abort,
@@ -267,7 +267,7 @@
        ehci_device_intr_done,
 };
 
-Static struct usbd_pipe_methods ehci_device_bulk_methods = {   
+Static struct usbd_pipe_methods ehci_device_bulk_methods = {
        ehci_device_bulk_transfer,
        ehci_device_bulk_start,
        ehci_device_bulk_abort,
@@ -325,7 +325,7 @@
        sc->sc_noport = EHCI_HCS_N_PORTS(sparams);
        cparams = EREAD4(sc, EHCI_HCCPARAMS);
        DPRINTF(("ehci_init: cparams=0x%x\n", cparams));
-       
+
        sc->sc_bus.usbrev = USBREV_2_0;
 
        /* Reset the controller */
@@ -450,7 +450,7 @@
                return (0);
        }
 
-       return (ehci_intr1(sc)); 
+       return (ehci_intr1(sc));
 }
 
 Static int
@@ -475,7 +475,7 @@
 
        EOWRITE4(sc, EHCI_USBSTS, intrs); /* Acknowledge */
        eintrs = intrs & sc->sc_eintrs;
-       DPRINTFN(7, ("ehci_intr: sc=%p intrs=0x%x(0x%x) eintrs=0x%x\n", 
+       DPRINTFN(7, ("ehci_intr: sc=%p intrs=0x%x(0x%x) eintrs=0x%x\n",
                     sc, (u_int)intrs, EOREAD4(sc, EHCI_USBSTS),
                     (u_int)eintrs));
        if (!eintrs)
@@ -489,7 +489,7 @@
                eintrs &= ~EHCI_STS_IAA;
        }
        if (eintrs & (EHCI_STS_INT | EHCI_STS_ERRINT)) {
-               DPRINTF(("ehci_intr1: %s %s\n", 
+               DPRINTF(("ehci_intr1: %s %s\n",
                         eintrs & EHCI_STS_INT ? "INT" : "",
                         eintrs & EHCI_STS_ERRINT ? "ERRINT" : ""));
                usb_schedsoftintr(&sc->sc_bus);
@@ -502,7 +502,7 @@
        }
        if (eintrs & EHCI_STS_PCD) {
                ehci_pcd(sc, sc->sc_intrxfer);
-               /* 
+               /*
                 * Disable PCD interrupt for now, because it will be
                 * on until the port has been reset.
                 */
@@ -623,7 +623,7 @@
                return;
        }
 #endif
-       /* 
+       /*
         * If the last TD is still active we need to check whether there
         * is a an error somewhere in the middle, or whether there was a
         * short packet (SPD and not ACTIVE).
@@ -814,7 +814,7 @@
 
        if (sc->sc_child != NULL)
                rv = config_detach(sc->sc_child, flags);
-       
+
        if (rv != 0)
                return (rv);
 
@@ -1044,7 +1044,7 @@
               EOREAD4(sc, EHCI_PERIODICLISTBASE),
               EOREAD4(sc, EHCI_ASYNCLISTADDR));
        for (i = 1; i <= sc->sc_noport; i++)
-               printf("port %d status=0x%08x\n", i, 
+               printf("port %d status=0x%08x\n", i,
                       EOREAD4(sc, EHCI_PORTSC(i)));
 }
 
@@ -1225,7 +1225,7 @@
 
        switch (xfertype) {
        case UE_CONTROL:
-               err = usb_allocmem(&sc->sc_bus, sizeof(usb_device_request_t), 
+               err = usb_allocmem(&sc->sc_bus, sizeof(usb_device_request_t),
                                   0, &epipe->u.ctl.reqdma);
 #ifdef EHCI_DEBUG
                if (err)
@@ -1288,7 +1288,7 @@
 void
 ehci_rem_qh(ehci_softc_t *sc, ehci_soft_qh_t *sqh, ehci_soft_qh_t *head)
 {
-       ehci_soft_qh_t *p; 
+       ehci_soft_qh_t *p;
 
        SPLUSBCHECK;
        /* XXX */
@@ -1482,7 +1482,7 @@
 #endif
        req = &xfer->request;
 
-       DPRINTFN(4,("ehci_root_ctrl_control type=0x%02x request=%02x\n", 
+       DPRINTFN(4,("ehci_root_ctrl_control type=0x%02x request=%02x\n",
                    req->bmRequestType, req->bRequest));
 
        len = UGETW(req->wLength);
@@ -1497,7 +1497,7 @@
        case C(UR_CLEAR_FEATURE, UT_WRITE_DEVICE):
        case C(UR_CLEAR_FEATURE, UT_WRITE_INTERFACE):
        case C(UR_CLEAR_FEATURE, UT_WRITE_ENDPOINT):
-               /* 
+               /*
                 * DEVICE_REMOTE_WAKEUP and ENDPOINT_HALT are no-ops
                 * for the integrated root hub.
                 */
@@ -1520,7 +1520,7 @@
                        USETW(ehci_devd.idVendor, sc->sc_id_vendor);
                        memcpy(buf, &ehci_devd, l);
                        break;
-               /* 
+               /*
                 * We can't really operate at another speed, but the spec says
                 * we need this descriptor.
                 */
@@ -1532,7 +1532,7 @@
                        totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE);
                        memcpy(buf, &ehci_odevd, l);
                        break;
-               /* 
+               /*
                 * We can't really operate at another speed, but the spec says
                 * we need this descriptor.
                 */
@@ -1700,7 +1700,7 @@
                    EHCI_HCS_P_INCICATOR(EREAD4(sc, EHCI_HCSPARAMS))
                        ? UHD_PORT_IND : 0);
                hubd.bPwrOn2PwrGood = 200; /* XXX can't find out? */
-               for (i = 0, l = sc->sc_noport; l > 0; i++, l -= 8, v >>= 8) 
+               for (i = 0, l = sc->sc_noport; l > 0; i++, l -= 8, v >>= 8)
                        hubd.DeviceRemovable[i++] = 0; /* XXX can't find out? */
                hubd.bDescLength = USB_HUB_DESCRIPTOR_SIZE + i;
                l = min(len, hubd.bDescLength);
@@ -1943,7 +1943,7 @@
 ehci_root_intr_close(usbd_pipe_handle pipe)
 {
        ehci_softc_t *sc = (ehci_softc_t *)pipe->device->bus;
-       
+
        DPRINTF(("ehci_root_intr_close\n"));
 
        sc->sc_intrxfer = NULL;
@@ -2082,13 +2082,13 @@
        for (;;) {
                dataphyspage = EHCI_PAGE(dataphys);
                /* The EHCI hardware can handle at most 5 pages. */
-               if (dataphyslastpage - dataphyspage < 
+               if (dataphyslastpage - dataphyspage <
                    EHCI_QTD_NBUFFERS * EHCI_PAGE_SIZE) {
                        /* we can handle it in this QTD */
                        curlen = len;
                } else {
                        /* must use multiple TDs, fill as much as possible. */
-                       curlen = EHCI_QTD_NBUFFERS * EHCI_PAGE_SIZE - 
+                       curlen = EHCI_QTD_NBUFFERS * EHCI_PAGE_SIZE -
                                 EHCI_PAGE_OFFSET(dataphys);
 #ifdef DIAGNOSTIC
                        if (curlen > len) {
@@ -2204,7 +2204,7 @@
        ehci_free_sqh(sc, epipe->sqh);
 }
 
-/* 
+/*
  * Abort a device request.
  * If this routine is called at splusb() it guarantees that the request
  * will be removed from the hardware scheduling and that the callback
@@ -2258,7 +2258,7 @@
        }
        splx(s);
 
-       /* 
+       /*
         * Step 2: Wait until we know hardware has finished any possible
         * use of the xfer.  Also make sure the soft interrupt routine
         * has run.
@@ -2269,8 +2269,8 @@
        usb_schedsoftintr(&sc->sc_bus);
        tsleep(&sc->sc_softwake, PZERO, "ehciab", 0);
        splx(s);
-               
-       /* 
+
+       /*
         * Step 3: Remove any vestiges of the xfer from the hardware.
         * The complication here is that the hardware may have executed
         * beyond the xfer we're trying to abort.  So as we're scanning
@@ -2449,7 +2449,7 @@
        DPRINTFN(3,("ehci_device_control type=0x%02x, request=0x%02x, "
                    "wValue=0x%04x, wIndex=0x%04x len=%d, addr=%d, endpt=%d\n",
                    req->bmRequestType, req->bRequest, UGETW(req->wValue),
-                   UGETW(req->wIndex), len, addr, 
+                   UGETW(req->wIndex), len, addr,
                    epipe->pipe.endpoint->edesc->bEndpointAddress));
 
        setup = ehci_alloc_sqtd(sc);
@@ -2466,7 +2466,7 @@
        sqh = epipe->sqh;
        epipe->u.ctl.length = len;
 
-       /* XXX 
+       /* XXX
         * Since we're messing with the QH we must know the HC is in sync.
         * This needs to go away since it slows down control transfers.
         * Removing it entails:
@@ -2477,7 +2477,7 @@
        /* Update device address and length since they may have changed. */
        /* XXX This only needs to be done once, but it's too early in open. */
        /* XXXX Should not touch ED here! */
-       sqh->qh.qh_endp = 
+       sqh->qh.qh_endp =
            (sqh->qh.qh_endp & htole32(~(EHCI_QH_ADDRMASK | EHCI_QG_MPLMASK))) |
            htole32(
             EHCI_QH_SET_ADDR(addr) |
@@ -2496,7 +2496,7 @@
                if (err)
                        goto bad3;
                end->nextqtd = stat;
-               end->qtd.qtd_next = 
+               end->qtd.qtd_next =
                end->qtd.qtd_altnext = htole32(stat->physaddr);
                /* Start toggle at 1. */
                /*next->qtd.td_flags |= htole32(EHCI_QTD_TOGGLE);*/
@@ -2698,7 +2698,7 @@
        ehci_abort_xfer(xfer, USBD_CANCELLED);
 }
 
-/* 
+/*
  * Close a device bulk pipe.
  */
 Static void
@@ -2717,7 +2717,7 @@
        ehci_softc_t *sc = (ehci_softc_t *)xfer->pipe->device->bus;
        /*struct ehci_pipe *epipe = (struct ehci_pipe *)xfer->pipe;*/



Home | Main Index | Thread Index | Old Index