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

Function dev_initialize

src/device/device.c:585–599  ·  view source on GitHub ↗

* Initialize all devices in the global device tree. * * Starting at the root device, call the device's init() method to do * device-specific setup, then call each child's init() method. */

Source from the content-addressed store, hash-verified

583 * device-specific setup, then call each child's init() method.
584 */
585void dev_initialize(void)
586{
587 printk(BIOS_INFO, "Initializing devices...\n");
588
589 /* First call the mainboard init. */
590 init_dev(&dev_root);
591
592 /* Now initialize everything. */
593 if (dev_root.downstream)
594 init_link(dev_root.downstream);
595 post_log_clear();
596
597 printk(BIOS_INFO, "Devices initialized\n");
598 show_all_devs(BIOS_SPEW, "After init.");
599}
600
601/**
602 * Finalize a specific device.

Callers 1

bs_dev_initFunction · 0.85

Calls 5

init_devFunction · 0.85
init_linkFunction · 0.85
post_log_clearFunction · 0.85
show_all_devsFunction · 0.85
printkFunction · 0.50

Tested by

no test coverage detected