diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-04-09 17:23:53 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-11 09:30:08 +0000 |
commit | 7b37a08b8269cda99d8093a20fc621fd7aae5ea5 (patch) | |
tree | 2e55a0a40dc1d5fff5e71beaa430dd0a8be353a1 /src | |
parent | e4dbd368aca5ef9c06835149bc6cba688a60519e (diff) |
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>
Reviewed-on: https://review.coreboot.org/25566
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/riscv/include/arch/io.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/arch/riscv/include/arch/io.h b/src/arch/riscv/include/arch/io.h index 5bc10c0cd4..a19f4b5334 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)); |