Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/broadcom Unwrap short line. Other whitespace.
details: https://anonhg.NetBSD.org/src/rev/7f1f1e82b905
branches: trunk
changeset: 782032:7f1f1e82b905
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Oct 13 07:57:50 2012 +0000
description:
Unwrap short line. Other whitespace.
diffstat:
sys/arch/arm/broadcom/bcm2835_mbox_subr.c | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diffs (61 lines):
diff -r 7e37abf3a1af -r 7f1f1e82b905 sys/arch/arm/broadcom/bcm2835_mbox_subr.c
--- a/sys/arch/arm/broadcom/bcm2835_mbox_subr.c Sat Oct 13 07:31:25 2012 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_mbox_subr.c Sat Oct 13 07:57:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_mbox_subr.c,v 1.1 2012/08/22 13:19:47 jakllsch Exp $ */
+/* $NetBSD: bcm2835_mbox_subr.c,v 1.2 2012/10/13 07:57:50 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_mbox_subr.c,v 1.1 2012/08/22 13:19:47 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_mbox_subr.c,v 1.2 2012/10/13 07:57:50 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -54,15 +54,14 @@
uint8_t rchan;
uint32_t rdata;
- bus_space_barrier(iot, ioh, 0,
- BCM2835_MBOX_SIZE, BUS_SPACE_BARRIER_READ);
+ bus_space_barrier(iot, ioh, 0, BCM2835_MBOX_SIZE,
+ BUS_SPACE_BARRIER_READ);
if ((bus_space_read_4(iot, ioh,
BCM2835_MBOX0_STATUS) & BCM2835_MBOX_STATUS_EMPTY) != 0)
continue;
- mbox = bus_space_read_4(iot, ioh,
- BCM2835_MBOX0_READ);
+ mbox = bus_space_read_4(iot, ioh, BCM2835_MBOX0_READ);
rchan = BCM2835_MBOX_CHAN(mbox);
rdata = BCM2835_MBOX_DATA(mbox);
@@ -82,17 +81,17 @@
for (;;) {
- bus_space_barrier(iot, ioh, 0,
- BCM2835_MBOX_SIZE, BUS_SPACE_BARRIER_READ);
+ bus_space_barrier(iot, ioh, 0, BCM2835_MBOX_SIZE,
+ BUS_SPACE_BARRIER_READ);
if ((rdata = bus_space_read_4(iot, ioh,
BCM2835_MBOX0_STATUS) & BCM2835_MBOX_STATUS_FULL) == 0)
break;
}
- bus_space_write_4(iot, ioh,
- BCM2835_MBOX1_WRITE, BCM2835_MBOX_MSG(chan, data));
+ bus_space_write_4(iot, ioh, BCM2835_MBOX1_WRITE,
+ BCM2835_MBOX_MSG(chan, data));
- bus_space_barrier(iot, ioh, 0,
- BCM2835_MBOX_SIZE, BUS_SPACE_BARRIER_WRITE);
+ bus_space_barrier(iot, ioh, 0, BCM2835_MBOX_SIZE,
+ BUS_SPACE_BARRIER_WRITE);
}
Home |
Main Index |
Thread Index |
Old Index