diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 06:59:30 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-01 04:00:22 -0500 |
commit | 7034228792cc561e79ff8600f02884bd4c80e287 (patch) | |
tree | 89b77af37d087d9de236fc5d21f60bf552d0a2c6 /arch/mips/fw/sni | |
parent | 405ab01c70e18058d9c01a1256769a61fc65413e (diff) |
MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/fw/sni')
-rw-r--r-- | arch/mips/fw/sni/sniprom.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/mips/fw/sni/sniprom.c b/arch/mips/fw/sni/sniprom.c index 96ba99202758..2c2cb182af4e 100644 --- a/arch/mips/fw/sni/sniprom.c +++ b/arch/mips/fw/sni/sniprom.c | |||
@@ -28,20 +28,20 @@ | |||
28 | * registers | 28 | * registers |
29 | */ | 29 | */ |
30 | #define PROM_GET_MEMCONF 58 | 30 | #define PROM_GET_MEMCONF 58 |
31 | #define PROM_GET_HWCONF 61 | 31 | #define PROM_GET_HWCONF 61 |
32 | 32 | ||
33 | #define PROM_VEC (u64 *)CKSEG1ADDR(0x1fc00000) | 33 | #define PROM_VEC (u64 *)CKSEG1ADDR(0x1fc00000) |
34 | #define PROM_ENTRY(x) (PROM_VEC + (x)) | 34 | #define PROM_ENTRY(x) (PROM_VEC + (x)) |
35 | 35 | ||
36 | #define ___prom_putchar ((int *(*)(int))PROM_ENTRY(PROM_PUTCHAR)) | 36 | #define ___prom_putchar ((int *(*)(int))PROM_ENTRY(PROM_PUTCHAR)) |
37 | #define ___prom_getenv ((char *(*)(char *))PROM_ENTRY(PROM_GETENV)) | 37 | #define ___prom_getenv ((char *(*)(char *))PROM_ENTRY(PROM_GETENV)) |
38 | #define ___prom_get_memconf ((void (*)(void *))PROM_ENTRY(PROM_GET_MEMCONF)) | 38 | #define ___prom_get_memconf ((void (*)(void *))PROM_ENTRY(PROM_GET_MEMCONF)) |
39 | #define ___prom_get_hwconf ((u32 (*)(void))PROM_ENTRY(PROM_GET_HWCONF)) | 39 | #define ___prom_get_hwconf ((u32 (*)(void))PROM_ENTRY(PROM_GET_HWCONF)) |
40 | 40 | ||
41 | #ifdef CONFIG_64BIT | 41 | #ifdef CONFIG_64BIT |
42 | 42 | ||
43 | static u8 o32_stk[16384]; | 43 | static u8 o32_stk[16384]; |
44 | #define O32_STK &o32_stk[sizeof(o32_stk)] | 44 | #define O32_STK &o32_stk[sizeof(o32_stk)] |
45 | 45 | ||
46 | #define __PROM_O32(fun, arg) fun arg __asm__(#fun); \ | 46 | #define __PROM_O32(fun, arg) fun arg __asm__(#fun); \ |
47 | __asm__(#fun " = call_o32") | 47 | __asm__(#fun " = call_o32") |
@@ -52,13 +52,13 @@ void __PROM_O32(__prom_get_memconf, (void (*)(void *), void *, void *)); | |||
52 | u32 __PROM_O32(__prom_get_hwconf, (u32 (*)(void), void *)); | 52 | u32 __PROM_O32(__prom_get_hwconf, (u32 (*)(void), void *)); |
53 | 53 | ||
54 | #define _prom_putchar(x) __prom_putchar(___prom_putchar, O32_STK, x) | 54 | #define _prom_putchar(x) __prom_putchar(___prom_putchar, O32_STK, x) |
55 | #define _prom_getenv(x) __prom_getenv(___prom_getenv, O32_STK, x) | 55 | #define _prom_getenv(x) __prom_getenv(___prom_getenv, O32_STK, x) |
56 | #define _prom_get_memconf(x) __prom_get_memconf(___prom_get_memconf, O32_STK, x) | 56 | #define _prom_get_memconf(x) __prom_get_memconf(___prom_get_memconf, O32_STK, x) |
57 | #define _prom_get_hwconf() __prom_get_hwconf(___prom_get_hwconf, O32_STK) | 57 | #define _prom_get_hwconf() __prom_get_hwconf(___prom_get_hwconf, O32_STK) |
58 | 58 | ||
59 | #else | 59 | #else |
60 | #define _prom_putchar(x) ___prom_putchar(x) | 60 | #define _prom_putchar(x) ___prom_putchar(x) |
61 | #define _prom_getenv(x) ___prom_getenv(x) | 61 | #define _prom_getenv(x) ___prom_getenv(x) |
62 | #define _prom_get_memconf(x) ___prom_get_memconf(x) | 62 | #define _prom_get_memconf(x) ___prom_get_memconf(x) |
63 | #define _prom_get_hwconf(x) ___prom_get_hwconf(x) | 63 | #define _prom_get_hwconf(x) ___prom_get_hwconf(x) |
64 | #endif | 64 | #endif |