Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/footbridge Trailing whitespace



details:   https://anonhg.NetBSD.org/src/rev/906b1c5bb854
branches:  trunk
changeset: 985206:906b1c5bb854
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Aug 13 11:40:43 2021 +0000

description:
Trailing whitespace

diffstat:

 sys/arch/arm/footbridge/footbridge.c            |  18 +++++-----
 sys/arch/arm/footbridge/footbridge_clock.c      |  38 ++++++++++++------------
 sys/arch/arm/footbridge/footbridge_com.c        |  22 +++++++-------
 sys/arch/arm/footbridge/footbridge_com_io.c     |   8 ++--
 sys/arch/arm/footbridge/footbridge_intr.h       |   6 +-
 sys/arch/arm/footbridge/footbridge_io.c         |  14 ++++----
 sys/arch/arm/footbridge/footbridge_irqhandler.c |  12 +++---
 sys/arch/arm/footbridge/footbridge_pci.c        |   6 +-
 sys/arch/arm/footbridge/isa/dsrtc.c             |   8 ++--
 sys/arch/arm/footbridge/isa/isa_io.c            |  12 +++---
 sys/arch/arm/footbridge/isa/isa_io_asm.S        |   8 ++--
 sys/arch/arm/footbridge/isa/isa_machdep.c       |  26 ++++++++--------
 12 files changed, 89 insertions(+), 89 deletions(-)

diffs (truncated from 715 to 300 lines):

diff -r db3f10856fac -r 906b1c5bb854 sys/arch/arm/footbridge/footbridge.c
--- a/sys/arch/arm/footbridge/footbridge.c      Thu Aug 12 20:53:18 2021 +0000
+++ b/sys/arch/arm/footbridge/footbridge.c      Fri Aug 13 11:40:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge.c,v 1.28 2021/08/07 16:18:43 thorpej Exp $  */
+/*     $NetBSD: footbridge.c,v 1.29 2021/08/13 11:40:43 skrll Exp $    */
 
 /*
  * Copyright (c) 1997,1998 Mark Brinicombe.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: footbridge.c,v 1.28 2021/08/07 16:18:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: footbridge.c,v 1.29 2021/08/13 11:40:43 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -58,7 +58,7 @@
 #include <arm/footbridge/dc21285reg.h>
 #include <arm/footbridge/dc21285mem.h>
 #include <arm/footbridge/footbridge.h>
- 
+
 /*
  * DC21285 'Footbridge' device
  *
@@ -126,8 +126,8 @@
  * int footbridge_match(device_t parent, cfdata_t cf, void *aux)
  *
  * Just return ok for this if it is device 0
- */ 
- 
+ */
+
 static int
 footbridge_match(device_t parent, cfdata_t cf, void *aux)
 {
@@ -141,7 +141,7 @@
  * void footbridge_attach(device_t parent, device_t dev, void *aux)
  *
  */
-  
+
 static void
 footbridge_attach(device_t parent, device_t self, void *aux)
 {
@@ -188,7 +188,7 @@
            "targ abt", footbridge_intr, sc);
        sc->sc_parity_ih = footbridge_intr_claim(IRQ_PARITY, IPL_HIGH,
            "parity", footbridge_intr, sc);
-       
+
        /* Set up the PCI bus tags */
        footbridge_create_io_bs_tag(&footbridge_pci_io_bs_tag,
            (void *)DC21285_PCI_IO_VBASE);
@@ -220,7 +220,7 @@
                                break;
                mask--;
                mask &= SDRAM_MASK_256MB;
-               
+
                /*
                 * configure the mask, the offset into SDRAM and the address
                 * SDRAM is exposed on the PCI bus.
@@ -255,7 +255,7 @@
        fba.fba_fca.fca_tx_irq = IRQ_SERIAL_TX;
        config_found(self, &fba.fba_fca, footbridge_print,
            CFARGS(.iattr = "footbridge"));
-       
+
        /* Setup fast SA110 cache clean area */
 #ifdef CPU_SA110
        if (cputype == CPU_ID_SA110)
diff -r db3f10856fac -r 906b1c5bb854 sys/arch/arm/footbridge/footbridge_clock.c
--- a/sys/arch/arm/footbridge/footbridge_clock.c        Thu Aug 12 20:53:18 2021 +0000
+++ b/sys/arch/arm/footbridge/footbridge_clock.c        Fri Aug 13 11:40:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_clock.c,v 1.26 2009/07/21 07:35:55 skrll Exp $      */
+/*     $NetBSD: footbridge_clock.c,v 1.27 2021/08/13 11:40:43 skrll Exp $      */
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: footbridge_clock.c,v 1.26 2009/07/21 07:35:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: footbridge_clock.c,v 1.27 2021/08/13 11:40:43 skrll Exp $");
 
 /* Include header files */
 
@@ -88,8 +88,8 @@
  * int clockmatch(device_t parent, cfdata_t cf, void *aux);
  *
  * Just return ok for this if it is device 0
- */ 
- 
+ */
+
 static int
 clockmatch(device_t parent, cfdata_t cf, void *aux)
 {
@@ -105,7 +105,7 @@
  * void clockattach(device_t parent, device_t self, void *aux)
  *
  */
-  
+
 static void
 clockattach(device_t parent, device_t self, void *aux)
 {
@@ -119,7 +119,7 @@
        clock_sc = sc;
 
        /* Cannot do anything until cpu_initclocks() has been called */
-       
+
        aprint_normal("\n");
 }
 #endif
@@ -147,7 +147,7 @@
  * Function called by timer 2 interrupts.
  * This just clears the interrupt condition and calls statclock().
  */
- 
+
 int
 statclockhandler(void *aframe)
 {
@@ -163,12 +163,12 @@
                r = random() & (statvar-1);
        } while (r == 0);
        newint = statmin + (r * statcountperusec);
-       
+
        /* fetch the current count */
        currentclock = bus_space_read_4(clock_sc->sc_iot, clock_sc->sc_ioh,
                    TIMER_2_VALUE);
 
-       /* 
+       /*
         * work out how much time has run, add another usec for time spent
         * here
         */
@@ -178,11 +178,11 @@
                newint -= r;
                r = 0;
        }
-       else 
+       else
                printf("statclockhandler: Statclock overrun\n");
 
 
-       /* 
+       /*
         * update the clock to the new counter, this reloads the existing
         * timer
         */
@@ -193,7 +193,7 @@
        if (r)
                /*
                 * We've completely overrun the previous interval,
-                * make sure we report the correct number of ticks. 
+                * make sure we report the correct number of ticks.
                 */
                statclock(frame);
 
@@ -242,16 +242,16 @@
        /* statint == num in counter to drop by desired herz */
        statint = statprev = clock_sc->sc_statclock_count =
            load_timer(TIMER_2_BASE, herz);
-       
+
        /* Get the total ticks a second */
        countpersecond = statint * herz;
-       
+
        /* now work out how many ticks per usec */
        statcountperusec = countpersecond / 1000000;
 
        /* calculate a variance range of statvar */
        statvarticks = statcountperusec * statvar;
-       
+
        /* minimum is statint - 50% of variant */
        statmin = statint - (statvarticks / 2);
 }
