coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <cpu/intel/haswell/haswell.h>
#include <acpi/acpi.h>
#include <device/pci_ops.h>
#include <stdint.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <soc/acpi.h>
#include <soc/iomap.h>
#include <soc/pci_devs.h>
#include <soc/refcode.h>
#include <soc/systemagent.h>
Go to the source code of this file.
Data Structures | |
struct | fixed_mmio_descriptor |
struct | map_entry |
Macros | |
#define | MAP_ENTRY(reg_, is_64_, is_limit_, desc_) |
#define | MAP_ENTRY_BASE_64(reg_, desc_) MAP_ENTRY(reg_, 1, 0, desc_) |
#define | MAP_ENTRY_LIMIT_64(reg_, desc_) MAP_ENTRY(reg_, 1, 1, desc_) |
#define | MAP_ENTRY_BASE_32(reg_, desc_) MAP_ENTRY(reg_, 0, 0, desc_) |
Enumerations | |
enum | { TOM_REG , TOUUD_REG , MESEG_BASE_REG , MESEG_LIMIT_REG , REMAP_BASE_REG , REMAP_LIMIT_REG , TOLUD_REG , BGSM_REG , BDSM_REG , TSEG_REG , NUM_MAP_ENTRIES } |
Functions | |
u8 | systemagent_revision (void) |
static int | get_pcie_bar (struct device *dev, unsigned int index, u32 *base, u32 *len) |
static int | get_bar (struct device *dev, unsigned int index, u32 *base, u32 *len) |
static int | get_bar_in_mchbar (struct device *dev, unsigned int index, u32 *base, u32 *len) |
static void | mc_add_fixed_mmio_resources (struct device *dev) |
static void | read_map_entry (struct device *dev, struct map_entry *entry, uint64_t *result) |
static void | mc_read_map_entries (struct device *dev, uint64_t *values) |
static void | mc_report_map_entries (struct device *dev, uint64_t *values) |
static void | mc_add_dram_resources (struct device *dev, int *resource_cnt) |
static void | systemagent_read_resources (struct device *dev) |
static void | systemagent_init (struct device *dev) |
static void | broadwell_enable (struct device *dev) |
static void | broadwell_init_pre_device (void *chip_info) |
Variables | |
struct fixed_mmio_descriptor | mc_fixed_resources [] |
static struct map_entry | memory_map [NUM_MAP_ENTRIES] |
static struct device_operations | systemagent_ops |
static const unsigned short | systemagent_ids [] |
static const struct pci_driver systemagent_driver | __pci_driver |
static struct device_operations | pci_domain_ops |
static struct device_operations | cpu_bus_ops |
struct chip_operations | soc_intel_broadwell_ops |
#define MAP_ENTRY | ( | reg_, | |
is_64_, | |||
is_limit_, | |||
desc_ | |||
) |
Definition at line 198 of file northbridge.c.
#define MAP_ENTRY_BASE_32 | ( | reg_, | |
desc_ | |||
) | MAP_ENTRY(reg_, 0, 0, desc_) |
Definition at line 210 of file northbridge.c.
#define MAP_ENTRY_BASE_64 | ( | reg_, | |
desc_ | |||
) | MAP_ENTRY(reg_, 1, 0, desc_) |
Definition at line 206 of file northbridge.c.
#define MAP_ENTRY_LIMIT_64 | ( | reg_, | |
desc_ | |||
) | MAP_ENTRY(reg_, 1, 1, desc_) |
Definition at line 208 of file northbridge.c.
anonymous enum |
Enumerator | |
---|---|
TOM_REG | |
TOUUD_REG | |
MESEG_BASE_REG | |
MESEG_LIMIT_REG | |
REMAP_BASE_REG | |
REMAP_LIMIT_REG | |
TOLUD_REG | |
BGSM_REG | |
BDSM_REG | |
TSEG_REG | |
NUM_MAP_ENTRIES |
Definition at line 213 of file northbridge.c.
Definition at line 442 of file northbridge.c.
References cpu_bus_ops, DEVICE_PATH_CPU_CLUSTER, DEVICE_PATH_DOMAIN, device::ops, device::path, pci_domain_ops, and device_path::type.
Definition at line 452 of file northbridge.c.
References broadwell_run_reference_code().
Definition at line 58 of file northbridge.c.
References base, and pci_read_config32().
|
static |
Definition at line 77 of file northbridge.c.
References base, and mchbar_read32().
Definition at line 24 of file northbridge.c.
References base, and pci_read_config32().
Definition at line 259 of file northbridge.c.
References resource::base, BGSM_REG, BIOS_INFO, DPR, DPR_EPM, DPR_SIZE_MASK, resource::flags, resource::index, IORESOURCE_ASSIGNED, IORESOURCE_CACHEABLE, IORESOURCE_FIXED, IORESOURCE_MEM, IORESOURCE_RESERVE, IORESOURCE_STORED, mc_read_map_entries(), mc_report_map_entries(), mmio_resource, new_resource(), NUM_MAP_ENTRIES, pci_read_config32(), printk, ram_resource, reserved_ram_resource, resource::size, TOLUD_REG, TOUUD_REG, and TSEG_REG.
Referenced by systemagent_read_resources().
Definition at line 115 of file northbridge.c.
References ARRAY_SIZE, resource::base, base, BIOS_DEBUG, resource::flags, resource::index, fixed_mmio_descriptor::index, IORESOURCE_ASSIGNED, IORESOURCE_FIXED, IORESOURCE_MEM, IORESOURCE_RESERVE, IORESOURCE_STORED, mc_fixed_resources, new_resource(), printk, resource::size, and fixed_mmio_descriptor::size.
Referenced by systemagent_read_resources().
Definition at line 241 of file northbridge.c.
References memory_map, NUM_MAP_ENTRIES, and read_map_entry().
Referenced by mc_add_dram_resources().
Definition at line 248 of file northbridge.c.
References BIOS_DEBUG, map_entry::description, GGC, memory_map, NUM_MAP_ENTRIES, pci_read_config16(), and printk.
Referenced by mc_add_dram_resources().
|
static |
Definition at line 172 of file northbridge.c.
Referenced by mc_read_map_entries().
Definition at line 387 of file northbridge.c.
References BIOS_DEBUG, BIOS_RESET_CPL, MCH_PAIR, mchbar_clrsetbits8(), mchbar_setbits8, mdelay(), printk, and set_power_limits().
Definition at line 363 of file northbridge.c.
References CAPID0_A, GFXVT_BASE_ADDRESS, GFXVT_BASE_SIZE, resource::index, KiB, mc_add_dram_resources(), mc_add_fixed_mmio_resources(), mmio_resource, pci_dev_read_resources(), pci_read_config32(), VTD_DISABLE, VTVC0_BASE_ADDRESS, and VTVC0_BASE_SIZE.
Definition at line 18 of file northbridge.c.
References pci_read_config8(), PCI_REVISION_ID, pcidev_path_on_root(), and SA_DEVFN_ROOT.
Referenced by igd_init().
|
static |
Definition at line 413 of file northbridge.c.
|
static |
Definition at line 413 of file northbridge.c.
Referenced by broadwell_enable().
struct fixed_mmio_descriptor mc_fixed_resources[] |
Definition at line 77 of file northbridge.c.
|
static |
Definition at line 172 of file northbridge.c.
Referenced by mc_read_map_entries(), and mc_report_map_entries().
|
static |
Definition at line 413 of file northbridge.c.
Referenced by broadwell_enable().
struct chip_operations soc_intel_broadwell_ops |
Definition at line 452 of file northbridge.c.
|
static |
Definition at line 413 of file northbridge.c.
|
static |
Definition at line 387 of file northbridge.c.