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:
@@ -307,6 +307,14 @@ static inline void writesl(unsigned int *addr, const void *data, int longlen)
|
|||||||
longlen--;
|
longlen--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define readsb readsb
|
||||||
|
#define readsw readsw
|
||||||
|
#define readsl readsl
|
||||||
|
#define writesb writesb
|
||||||
|
#define writesw writesw
|
||||||
|
#define writesl writesl
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define outb_p(val, port) outb((val), (port))
|
#define outb_p(val, port) outb((val), (port))
|
||||||
|
Reference in New Issue
Block a user