mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
List the size (in KB) and type of supported flash chips in 'flashrom -L'
Also, list how many chips/chipsets/boards we support in 'flashrom -L'. Corresponding to flashrom svn r599. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
@ -1037,11 +1037,14 @@ const struct penable chipset_enables[] = {
|
||||
|
||||
void print_supported_chipsets(void)
|
||||
{
|
||||
int i, j;
|
||||
int i, j, chipsetcount = 0;
|
||||
const struct penable *c = chipset_enables;
|
||||
|
||||
printf("\nSupported chipsets:\n\nVendor: Chipset:"
|
||||
" PCI IDs:\n\n");
|
||||
for (i = 0; c[i].vendor_name != NULL; i++)
|
||||
chipsetcount++;
|
||||
|
||||
printf("\nSupported chipsets (total: %d):\n\nVendor: "
|
||||
"Chipset: PCI IDs:\n\n", chipsetcount);
|
||||
|
||||
for (i = 0; c[i].vendor_name != NULL; i++) {
|
||||
printf("%s", c[i].vendor_name);
|
||||
|
Reference in New Issue
Block a user