[coreboot-gerrit] Change in coreboot[master]: arch/riscv: Remove I/O space access functions (outb, etc.)

Jonathan Neuschäfer (Code Review) gerrit at coreboot.org
Mon Apr 9 18:19:59 CEST 2018


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

-- 
To view, visit https://review.coreboot.org/25566
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7328dae1f1fa4ef8772750244a0b11a3fa5aa88f
Gerrit-Change-Number: 25566
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180409/e1e514fc/attachment.html>


More information about the coreboot-gerrit mailing list