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 <bootmode.h>
#include <cpu/intel/model_206ax/model_206ax.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <drivers/intel/gma/libgfxinit.h>
#include <drivers/intel/gma/opregion.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include <types.h>
#include "chip.h"
#include "sandybridge.h"
Go to the source code of this file.
Data Structures | |
struct | gt_powermeter |
Macros | |
#define | GTT_RETRY 1000 |
Functions | |
u32 | map_oprom_vendev (u32 vendev) |
u32 | gtt_read (u32 reg) |
void | gtt_write (u32 reg, u32 data) |
static void | gtt_write_powermeter (const struct gt_powermeter *pm) |
int | gtt_poll (u32 reg, u32 mask, u32 value) |
static void | gma_pm_init_pre_vbios (struct device *dev) |
static void | gma_pm_init_post_vbios (struct device *dev) |
static void | gma_enable_swsci (void) |
static void | gma_func0_init (struct device *dev) |
static void | gma_generate_ssdt (const struct device *device) |
static const char * | gma_acpi_name (const struct device *dev) |
static void | gma_func0_disable (struct device *dev) |
Variables | |
static const struct gt_powermeter | snb_pm_gt1 [] |
static const struct gt_powermeter | snb_pm_gt2 [] |
static const struct gt_powermeter | ivb_pm_gt1 [] |
static const struct gt_powermeter | ivb_pm_gt2_17w [] |
static const struct gt_powermeter | ivb_pm_gt2_35w [] |
static struct resource * | gtt_res = NULL |
static struct device_operations | gma_func0_ops |
static const unsigned short | pci_device_ids [] |
static const struct pci_driver gma | __pci_driver |
|
static |
Definition at line 566 of file gma.c.
References DEFAULT_PMBASE, DMISCI_STS, GPE0_EN, GPE0_STS, inw(), outl(), outw(), TCO1_STS, TCOSCI_EN, and TCOSCI_STS.
Referenced by gma_func0_init().
Definition at line 635 of file gma.c.
References device::enabled, GGC, pci_or_config16(), and pcidev_on_root().
Definition at line 584 of file gma.c.
References acpi_is_wakeup_s3(), BIOS_INFO, BIOS_SPEW, CONFIG, gfx_set_init_done(), GGC, gma_enable_swsci(), gma_gfxinit(), gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), intel_gma_init_igd_opregion(), PCI_COMMAND, PCI_COMMAND_MASTER, pci_dev_init(), pci_or_config16(), pci_read_config16(), and printk.
Definition at line 622 of file gma.c.
References chip, device::chip_info, and drivers_intel_gma_displays_ssdt_generate().
Definition at line 500 of file gma.c.
References BIOS_DEBUG, device::chip_info, cpu_stepping(), northbridge_intel_sandybridge_config::gpu_cpu_backlight, northbridge_intel_sandybridge_config::gpu_dp_b_hotplug, northbridge_intel_sandybridge_config::gpu_dp_c_hotplug, northbridge_intel_sandybridge_config::gpu_dp_d_hotplug, northbridge_intel_sandybridge_config::gpu_panel_port_select, northbridge_intel_sandybridge_config::gpu_panel_power_backlight_off_delay, northbridge_intel_sandybridge_config::gpu_panel_power_backlight_on_delay, northbridge_intel_sandybridge_config::gpu_panel_power_cycle_delay, northbridge_intel_sandybridge_config::gpu_panel_power_down_delay, northbridge_intel_sandybridge_config::gpu_panel_power_up_delay, northbridge_intel_sandybridge_config::gpu_pch_backlight, gtt_poll(), gtt_read(), gtt_write(), is_sandybridge(), IVB_STEP_C0, and printk.
Referenced by gma_func0_init().
Definition at line 303 of file gma.c.
References resource::base, BIOS_DEBUG, cpu_stepping(), gtt_poll(), gtt_read(), gtt_res, gtt_write(), gtt_write_powermeter(), is_sandybridge(), ivb_pm_gt1, ivb_pm_gt2_17w, ivb_pm_gt2_35w, IVB_STEP_C0, mchbar_read32(), PCI_BASE_ADDRESS_0, printk, probe_resource(), snb_pm_gt1, snb_pm_gt2, SNB_STEP_D1, and SNB_STEP_D2.
Referenced by gma_func0_init().
Definition at line 270 of file gma.c.
References gtt_res, read32(), and res2mmio().
Definition at line 275 of file gma.c.
References gtt_res, res2mmio(), and write32().
|
inlinestatic |
Definition at line 280 of file gma.c.
References gtt_write(), gt_powermeter::reg, and gt_powermeter::value.
Referenced by gma_pm_init_pre_vbios().
|
static |
|
static |
Definition at line 268 of file gma.c.
Referenced by gma_pm_init_pre_vbios(), gtt_read(), and gtt_write().
|
static |
Definition at line 1 of file gma.c.
Referenced by gma_pm_init_pre_vbios().
|
static |
Definition at line 1 of file gma.c.
Referenced by gma_pm_init_pre_vbios().
|
static |
Definition at line 1 of file gma.c.
Referenced by gma_pm_init_pre_vbios().
|
static |
|
static |
Definition at line 1 of file gma.c.
Referenced by gma_pm_init_pre_vbios().
|
static |
Definition at line 1 of file gma.c.
Referenced by gma_pm_init_pre_vbios().