coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
northbridge.c File Reference
#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 <cpu/cpu.h>
#include "i440bx.h"
Include dependency graph for northbridge.c:

Go to the source code of this file.

Functions

static void northbridge_init (struct device *dev)
 
static void i440bx_domain_read_resources (struct device *dev)
 
static void cpu_bus_init (struct device *dev)
 
static void enable_dev (struct device *dev)
 

Variables

static struct device_operations northbridge_operations
 
static const struct pci_driver northbridge_driver __pci_driver
 
static struct device_operations pci_domain_ops
 
static struct device_operations cpu_bus_ops
 
struct chip_operations northbridge_intel_i440bx_ops
 

Function Documentation

◆ cpu_bus_init()

static void cpu_bus_init ( struct device dev)
static

Definition at line 75 of file northbridge.c.

References initialize_cpus(), and device::link_list.

Here is the call graph for this function:

◆ enable_dev()

static void enable_dev ( struct device dev)
static

◆ i440bx_domain_read_resources()

static void i440bx_domain_read_resources ( struct device dev)
static

Definition at line 30 of file northbridge.c.

References BIOS_DEBUG, bus::children, DRB7, find_pci_tolm(), device::link_list, pci_domain_read_resources(), pci_read_config8(), printk, and ram_resource.

Here is the call graph for this function:

◆ northbridge_init()

static void northbridge_init ( struct device dev)
static

Definition at line 12 of file northbridge.c.

Variable Documentation

◆ __pci_driver

const struct pci_driver northbridge_driver __pci_driver
static
Initial value:
= {
.vendor = PCI_VID_INTEL,
.device = 0x7190,
}
static struct device_operations northbridge_operations
Definition: northbridge.c:17
#define PCI_VID_INTEL
Definition: pci_ids.h:2157

Definition at line 12 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 = 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 cpu_bus_init(struct device *dev)
Definition: northbridge.c:75

Definition at line 75 of file northbridge.c.

Referenced by enable_dev().

◆ northbridge_intel_i440bx_ops

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

Definition at line 86 of file northbridge.c.

◆ northbridge_operations

struct device_operations northbridge_operations
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
}
static void northbridge_init(struct device *dev)
Definition: northbridge.c:12
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_read_resources(struct device *dev)
Definition: pci_device.c:534
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691

Definition at line 12 of file northbridge.c.

◆ pci_domain_ops

struct device_operations pci_domain_ops
static
Initial value:
= {
.read_resources = i440bx_domain_read_resources,
.set_resources = pci_domain_set_resources,
.scan_bus = pci_domain_scan_bus,
}
static void i440bx_domain_read_resources(struct device *dev)
Definition: northbridge.c:30
void pci_domain_set_resources(struct device *dev)
Definition: pci_device.c:564
void pci_domain_scan_bus(struct device *dev)
Scan a PCI domain.
Definition: pci_device.c:1610

Definition at line 30 of file northbridge.c.

Referenced by enable_dev().