coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pci.c File Reference
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include "hudson.h"
#include <southbridge/amd/common/amd_pci_util.h>
#include <bootstate.h>
Include dependency graph for pci.c:

Go to the source code of this file.

Functions

static void set_pci_irqs (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_ENABLE, BS_ON_ENTRY, set_pci_irqs, NULL)
 

Variables

static struct pci_operations lops_pci
 
static struct device_operations pci_ops
 
static const struct pci_driver pci_driver __pci_driver
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_ENABLE  ,
BS_ON_ENTRY  ,
set_pci_irqs  ,
NULL   
)

◆ set_pci_irqs()

static void set_pci_irqs ( void unused)
static

Definition at line 14 of file pci.c.

References write_pci_cfg_irqs(), and write_pci_int_table().

Here is the call graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver pci_driver __pci_driver
static
Initial value:
= {
.ops = &pci_ops,
.vendor = PCI_VID_AMD,
}
static struct device_operations pci_ops
Definition: pci.c:33
#define PCI_VID_AMD
Definition: pci_ids.h:496
#define PCI_DID_AMD_SB900_PCI
Definition: pci_ids.h:525

Definition at line 27 of file pci.c.

◆ lops_pci

struct pci_operations lops_pci
static
Initial value:
= {
.set_subsystem = 0,
}

Definition at line 27 of file pci.c.

◆ pci_ops

struct device_operations pci_ops
static
Initial value:
= {
.read_resources = pci_bus_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_bus_enable_resources,
.scan_bus = pci_scan_bridge,
.reset_bus = pci_bus_reset,
.ops_pci = &lops_pci,
}
static struct pci_operations lops_pci
Definition: pci.c:29
void pci_bus_enable_resources(struct device *dev)
Definition: pci_device.c:758
void pci_bus_read_resources(struct device *dev)
Definition: pci_device.c:540
void pci_bus_reset(struct bus *bus)
Definition: pci_device.c:777
void pci_scan_bridge(struct device *dev)
Scan a PCI bridge and the buses behind the bridge.
Definition: pci_device.c:1598
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691

Definition at line 27 of file pci.c.