MCPcopy Create free account
hub / github.com/coreboot/coreboot / pci_initialize

Function pci_initialize

util/vgabios/pci-userspace.c:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9static struct pci_access *pacc;
10
11int pci_initialize(void)
12{
13 struct pci_dev *dev;
14
15 pacc = pci_alloc();
16
17 pci_init(pacc);
18 pci_scan_bus(pacc);
19 for (dev = pacc->devices; dev; dev = dev->next) {
20 pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES);
21 }
22 return 0;
23}
24
25int pci_exit(void)
26{

Callers 1

mainFunction · 0.85

Calls 3

pci_allocFunction · 0.85
pci_initFunction · 0.50
pci_scan_busFunction · 0.50

Tested by 1

mainFunction · 0.68