mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
nic3com: allow selection of a particular PCI device to use as programmer
Add support for users to specify a certain NIC via PCI bus:slot.func notation, in case there are multiple NICs in one system. Usage: flashrom -p nic3com=bb:ss.f Corresponding to flashrom svn r510. Signed-off-by: Christian Ruppert <spooky85@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:

committed by
Uwe Hermann

parent
c2a9c9c5fd
commit
0cdb0313f1
@ -35,6 +35,7 @@ char *chip_to_probe = NULL;
|
||||
int exclude_start_page, exclude_end_page;
|
||||
int verbose = 0;
|
||||
int programmer = PROGRAMMER_INTERNAL;
|
||||
char *nic_pcidev = NULL;
|
||||
|
||||
const struct programmer_entry programmer_table[] = {
|
||||
{
|
||||
@ -454,6 +455,8 @@ int main(int argc, char *argv[])
|
||||
programmer = PROGRAMMER_DUMMY;
|
||||
} else if (strncmp(optarg, "nic3com", 7) == 0) {
|
||||
programmer = PROGRAMMER_NIC3COM;
|
||||
if (optarg[7] == '=')
|
||||
nic_pcidev = strdup(optarg + 8);
|
||||
} else {
|
||||
printf("Error: Unknown programmer.\n");
|
||||
exit(1);
|
||||
|
Reference in New Issue
Block a user