diff options
author | Tom Rini <trini@konsulko.com> | 2023-11-28 16:19:19 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-28 16:19:19 -0500 |
commit | 38cc6cdeb104d4835a73b8946b31e30ce762ddeb (patch) | |
tree | 78b962005441f24b3042b2c9f8b21d7cfcf98922 /arch/nios2/include/asm/io.h | |
parent | 66c21738fd5ac3f23929911dd7aa38e1a3671eb9 (diff) | |
parent | 89994d64acbaf2e864d2050730abab5fb3b6f956 (diff) |
Merge patch series "Import "string" I/O functions from Linux"
To quote the author:
This series imports generic versions of ioread_rep/iowrite_rep and
reads/writes from Linux. Some cleanup is done to make sure that all
platforms have proper defines for implemented functions and there are no
redefinitions.
Diffstat (limited to 'arch/nios2/include/asm/io.h')
-rw-r--r-- | arch/nios2/include/asm/io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index 817cd72e00b..321e4fd1ca5 100644 --- a/arch/nios2/include/asm/io.h +++ b/arch/nios2/include/asm/io.h @@ -94,6 +94,9 @@ static inline void insl (unsigned long port, void *dst, unsigned long count) unsigned long *p = dst; while (count--) *p++ = inl (port); } +#define insb insb +#define insw insw +#define insl insl static inline void outsb (unsigned long port, const void *src, unsigned long count) { @@ -111,6 +114,9 @@ static inline void outsl (unsigned long port, const void *src, unsigned long cou const unsigned long *p = src; while (count--) outl (*p++, port); } +#define outsb outsb +#define outsw outsw +#define outsl outsl /* * Clear and set bits in one shot. These macros can be used to clear and |