aboutsummaryrefslogtreecommitdiffstats
path: root/src/arch/arm/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/include')
-rw-r--r--src/arch/arm/include/arch/io.h6
-rw-r--r--src/arch/arm/include/armv4/arch/arch_io.h6
-rw-r--r--src/arch/arm/include/armv7/arch/arch_io.h6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/arch/arm/include/arch/io.h b/src/arch/arm/include/arch/io.h
index 9037ab91f..51d96b925 100644
--- a/src/arch/arm/include/arch/io.h
+++ b/src/arch/arm/include/arch/io.h
@@ -32,11 +32,11 @@
* re-factor all code to specify the data length intended.
*/
#define readb(a) read8(a)
-#define writeb(v,a) write8(v,a)
+#define writeb(v,a) write8(a,v)
#define readw(a) read16(a)
-#define writew(v,a) write16(v,a)
+#define writew(v,a) write16(a,v)
#define readl(a) read32(a)
-#define writel(v,a) write32(v,a)
+#define writel(v,a) write32(a,v)
/*
* Clear and set bits in one shot. These macros can be used to clear and
diff --git a/src/arch/arm/include/armv4/arch/arch_io.h b/src/arch/arm/include/armv4/arch/arch_io.h
index 72653da3f..cf5a9e115 100644
--- a/src/arch/arm/include/armv4/arch/arch_io.h
+++ b/src/arch/arm/include/armv4/arch/arch_io.h
@@ -40,17 +40,17 @@ static inline uint32_t read32(const void *addr)
return *(volatile uint32_t *)addr;
}
-static inline void write8(uint8_t val, void *addr)
+static inline void write8(void *addr, uint8_t val)
{
*(volatile uint8_t *)addr = val;
}
-static inline void write16(uint16_t val, void *addr)
+static inline void write16(void *addr, uint16_t val)
{
*(volatile uint16_t *)addr = val;
}
-static inline void write32(uint32_t val, void *addr)
+static inline void write32(void *addr, uint32_t val)
{
*(volatile uint32_t *)addr = val;
}
diff --git a/src/arch/arm/include/armv7/arch/arch_io.h b/src/arch/arm/include/armv7/arch/arch_io.h
index 360fa6425..53eafc696 100644
--- a/src/arch/arm/include/armv7/arch/arch_io.h
+++ b/src/arch/arm/include/armv7/arch/arch_io.h
@@ -44,21 +44,21 @@ static inline uint32_t read32(const void *addr)
return *(volatile uint32_t *)addr;
}
-static inline void write8(uint8_t val, void *addr)
+static inline void write8(void *addr, uint8_t val)
{
dmb();
*(volatile uint8_t *)addr = val;
dmb();
}
-static inline void write16(uint16_t val, void *addr)
+static inline void write16(void *addr, uint16_t val)
{
dmb();
*(volatile uint16_t *)addr = val;
dmb();
}
-static inline void write32(uint32_t val, void *addr)
+static inline void write32(void *addr, uint32_t val)
{
dmb();
*(volatile uint32_t *)addr = val;