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

Function dev_initialize_chips

src/device/device.c:35–49  ·  view source on GitHub ↗

* Initialize all chips of statically known devices. * * Will be called before bus enumeration to initialize chips stated in the * device tree. */

Source from the content-addressed store, hash-verified

33 * device tree.
34 */
35void dev_initialize_chips(void)
36{
37 const struct device *dev;
38
39 for (dev = all_devices; dev; dev = dev->next) {
40 /* Initialize chip if we haven't yet. */
41 if (dev->chip_ops && dev->chip_ops->init &&
42 !dev->chip_ops->initialized) {
43 post_log_path(dev);
44 dev->chip_ops->init(dev->chip_info);
45 dev->chip_ops->initialized = 1;
46 }
47 }
48 post_log_clear();
49}
50
51/**
52 * Finalize all chips of statically known devices.

Callers 1

bs_dev_init_chipsFunction · 0.85

Calls 3

post_log_pathFunction · 0.85
post_log_clearFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected