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

Function lookup_chip_name

util/superiotool/microchip.c:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40static const char *lookup_chip_name(uint16_t device_id, uint8_t subdevice_id)
41{
42 const uint32_t id = (((uint32_t)device_id) << 8) | subdevice_id;
43 for (size_t i = 0; chip_names[i].devid_subdevid != EOT; i++) {
44 if (chip_names[i].devid_subdevid == id)
45 return chip_names[i].name;
46 }
47 return "UNKNOWN";
48}
49
50// .superio_id holds only the device id, which indicates the family (e.g.
51// MEC152x or MEC172x or ...)

Callers 1

probe_idregs_microchipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected