summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index 4e0e579..9c26b59 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -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);
OpenPOWER on IntegriCloud