From 4e00e6291a69c24d87d0899fdb71b41e1ec39537 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Tue, 19 Dec 2023 19:02:16 +0300 Subject: arch/io.h: Add port I/O functions to other architectures The QEMU Bochs display driver and the QEMU Firmware Configuration interface code (in the qemu-i440fx mainboard dir) were written for x86. These devices are available in QEMU VMs of other architectures as well, so we want to port them to be independent from x86. The main problem is that the drivers use x86 port I/O functions to communicate with devices over PCI I/O space. These are currently not available for ARM* and RISC-V, although it is often still possible to access PCI I/O ports over MMIO through a translator. Add implementations of port I/O functions that work with PCI I/O space on these architectures as well, assuming there is such a translator at a known address configured at build-time. Change-Id: If7d9177283e8c692088ba8e30d6dfe52623c8cb9 Signed-off-by: Alper Nebi Yasak Reviewed-on: https://review.coreboot.org/c/coreboot/+/80372 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/arch/arm64/include/armv8/arch/io.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/arch/arm64/include/armv8/arch/io.h (limited to 'src/arch/arm64/include') diff --git a/src/arch/arm64/include/armv8/arch/io.h b/src/arch/arm64/include/armv8/arch/io.h new file mode 100644 index 0000000000..b0df7d74cb --- /dev/null +++ b/src/arch/arm64/include/armv8/arch/io.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __ARCH_IO_H__ +#define __ARCH_IO_H__ + +#include + +#endif -- cgit v1.2.3