mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
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:
parent
65778d1f3d
commit
7c107ef205
1 changed files with 8 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue