riscv: io.h: Add defines for reads/writes functions

Add defines for {read,write}s{b,w,l} functions to make asm-generic/io.h
aware of them.

Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
This commit is contained in:
Igor Prusov
2023-11-28 16:19:06 -05:00
committed by Tom Rini
parent 65778d1f3d
commit 7c107ef205
+8
View File
@@ -307,6 +307,14 @@ static inline void writesl(unsigned int *addr, const void *data, int longlen)
longlen--;
}
}
#define readsb readsb
#define readsw readsw
#define readsl readsl
#define writesb writesb
#define writesw writesw
#define writesl writesl
#endif
#define outb_p(val, port) outb((val), (port))