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

Function reset_bus

src/device/device.c:358–366  ·  view source on GitHub ↗

* Reset all of the devices on a bus and clear the bus's reset_needed flag. * * @param bus Pointer to the bus structure. * @return 1 if the bus was successfully reset, 0 otherwise. */

Source from the content-addressed store, hash-verified

356 * @return 1 if the bus was successfully reset, 0 otherwise.
357 */
358int reset_bus(struct bus *bus)
359{
360 if (bus && bus->dev && bus->dev->ops && bus->dev->ops->reset_bus) {
361 bus->dev->ops->reset_bus(bus);
362 bus->reset_needed = 0;
363 return 1;
364 }
365 return 0;
366}
367
368/**
369 * Scan for devices on a bus.

Callers 1

scan_busFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected