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

Function mdio_read

src/device/mdio.c:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19uint16_t mdio_read(struct device *dev, uint8_t offset)
20{
21 const struct mdio_bus_operations *mdio_ops;
22 struct device *parent = dev->upstream->dev;
23
24 assert(dev->path.type == DEVICE_PATH_MDIO);
25 mdio_ops = dev_get_mdio_ops(parent);
26 if (!mdio_ops)
27 return 0;
28 return mdio_ops->read(parent, dev->path.mdio.addr, offset);
29}
30void mdio_write(struct device *dev, uint8_t offset, uint16_t val)
31{
32 const struct mdio_bus_operations *mdio_ops;

Callers 1

m88e1512_initFunction · 0.85

Calls 2

dev_get_mdio_opsFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected