mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 07:43:07 +00:00
e2d934b4da
Bochs is convenient with QEMU on x86 since it does not require a video BIOS. Add a driver for it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
36 lines
515 B
C
36 lines
515 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Modified from coreboot bochs.c
|
|
*/
|
|
|
|
#ifndef __BOCHS_H
|
|
#define __BOCHS_H
|
|
|
|
#define VGA_INDEX 0x3c0
|
|
|
|
#define IOPORT_INDEX 0x01ce
|
|
#define IOPORT_DATA 0x01cf
|
|
|
|
enum {
|
|
INDEX_ID,
|
|
INDEX_XRES,
|
|
INDEX_YRES,
|
|
INDEX_BPP,
|
|
INDEX_ENABLE,
|
|
INDEX_BANK,
|
|
INDEX_VIRT_WIDTH,
|
|
INDEX_VIRT_HEIGHT,
|
|
INDEX_X_OFFSET,
|
|
INDEX_Y_OFFSET,
|
|
INDEX_VIDEO_MEMORY_64K
|
|
};
|
|
|
|
#define ID0 0xb0c0
|
|
|
|
#define ENABLED BIT(0)
|
|
#define LFB_ENABLED BIT(6)
|
|
#define NOCLEARMEM BIT(7)
|
|
|
|
#define MMIO_BASE 0x500
|
|
|
|
#endif
|