@@ -264,7 +264,7 @@
  * Timer 1 is used for the main system clock (hardclock)
  * Timer 2 is used for the statistics clock (statclock)
  */
- 
+
 void
 cpu_initclocks(void)
 {
@@ -365,7 +365,7 @@
        if (n == 0)
                return;
 
-       /* 
+       /*
         * not calibrated the timer yet, so try to live with this horrible
         * loop!
         *
@@ -388,13 +388,13 @@
                while (n-- > 0) {
                        for (i = delaycount; --i;);
                }
-               return; 
+               return;
        }
 
        last = bus_space_read_4(clock_sc->sc_iot, clock_sc->sc_ioh,
            TIMER_3_VALUE);
        delta = usecs = 0;
-       
+
        while (n > usecs) {
                cur = bus_space_read_4(clock_sc->sc_iot, clock_sc->sc_ioh,
                    TIMER_3_VALUE);
diff -r db3f10856fac -r 906b1c5bb854 sys/arch/arm/footbridge/footbridge_com.c
--- a/sys/arch/arm/footbridge/footbridge_com.c  Thu Aug 12 20:53:18 2021 +0000
+++ b/sys/arch/arm/footbridge/footbridge_com.c  Fri Aug 13 11:40:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_com.c,v 1.39 2020/11/20 18:03:52 thorpej Exp $      */
+/*     $NetBSD: footbridge_com.c,v 1.40 2021/08/13 11:40:43 skrll Exp $        */
 
 /*-
  * Copyright (c) 1997 Mark Brinicombe
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: footbridge_com.c,v 1.39 2020/11/20 18:03:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: footbridge_com.c,v 1.40 2021/08/13 11:40:43 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ddbparam.h"
@@ -89,8 +89,8 @@
 #define HW_FLAG_CONSOLE        0x01
        int                     sc_swflags;
        int                     sc_l_ubrlcr;
-       int                     sc_m_ubrlcr;    
-       int                     sc_h_ubrlcr;    
+       int                     sc_m_ubrlcr;
+       int                     sc_h_ubrlcr;
        char                    *sc_rxbuffer[2];
        char                    *sc_rxbuf;
        int                     sc_rxpos;
@@ -317,7 +317,7 @@
 {
        struct fcom_softc *sc = device_lookup_private(&fcom_cd, minor(dev));
        struct tty *tp = sc->sc_tty;
-       
+
        return (*tp->t_linesw->l_write)(tp, uio, flag);
 }
 
@@ -326,7 +326,7 @@
 {
        struct fcom_softc *sc = device_lookup_private(&fcom_cd, minor(dev));
        struct tty *tp = sc->sc_tty;
- 
+
        return ((*tp->t_linesw->l_poll)(tp, events, l));
 }
 
@@ -336,7 +336,7 @@
        struct fcom_softc *sc = device_lookup_private(&fcom_cd, minor(dev));
        struct tty *tp = sc->sc_tty;
        int error;
-       
+
        if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) !=
            EPASSTHROUGH)
                return error;
@@ -350,9 +350,9 @@
 
        case TIOCSFLAGS:
                error = kauth_authorize_device_tty(l->l_cred,
-                   KAUTH_DEVICE_TTY_PRIVSET, tp); 
+                   KAUTH_DEVICE_TTY_PRIVSET, tp);
                if (error)
-                       return (error); 
+                       return (error);
                sc->sc_swflags = *(int *)data;
                break;
        }
@@ -403,7 +403,7 @@
        }
 
        (void)splx(s);
-       
+
        cl = &tp->t_outq;
        len = q_to_b(cl, buf, 64);
        for (loop = 0; loop < len; ++loop) {
@@ -553,7 +553,7 @@



Home | Main Index | Thread Index | Old Index