diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-11-17 09:57:34 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-11-17 09:57:34 +0000 |
commit | 462c33f7231a52fd7d6e821f54bfec2401965d64 (patch) | |
tree | 62e7a6f0fe09535ffcfc679a991c2ca3d665f2d4 /print.c | |
parent | acdc812b30ce00d2bfb5b5705908d8c686875066 (diff) | |
download | flashrom-462c33f7231a52fd7d6e821f54bfec2401965d64.zip flashrom-462c33f7231a52fd7d6e821f54bfec2401965d64.tar.gz |
To prepare for libflashrom I wanted to make the main loop more readable and more correct and factor out stuff which can be useful in
Libflashrom. - Factor out printing of supported devices to print.c. -
Adjust name of wiki printing function to fit the pattern. - Abort if the
user specified--verify and--noverify at the same time. - Check for extra
parameters which don't fit commandline syntax.
Corresponding to flashrom svn r766.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -222,6 +222,27 @@ void print_supported_boards(void) "Laptops which have been verified to NOT work yet"); } +void print_supported(void) +{ + print_supported_chips(); + print_supported_chipsets(); + print_supported_boards(); + printf("\nSupported PCI devices flashrom can use " + "as programmer:\n\n"); +#if NIC3COM_SUPPORT == 1 + print_supported_pcidevs(nics_3com); +#endif +#if GFXNVIDIA_SUPPORT == 1 + print_supported_pcidevs(gfx_nvidia); +#endif +#if DRKAISER_SUPPORT == 1 + print_supported_pcidevs(drkaiser_pcidev); +#endif +#if SATASII_SUPPORT == 1 + print_supported_pcidevs(satas_sii); +#endif +} + /* Please keep this list alphabetically ordered by vendor/board. */ const struct board_info boards_ok[] = { |