![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <drivers/intel/gma/i915_reg.h>
#include <drivers/intel/gma/intel_bios.h>
#include <drivers/intel/gma/i915.h>
#include <drivers/intel/gma/opregion.h>
#include <pc80/vga.h>
#include <pc80/vga_io.h>
#include <types.h>
#include "chip.h"
#include "pineview.h"
Go to the source code of this file.
Macros | |
#define | GTTSIZE (512 * 1024) |
#define | PGETBL2_CTL 0x20c4 |
#define | PGETBL2_1MB (1 << 8) |
#define | PGETBL_CTL 0x2020 |
#define | PGETBL_1MB (3 << 1) |
#define | PGETBL_512KB 0 |
#define | PGETBL_ENABLED 0x1 |
#define | ADPA_HOTPLUG_BITS |
Functions | |
static int | gtt_setup (u8 *mmiobase) |
static void | intel_gma_init (const struct northbridge_intel_pineview_config *info, struct device *vga, u8 *mmio, u8 *gtt, u32 physbase, u16 piobase) |
static void | gma_func0_init (struct device *dev) |
static const char * | gma_acpi_name (const struct device *dev) |
Variables | |
static struct resource * | gtt_res = NULL |
static struct resource * | mmio_res = NULL |
static struct device_operations | gma_func0_ops |
static const unsigned short | pci_device_ids [] |
static const struct pci_driver gma | __pci_driver |
#define ADPA_HOTPLUG_BITS |
|
static |
Definition at line 220 of file gma.c.
References resource::base, BIOS_INFO, BIOS_SPEW, device::chip_info, CONFIG, find_resource(), generate_fake_intel_oprom(), northbridge_intel_pineview_config::gfx, GGC, gtt_res, intel_gma_init(), intel_gma_init_igd_opregion(), mmio_res, PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_1, PCI_BASE_ADDRESS_3, PCI_COMMAND, PCI_COMMAND_MASTER, pci_dev_init(), pci_or_config16(), pci_read_config16(), pci_read_config32(), printk, and res2mmio().
|
static |
Definition at line 44 of file gma.c.
References BGSM, BIOS_DEBUG, GFX_FLSH_CNTL, pci_read_config32(), pcidev_on_root(), PGETBL_512KB, PGETBL_CTL, printk, udelay(), and write32().
Referenced by intel_gma_init().
|
static |
Definition at line 61 of file gma.c.
References ADPA, ADPA_DAC_ENABLE, ADPA_DPMS_ON, ADPA_HOTPLUG_BITS, ADPA_HSYNC_CNTL_ENABLE, ADPA_PIPE_A_SELECT, ADPA_USE_VGA_HVPOLARITY, ADPA_VSYNC_CNTL_ENABLE, ARRAY_SIZE, BIOS_INFO, BIOS_SPEW, CACHE_MODE_0, CACHE_MODE_1, DEIIR, DISPLAY_PLANE_ENABLE, DISPPLANE_BGRX888, DPLL, DPLL_DAC_SERIAL_P2_CLOCK_DIV_10, DPLL_MD, DPLL_VCO_ENABLE, DPLL_VGA_MODE_DIS, DPLLB_MODE_DAC_SERIAL, DSPCLK_GATE_D, DSPCNTR, DSPFW3, EIR, FDI_RX_CTL, FDI_TX_CTL, FW_BLC, FW_BLC2, GGC, gtt_setup(), HBLANK, HSYNC, HTOTAL, IIR, IMR, INSTPM, mdelay(), MI_MODE, outl(), pci_write_config16(), PF_CTL, PF_ENABLE, PF_FILTER_MED_3x3, PF_WIN_POS, PF_WIN_SZ, PFIT_CONTROL, PGETBL2_CTL, PGETBL_CTL, PINEVIEW_SELF_REFRESH_EN, PIPECONF, PIPECONF_BPP_6, PIPECONF_DITHER_EN, PIPECONF_ENABLE, PIPESRC, printk, read32(), SDEIIR, VBLANK, VGA0, VGA1, vga_cr_write(), VGA_DISP_DISABLE, vga_gr_write(), vga_misc_write(), vga_sr_read(), vga_sr_write(), vga_textmode_init(), VGACNTRL, VS_TIMER_DISPATCH, VSYNC, VTOTAL, and write32().
Referenced by gma_func0_init().
|
static |
|
static |
Definition at line 41 of file gma.c.
Referenced by gma_func0_init().
Definition at line 42 of file gma.c.
Referenced by gma_func0_init(), graphics_soc_panel_init(), mtk_pcie_domain_new_res(), and mtk_pcie_set_trans_window().