coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
igd.c File Reference
#include <stdint.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <console/console.h>
#include <option.h>
#include "gm45.h"
Include dependency graph for igd.c:

Go to the source code of this file.

Functions

static void enable_igd (const sysinfo_t *const sysinfo, const int no_peg)
 
static void disable_igd (const sysinfo_t *const sysinfo)
 
void init_igd (const sysinfo_t *const sysinfo)
 
void igd_compute_ggc (sysinfo_t *const sysinfo)
 

Function Documentation

◆ disable_igd()

static void disable_igd ( const sysinfo_t *const  sysinfo)
static

Definition at line 78 of file igd.c.

References BIOS_DEBUG, D0F0_CAPID0, D0F0_DEVEN, D0F0_GGC, mchbar_clrsetbits16(), mchbar_setbits16, mchbar_setbits8, pci_and_config32(), PCI_DEV, pci_read_config8(), pci_update_config16(), and printk.

Referenced by init_igd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enable_igd()

static void enable_igd ( const sysinfo_t *const  sysinfo,
const int  no_peg 
)
static

◆ igd_compute_ggc()

void igd_compute_ggc ( sysinfo_t *const  sysinfo)

Definition at line 110 of file igd.c.

References D0F0_CAPID0, sysinfo::enable_igd, get_uint_option(), sysinfo::ggc, MAX, MIN, PCI_DEV, and pci_read_config32().

Referenced by raminit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_igd()

void init_igd ( const sysinfo_t *const  sysinfo)

Definition at line 99 of file igd.c.

References D0F0_CAPID0, disable_igd(), enable_igd(), sysinfo::enable_igd, sysinfo::enable_peg, PCI_DEV, and pci_read_config8().

Referenced by raminit().

Here is the call graph for this function:
Here is the caller graph for this function: