coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdint.h>
#include <arch/io.h>
#include <arch/mmio.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <device/pci_ids.h>
#include <pc80/vga.h>
#include <pc80/vga_io.h>
#include <framebuffer_info.h>
Go to the source code of this file.
Macros | |
#define | VBE_DISPI_IOPORT_INDEX 0x01CE |
#define | VBE_DISPI_IOPORT_DATA 0x01CF |
#define | VBE_DISPI_INDEX_ID 0x0 |
#define | VBE_DISPI_INDEX_XRES 0x1 |
#define | VBE_DISPI_INDEX_YRES 0x2 |
#define | VBE_DISPI_INDEX_BPP 0x3 |
#define | VBE_DISPI_INDEX_ENABLE 0x4 |
#define | VBE_DISPI_INDEX_BANK 0x5 |
#define | VBE_DISPI_INDEX_VIRT_WIDTH 0x6 |
#define | VBE_DISPI_INDEX_VIRT_HEIGHT 0x7 |
#define | VBE_DISPI_INDEX_X_OFFSET 0x8 |
#define | VBE_DISPI_INDEX_Y_OFFSET 0x9 |
#define | VBE_DISPI_INDEX_VIDEO_MEMORY_64K 0xa |
#define | VBE_DISPI_ID0 0xB0C0 |
#define | VBE_DISPI_ID1 0xB0C1 |
#define | VBE_DISPI_ID2 0xB0C2 |
#define | VBE_DISPI_ID4 0xB0C4 |
#define | VBE_DISPI_ID5 0xB0C5 |
#define | VBE_DISPI_DISABLED 0x00 |
#define | VBE_DISPI_ENABLED 0x01 |
#define | VBE_DISPI_LFB_ENABLED 0x40 |
#define | VBE_DISPI_NOCLEARMEM 0x80 |
Functions | |
static void | bochs_write (struct resource *res, int index, int val) |
static int | bochs_read (struct resource *res, int index) |
static void | bochs_vga_write (struct resource *res, int index, uint8_t val) |
static void | bochs_init_linear_fb (struct device *dev) |
static void | bochs_init_text_mode (struct device *dev) |
static void | bochs_init (struct device *dev) |
Variables | |
static int | width = CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_XRES |
static int | height = CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_YRES |
static struct resource | res_legacy |
static struct device_operations | qemu_graph_ops |
static const struct pci_driver qemu_stdvga_driver | __pci_driver |
Definition at line 84 of file bochs.c.
References resource::base, BIOS_DEBUG, BIOS_ERR, bochs_read(), bochs_vga_write(), bochs_write(), device::class, dev_name, fb_add_framebuffer_info(), resource::flags, height, IORESOURCE_MEM, PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_1, PCI_BASE_ADDRESS_2, PCI_CLASS_DISPLAY_VGA, printk, probe_resource(), res_legacy, VBE_DISPI_ENABLED, VBE_DISPI_ID0, VBE_DISPI_INDEX_BANK, VBE_DISPI_INDEX_BPP, VBE_DISPI_INDEX_ENABLE, VBE_DISPI_INDEX_ID, VBE_DISPI_INDEX_VIDEO_MEMORY_64K, VBE_DISPI_INDEX_VIRT_HEIGHT, VBE_DISPI_INDEX_VIRT_WIDTH, VBE_DISPI_INDEX_X_OFFSET, VBE_DISPI_INDEX_XRES, VBE_DISPI_INDEX_Y_OFFSET, VBE_DISPI_INDEX_YRES, VBE_DISPI_LFB_ENABLED, and width.
Definition at line 146 of file bochs.c.
References vga_misc_write(), and vga_textmode_init().
|
static |
Definition at line 55 of file bochs.c.
References resource::base, resource::flags, inw(), IORESOURCE_IO, outw(), read16(), and res2mmio().
Referenced by bochs_init_linear_fb().
Definition at line 65 of file bochs.c.
References resource::flags, IORESOURCE_IO, outb(), res2mmio(), val, and write8().
Referenced by bochs_init_linear_fb().
Definition at line 45 of file bochs.c.
References resource::base, resource::flags, IORESOURCE_IO, outw(), res2mmio(), val, and write16().
Referenced by bochs_init_linear_fb().
|
static |
|
static |
Definition at line 43 of file bochs.c.
Referenced by bochs_init_linear_fb().
|
static |
|
static |
Definition at line 65 of file bochs.c.
Referenced by bochs_init_linear_fb().
|
static |
Definition at line 42 of file bochs.c.
Referenced by aal_config(), bochs_init_linear_fb(), ccorr_config(), col221111(), col221111_16(), col221111_32(), color_start(), detailed_cvt_descriptor(), dither_config(), enable_pq(), extract_bits(), gamma_config(), init_gfx(), jpeg_check_size(), jpeg_decode(), jpeg_fetch_size(), lb_framebuffer(), main_disp_path_setup(), merge_config(), mmc_set_bus_width(), msdc_set_buswidth(), mtk_ddp_mode_set(), mtk_dpintf_config_fb_size(), od_start(), ovl_layer_config(), ovl_set_roi(), postmask_config(), raminit_thermal(), rdma_config(), set_dram_row_attributes(), and spi_transfer().