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

Function ifwi_print

util/cbfstool/ifwitool.c:1656–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1654}
1655
1656static enum ifwi_ret ifwi_print(void)
1657{
1658 verbose += 2;
1659
1660 struct bpdt *b = buffer_get(&ifwi_image.bpdt);
1661
1662 bpdt_print_header(&b->h, "BPDT");
1663 bpdt_print_entries(&b->e[0], b->h.descriptor_count, "BPDT");
1664
1665 b = buffer_get(&ifwi_image.subpart_buf[S_BPDT_TYPE]);
1666 bpdt_print_header(&b->h, "S-BPDT");
1667 bpdt_print_entries(&b->e[0], b->h.descriptor_count, "S-BPDT");
1668
1669 if (param.dir_ops == 0) {
1670 verbose -= 2;
1671 return NO_ACTION_REQUIRED;
1672 }
1673
1674 int i;
1675 struct buffer subpart_dir_buf;
1676 for (i = 0; i < MAX_SUBPARTS ; i++) {
1677 if (!(subparts[i].attr & CONTAINS_DIR) ||
1678 (buffer_size(&ifwi_image.subpart_buf[i]) == 0))
1679 continue;
1680
1681 parse_subpart_dir(&subpart_dir_buf, &ifwi_image.subpart_buf[i],
1682 subparts[i].name);
1683 buffer_delete(&subpart_dir_buf);
1684 }
1685
1686 verbose -= 2;
1687
1688 return NO_ACTION_REQUIRED;
1689}
1690
1691static enum ifwi_ret ifwi_raw_replace(int type)
1692{

Callers

nothing calls this directly

Calls 6

buffer_getFunction · 0.85
bpdt_print_headerFunction · 0.85
bpdt_print_entriesFunction · 0.85
buffer_sizeFunction · 0.85
parse_subpart_dirFunction · 0.85
buffer_deleteFunction · 0.85

Tested by

no test coverage detected