[PATCH 04/18] video: bochs: Avoid using IO instructions to access VGA IO port

Simon Glass sjg at chromium.org
Mon Jul 24 00:58:29 CEST 2023


On Sat, 22 Jul 2023 at 22:41, Bin Meng <bmeng at tinylab.org> wrote:
>
> At present the driver uses IO instructions to access the legacy
> VGA IO ports, which unfortunately limits the driver to work only
> on x86. It turns out the IO instruction is not necessary as Bochs
> VGA card remaps the legacy VGA IO ports (0x3c0 -> 0x3df) to its
> memory mapped register space from offset 0x400.
>
> Update the driver to use MMIO access for VGA IO port.
>
> Signed-off-by: Bin Meng <bmeng at tinylab.org>
> ---
>
>  drivers/video/bochs.c | 6 +++---
>  drivers/video/bochs.h | 4 +---
>  2 files changed, 4 insertions(+), 6 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>
Tested-by: Simon Glass <sjg at chromium.org>  # qemu-x86_64


More information about the U-Boot mailing list