Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/25566
Change subject: arch/riscv: Remove I/O space access functions (outb, etc.) ......................................................................
arch/riscv: Remove I/O space access functions (outb, etc.)
RISC-V does not have the kind of I/O space that x86 has. Other architectures tend to leave out these definitions as well.
Change-Id: I7328dae1f1fa4ef8772750244a0b11a3fa5aa88f Signed-off-by: Jonathan Neuschäfer j.neuschaefer@gmx.net --- M src/arch/riscv/include/arch/io.h 1 file changed, 0 insertions(+), 29 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/25566/1
diff --git a/src/arch/riscv/include/arch/io.h b/src/arch/riscv/include/arch/io.h index 5bc10c0..a19f4b5 100644 --- a/src/arch/riscv/include/arch/io.h +++ b/src/arch/riscv/include/arch/io.h @@ -16,35 +16,6 @@
#include <stdint.h>
-static inline void outb(uint8_t value, uint16_t port) -{ -} - -static inline void outw(uint16_t value, uint16_t port) -{ -} - -static inline void outl(uint32_t value, uint16_t port) -{ -} - - -static inline uint8_t inb(uint16_t port) -{ - return 0; -} - - -static inline uint16_t inw(uint16_t port) -{ - return 0; -} - -static inline uint32_t inl(uint16_t port) -{ - return 0; -} - static inline __attribute__((always_inline)) uint8_t read8(const volatile void *addr) { return *((volatile uint8_t *)(addr));