diff options
author | Igor Prusov <ivprusov@salutedevices.com> | 2023-11-14 14:02:51 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-28 16:19:06 -0500 |
commit | 4c6d92df074ff3cc3adbf1a78524cb5c78cae509 (patch) | |
tree | e1b968c170abb9b913f5ae7ea233f524417cbd6c | |
parent | 55baed4dbb92a04fd1eaf5b7b4b9657737000300 (diff) | |
download | u-boot-4c6d92df074ff3cc3adbf1a78524cb5c78cae509.tar.gz |
nios2: io.h: Add defines for ins/outs functions
Add defines for {in,out}s{b,w,l} functions to make asm-generic/io.h
aware of them.
Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
-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 |