coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
northbridge.c File Reference
#include <cbmem.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <device/pci_ops.h>
#include <stdint.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <acpi/acpi.h>
#include <cpu/intel/smm_reloc.h>
#include "i945.h"
Include dependency graph for northbridge.c:

Go to the source code of this file.

Functions

static void mch_domain_read_resources (struct device *dev)
 
static void mch_domain_set_resources (struct device *dev)
 
static const char * northbridge_acpi_name (const struct device *dev)
 
void northbridge_write_smram (u8 smram)
 
static void mc_read_resources (struct device *dev)
 
static void enable_dev (struct device *dev)
 

Variables

static struct device_operations pci_domain_ops
 
static struct device_operations mc_ops
 
static const unsigned short pci_device_ids []
 
static const struct pci_driver mc_driver __pci_driver
 
static struct device_operations cpu_bus_ops
 
struct chip_operations northbridge_intel_i945_ops
 

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

◆ mc_read_resources()

static void mc_read_resources ( struct device dev)
static

Definition at line 131 of file northbridge.c.

◆ mch_domain_read_resources()

◆ mch_domain_set_resources()

static void mch_domain_set_resources ( struct device dev)
static

Definition at line 88 of file northbridge.c.

References assign_resources(), device::link_list, resource::next, report_resource_stored(), and device::resource_list.

Here is the call graph for this function:

◆ northbridge_acpi_name()

static const char* northbridge_acpi_name ( const struct device dev)
static

◆ northbridge_write_smram()

void northbridge_write_smram ( u8  smram)

Definition at line 114 of file northbridge.c.

References die(), NULL, pci_write_config8(), pcidev_on_root(), and SMRAM.

Here is the call graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver mc_driver __pci_driver
static
Initial value:
= {
.ops = &mc_ops,
.vendor = PCI_VID_INTEL,
.devices = pci_device_ids,
}
static struct device_operations mc_ops
Definition: northbridge.c:138
static const unsigned short pci_device_ids[]
Definition: northbridge.c:146
#define PCI_VID_INTEL
Definition: pci_ids.h:2157

Definition at line 146 of file northbridge.c.

◆ cpu_bus_ops

struct device_operations cpu_bus_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.init = mp_cpu_bus_init,
}
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void mp_cpu_bus_init(struct device *dev)
Definition: device.h:240

Definition at line 146 of file northbridge.c.

Referenced by enable_dev().

◆ mc_ops

struct device_operations mc_ops
static
Initial value:
= {
.read_resources = mc_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.acpi_fill_ssdt = generate_cpu_entries,
.ops_pci = &pci_dev_ops_pci,
}
void generate_cpu_entries(const struct device *device)
Definition: acpi.c:334
static void mc_read_resources(struct device *dev)
Definition: northbridge.c:131
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
Definition: pci_device.c:911
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691

Definition at line 131 of file northbridge.c.

◆ northbridge_intel_i945_ops

struct chip_operations northbridge_intel_i945_ops
Initial value:
= {
.enable_dev = enable_dev,
}
static void enable_dev(struct device *dev)
Definition: northbridge.c:163

Definition at line 163 of file northbridge.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0x2770,
0x27a0, 0x27ac,
0 }

Definition at line 146 of file northbridge.c.

◆ pci_domain_ops

struct device_operations pci_domain_ops
static
Initial value:
= {
.read_resources = mch_domain_read_resources,
.set_resources = mch_domain_set_resources,
.scan_bus = pci_domain_scan_bus,
.acpi_name = northbridge_acpi_name,
}
static void mch_domain_set_resources(struct device *dev)
Definition: northbridge.c:88
static void mch_domain_read_resources(struct device *dev)
Definition: northbridge.c:15
static const char * northbridge_acpi_name(const struct device *dev)
Definition: northbridge.c:98
void pci_domain_scan_bus(struct device *dev)
Scan a PCI domain.
Definition: pci_device.c:1610

Definition at line 114 of file northbridge.c.

Referenced by enable_dev().