diff options
author | Martin Roth <martinroth@google.com> | 2017-07-23 16:22:25 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-07-25 14:26:20 +0000 |
commit | 7f35d3aa160aa1a43ec4215a7816554b8bab14ed (patch) | |
tree | ed1a21755982ee405c779ba3e66ceb01cedee66b /src/device/oprom/yabel | |
parent | 1d5e240ea3e68543716ec876d9250f20ce7689f6 (diff) |
src/device: Fix checkpatch warning: no spaces at the start of a line
This excludes some files in the device/oprom/x86emu folder which
are mostly spaces, and which I felt should be handled separately.
debug.c, decode.c, fpu.c, ops.c, ops2.c, & prim_ops.c
Change-Id: I5c12d3fc942c9ad99bbe6e6e54db93e5a8402392
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20730
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/device/oprom/yabel')
-rw-r--r-- | src/device/oprom/yabel/compat/functions.c | 16 | ||||
-rw-r--r-- | src/device/oprom/yabel/compat/of.h | 8 | ||||
-rw-r--r-- | src/device/oprom/yabel/compat/rtas.h | 14 | ||||
-rw-r--r-- | src/device/oprom/yabel/io.c | 46 |
4 files changed, 42 insertions, 42 deletions
diff --git a/src/device/oprom/yabel/compat/functions.c b/src/device/oprom/yabel/compat/functions.c index 5a51f18a6f..1cebdf0a5a 100644 --- a/src/device/oprom/yabel/compat/functions.c +++ b/src/device/oprom/yabel/compat/functions.c @@ -72,15 +72,15 @@ unsigned long tb_freq = 0; u64 get_time(void) { - u64 act = 0; + u64 act = 0; #if IS_ENABLED(CONFIG_ARCH_X86) - u32 eax, edx; + u32 eax, edx; - __asm__ __volatile__( - "rdtsc" - : "=a"(eax), "=d"(edx) - : /* no inputs, no clobber */); - act = ((u64) edx << 32) | eax; + __asm__ __volatile__( + "rdtsc" + : "=a"(eax), "=d"(edx) + : /* no inputs, no clobber */); + act = ((u64) edx << 32) | eax; #endif - return act; + return act; } diff --git a/src/device/oprom/yabel/compat/of.h b/src/device/oprom/yabel/compat/of.h index ac13af28bb..31c9b59071 100644 --- a/src/device/oprom/yabel/compat/of.h +++ b/src/device/oprom/yabel/compat/of.h @@ -42,10 +42,10 @@ typedef struct { - unsigned int serv; - int nargs; - int nrets; - unsigned int args[16]; + unsigned int serv; + int nargs; + int nrets; + unsigned int args[16]; } of_arg_t; diff --git a/src/device/oprom/yabel/compat/rtas.h b/src/device/oprom/yabel/compat/rtas.h index f701cc61b4..ccad9e958b 100644 --- a/src/device/oprom/yabel/compat/rtas.h +++ b/src/device/oprom/yabel/compat/rtas.h @@ -38,13 +38,13 @@ #include "of.h" typedef struct dtime { - unsigned int year; - unsigned int month; - unsigned int day; - unsigned int hour; - unsigned int minute; - unsigned int second; - unsigned int nano; + unsigned int year; + unsigned int month; + unsigned int day; + unsigned int hour; + unsigned int minute; + unsigned int second; + unsigned int nano; } dtime; typedef void (*thread_t) (int); diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c index d6738019c6..b50a2f1cf8 100644 --- a/src/device/oprom/yabel/io.c +++ b/src/device/oprom/yabel/io.c @@ -101,47 +101,47 @@ void my_outl(X86EMU_pioAddr addr, u32 val) static unsigned int read_io(void *addr, size_t sz) { - unsigned int ret; + unsigned int ret; /* since we are using inb instructions, we need the port number as 16bit value */ u16 port = (u16)(u32) addr; - switch (sz) { - case 1: + switch (sz) { + case 1: ret = inb(port); - break; - case 2: + break; + case 2: ret = inw(port); - break; - case 4: + break; + case 4: ret = inl(port); - break; - default: - ret = 0; - } + break; + default: + ret = 0; + } - return ret; + return ret; } static int write_io(void *addr, unsigned int value, size_t sz) { u16 port = (u16)(u32) addr; - switch (sz) { + switch (sz) { /* since we are using inb instructions, we need the port number as 16bit value */ - case 1: + case 1: outb(value, port); - break; - case 2: + break; + case 2: outw(value, port); - break; - case 4: + break; + case 4: outl(value, port); - break; - default: - return -1; - } + break; + default: + return -1; + } - return 0; + return 0; } u32 pci_cfg_read(X86EMU_pioAddr addr, u8 size); |