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

Function dev_enable

src/device/device.c:519–528  ·  view source on GitHub ↗

* Enable devices on the device tree. * * Starting at the root, walk the tree and enable all devices/bridges by * calling the device's enable_resources() method. */

Source from the content-addressed store, hash-verified

517 * calling the device's enable_resources() method.
518 */
519void dev_enable(void)
520{
521 printk(BIOS_INFO, "Enabling resources...\n");
522
523 /* Now enable everything. */
524 if (dev_root.downstream)
525 enable_resources(dev_root.downstream);
526
527 printk(BIOS_INFO, "done.\n");
528}
529
530/**
531 * Initialize a specific device.

Callers 1

bs_dev_enableFunction · 0.85

Calls 2

enable_resourcesFunction · 0.85
printkFunction · 0.50

Tested by

no test coverage detected