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-14 14:02:49 +03:00 committed by Tom Rini
parent 65778d1f3d
commit 7c107ef205

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))