Thu Oct 13 06:48:07 2016 UTC ()
Correct misleading indentation.
While here, remove whitespace.

NFC


(maya)
diff -r1.18 -r1.19 src/sys/arch/atari/atari/le_bus.c

cvs diff -r1.18 -r1.19 src/sys/arch/atari/atari/le_bus.c (expand / switch to unified diff)

--- src/sys/arch/atari/atari/le_bus.c 2011/07/01 20:34:05 1.18
+++ src/sys/arch/atari/atari/le_bus.c 2016/10/13 06:48:07 1.19
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: le_bus.c,v 1.18 2011/07/01 20:34:05 dyoung Exp $ */ 1/* $NetBSD: le_bus.c,v 1.19 2016/10/13 06:48:07 maya Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1998 The NetBSD Foundation, Inc. 4 * Copyright (c) 1998 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Leo Weppelman. 8 * by Leo Weppelman.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -20,27 +20,27 @@ @@ -20,27 +20,27 @@
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#include <sys/cdefs.h> 32#include <sys/cdefs.h>
33__KERNEL_RCSID(0, "$NetBSD: le_bus.c,v 1.18 2011/07/01 20:34:05 dyoung Exp $"); 33__KERNEL_RCSID(0, "$NetBSD: le_bus.c,v 1.19 2016/10/13 06:48:07 maya Exp $");
34 34
35#include <sys/types.h> 35#include <sys/types.h>
36#include <sys/param.h> 36#include <sys/param.h>
37#include <sys/systm.h> 37#include <sys/systm.h>
38#include <sys/malloc.h> 38#include <sys/malloc.h>
39#include <sys/bswap.h> 39#include <sys/bswap.h>
40#include <machine/cpu.h> 40#include <machine/cpu.h>
41#include <sys/bus.h> 41#include <sys/bus.h>
42 42
43/* 43/*
44 * This file contains the common functions for using a litte endian (linear) 44 * This file contains the common functions for using a litte endian (linear)
45 * bus on a big endian atari. 45 * bus on a big endian atari.
46 */ 46 */
@@ -258,30 +258,30 @@ static inline uint32_t swap32(uint32_t v @@ -258,30 +258,30 @@ static inline uint32_t swap32(uint32_t v
258bus_space_tag_t 258bus_space_tag_t
259leb_alloc_bus_space_tag(bus_space_tag_t storage) 259leb_alloc_bus_space_tag(bus_space_tag_t storage)
260{ 260{
261 bus_space_tag_t leb_t; 261 bus_space_tag_t leb_t;
262 262
263 /* 263 /*
264 * Allow the caller to specify storage space for the tag. This 264 * Allow the caller to specify storage space for the tag. This
265 * is used during console config (when malloc() can't be used). 265 * is used during console config (when malloc() can't be used).
266 */ 266 */
267 if (storage != NULL) 267 if (storage != NULL)
268 leb_t = storage; 268 leb_t = storage;
269 else { 269 else {
270 if ((leb_t = malloc(sizeof(*leb_t), M_TEMP, M_NOWAIT)) == NULL) 270 if ((leb_t = malloc(sizeof(*leb_t), M_TEMP, M_NOWAIT)) == NULL)
271 return NULL; 271 return NULL;
272 } 272 }
273 memset(leb_t, 0, sizeof(*leb_t)); 273 memset(leb_t, 0, sizeof(*leb_t));
274  274
275 leb_t->abs_p_1 = leb_bus_space_peek_1; 275 leb_t->abs_p_1 = leb_bus_space_peek_1;
276 leb_t->abs_p_2 = leb_bus_space_peek_2; 276 leb_t->abs_p_2 = leb_bus_space_peek_2;
277 leb_t->abs_p_4 = leb_bus_space_peek_4; 277 leb_t->abs_p_4 = leb_bus_space_peek_4;
278 leb_t->abs_p_8 = leb_bus_space_peek_8; 278 leb_t->abs_p_8 = leb_bus_space_peek_8;
279 leb_t->abs_r_1 = leb_bus_space_read_1; 279 leb_t->abs_r_1 = leb_bus_space_read_1;
280 leb_t->abs_r_2 = leb_bus_space_read_2; 280 leb_t->abs_r_2 = leb_bus_space_read_2;
281 leb_t->abs_r_4 = leb_bus_space_read_4; 281 leb_t->abs_r_4 = leb_bus_space_read_4;
282 leb_t->abs_r_8 = leb_bus_space_read_8; 282 leb_t->abs_r_8 = leb_bus_space_read_8;
283 leb_t->abs_rs_1 = leb_bus_space_read_1; 283 leb_t->abs_rs_1 = leb_bus_space_read_1;
284 leb_t->abs_rs_2 = leb_bus_space_read_stream_2; 284 leb_t->abs_rs_2 = leb_bus_space_read_stream_2;
285 leb_t->abs_rs_4 = leb_bus_space_read_stream_4; 285 leb_t->abs_rs_4 = leb_bus_space_read_stream_4;
286 leb_t->abs_rs_8 = leb_bus_space_read_stream_8; 286 leb_t->abs_rs_8 = leb_bus_space_read_stream_8;
287 leb_t->abs_rm_1 = leb_bus_space_read_multi_1; 287 leb_t->abs_rm_1 = leb_bus_space_read_multi_1;