Changeset 1199 for trunk/print.c


Ignore:
Timestamp:
Oct 7, 2010 1:48:34 AM (3 years ago)
Author:
hailfinger
Message:

flashrom -L output did not contain a list of programmers nor were all
programmers listed.
Fix it and mention at least the name of each programmer.
Wiki output is unchanged, and will need separate fixups.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Uwe Hermann <uwe@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/print.c

    r1192 r1199  
    224224void print_supported(void) 
    225225{ 
    226                 print_supported_chips(); 
     226        print_supported_chips(); 
     227 
     228        printf("\nSupported programmers:\n"); 
     229        list_programmers_linebreak(0, 80, 0); 
    227230#if CONFIG_INTERNAL == 1 
    228                 print_supported_chipsets(); 
    229                 print_supported_boards_helper(boards_known, "boards"); 
    230                 print_supported_boards_helper(laptops_known, "laptops"); 
    231 #endif 
    232 #if CONFIG_NIC3COM+CONFIG_NICREALTEK+CONFIG_NICNATSEMI+CONFIG_GFXNVIDIA+CONFIG_DRKAISER+CONFIG_SATASII+CONFIG_ATAHPT >= 1 
    233                 printf("\nSupported PCI devices flashrom can use " 
    234                        "as programmer:\n\n"); 
     231        printf("\nSupported devices for the %s programmer:\n", 
     232               programmer_table[PROGRAMMER_INTERNAL].name); 
     233        print_supported_chipsets(); 
     234        print_supported_boards_helper(boards_known, "boards"); 
     235        print_supported_boards_helper(laptops_known, "laptops"); 
     236#endif 
     237#if CONFIG_DUMMY == 1 
     238        printf("\nSupported devices for the %s programmer:\n", 
     239               programmer_table[PROGRAMMER_DUMMY].name); 
     240        /* FIXME */ 
    235241#endif 
    236242#if CONFIG_NIC3COM == 1 
    237                 print_supported_pcidevs(nics_3com); 
     243        printf("\nSupported devices for the %s programmer:\n", 
     244               programmer_table[PROGRAMMER_NIC3COM].name); 
     245        print_supported_pcidevs(nics_3com); 
    238246#endif 
    239247#if CONFIG_NICREALTEK == 1 
    240                 print_supported_pcidevs(nics_realtek); 
    241                 print_supported_pcidevs(nics_realteksmc1211); 
     248        printf("\nSupported devices for the %s programmer:\n", 
     249               programmer_table[PROGRAMMER_NICREALTEK].name); 
     250        print_supported_pcidevs(nics_realtek); 
     251        printf("\nSupported devices for the %s programmer:\n", 
     252               programmer_table[PROGRAMMER_NICREALTEK2].name); 
     253        print_supported_pcidevs(nics_realteksmc1211); 
    242254#endif 
    243255#if CONFIG_NICNATSEMI == 1 
    244                 print_supported_pcidevs(nics_natsemi); 
     256        printf("\nSupported devices for the %s programmer:\n", 
     257               programmer_table[PROGRAMMER_NICNATSEMI].name); 
     258        print_supported_pcidevs(nics_natsemi); 
    245259#endif 
    246260#if CONFIG_GFXNVIDIA == 1 
    247                 print_supported_pcidevs(gfx_nvidia); 
     261        printf("\nSupported devices for the %s programmer:\n", 
     262               programmer_table[PROGRAMMER_GFXNVIDIA].name); 
     263        print_supported_pcidevs(gfx_nvidia); 
    248264#endif 
    249265#if CONFIG_DRKAISER == 1 
    250                 print_supported_pcidevs(drkaiser_pcidev); 
     266        printf("\nSupported devices for the %s programmer:\n", 
     267               programmer_table[PROGRAMMER_DRKAISER].name); 
     268        print_supported_pcidevs(drkaiser_pcidev); 
    251269#endif 
    252270#if CONFIG_SATASII == 1 
    253                 print_supported_pcidevs(satas_sii); 
     271        printf("\nSupported devices for the %s programmer:\n", 
     272               programmer_table[PROGRAMMER_SATASII].name); 
     273        print_supported_pcidevs(satas_sii); 
    254274#endif 
    255275#if CONFIG_ATAHPT == 1 
    256                 print_supported_pcidevs(ata_hpt); 
     276        printf("\nSupported devices for the %s programmer:\n", 
     277               programmer_table[PROGRAMMER_ATAHPT].name); 
     278        print_supported_pcidevs(ata_hpt); 
     279#endif 
     280#if CONFIG_FT2232_SPI == 1 
     281        printf("\nSupported devices for the %s programmer:\n", 
     282               programmer_table[PROGRAMMER_FT2232_SPI].name); 
     283        print_supported_usbdevs(devs_ft2232spi); 
     284#endif 
     285#if CONFIG_SERPROG == 1 
     286        printf("\nSupported devices for the %s programmer:\n", 
     287               programmer_table[PROGRAMMER_SERPROG].name); 
     288        /* FIXME */ 
     289#endif 
     290#if CONFIG_BUSPIRATE_SPI == 1 
     291        printf("\nSupported devices for the %s programmer:\n", 
     292               programmer_table[PROGRAMMER_BUSPIRATE_SPI].name); 
     293        /* FIXME */ 
     294#endif 
     295#if CONFIG_DEDIPROG == 1 
     296        printf("\nSupported devices for the %s programmer:\n", 
     297               programmer_table[PROGRAMMER_DEDIPROG].name); 
     298        /* FIXME */ 
     299#endif 
     300#if CONFIG_RAYER_SPI == 1 
     301        printf("\nSupported devices for the %s programmer:\n", 
     302               programmer_table[PROGRAMMER_RAYER_SPI].name); 
     303        /* FIXME */ 
    257304#endif 
    258305#if CONFIG_NICINTEL_SPI == 1 
    259                 print_supported_pcidevs(nics_intel_spi); 
    260 #endif 
    261  
    262 #if CONFIG_FT2232_SPI+CONFIG_DEDIPROG >= 1 
    263                 printf("\nSupported USB devices flashrom can use " 
    264                        "as programmer:\n\n"); 
    265 #endif 
    266  
    267 #if CONFIG_FT2232_SPI == 1 
    268                 print_supported_usbdevs(devs_ft2232spi); 
     306        printf("\nSupported devices for the %s programmer:\n", 
     307               programmer_table[PROGRAMMER_NICINTEL_SPI].name); 
     308        print_supported_pcidevs(nics_intel_spi); 
    269309#endif 
    270310} 
Note: See TracChangeset for help on using the changeset viewer.