55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
--- a/arch/arm/include/asm/io.h 2014-08-19 08:42:46.000000000 +0200
|
|
+++ b/arch/arm/include/asm/io.h 2020-09-15 09:36:28.791308985 +0200
|
|
@@ -75,7 +75,7 @@
|
|
#define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v))
|
|
#define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v))
|
|
|
|
-extern inline void __raw_writesb(unsigned long addr, const void *data,
|
|
+static inline void __raw_writesb(unsigned long addr, const void *data,
|
|
int bytelen)
|
|
{
|
|
uint8_t *buf = (uint8_t *)data;
|
|
@@ -83,7 +83,7 @@
|
|
__arch_putb(*buf++, addr);
|
|
}
|
|
|
|
-extern inline void __raw_writesw(unsigned long addr, const void *data,
|
|
+static inline void __raw_writesw(unsigned long addr, const void *data,
|
|
int wordlen)
|
|
{
|
|
uint16_t *buf = (uint16_t *)data;
|
|
@@ -91,7 +91,7 @@
|
|
__arch_putw(*buf++, addr);
|
|
}
|
|
|
|
-extern inline void __raw_writesl(unsigned long addr, const void *data,
|
|
+static inline void __raw_writesl(unsigned long addr, const void *data,
|
|
int longlen)
|
|
{
|
|
uint32_t *buf = (uint32_t *)data;
|
|
@@ -99,21 +99,21 @@
|
|
__arch_putl(*buf++, addr);
|
|
}
|
|
|
|
-extern inline void __raw_readsb(unsigned long addr, void *data, int bytelen)
|
|
+static inline void __raw_readsb(unsigned long addr, void *data, int bytelen)
|
|
{
|
|
uint8_t *buf = (uint8_t *)data;
|
|
while(bytelen--)
|
|
*buf++ = __arch_getb(addr);
|
|
}
|
|
|
|
-extern inline void __raw_readsw(unsigned long addr, void *data, int wordlen)
|
|
+static inline void __raw_readsw(unsigned long addr, void *data, int wordlen)
|
|
{
|
|
uint16_t *buf = (uint16_t *)data;
|
|
while(wordlen--)
|
|
*buf++ = __arch_getw(addr);
|
|
}
|
|
|
|
-extern inline void __raw_readsl(unsigned long addr, void *data, int longlen)
|
|
+static inline void __raw_readsl(unsigned long addr, void *data, int longlen)
|
|
{
|
|
uint32_t *buf = (uint32_t *)data;
|
|
while(longlen--)
|