aboutsummaryrefslogtreecommitdiffstats
path: root/nicintel_eeprom.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.de>2021-05-04 15:32:17 +0200
committerNico Huber <nico.h@gmx.de>2021-06-10 12:49:16 +0000
commit4f5169df5ff2b63a40d654ab133b8a3108b6a599 (patch)
treed345dd5f3068a2325298234e302988b0c82a62e3 /nicintel_eeprom.c
parent085db626fbf609704136aa3cc51c70325d0b40e2 (diff)
downloadflashrom-4f5169df5ff2b63a40d654ab133b8a3108b6a599.tar.gz
flashrom-4f5169df5ff2b63a40d654ab133b8a3108b6a599.tar.bz2
flashrom-4f5169df5ff2b63a40d654ab133b8a3108b6a599.zip
programmer_table: move each entry to the associated programmer source
Change-Id: I3d02bd789f0299e936eb86819b3b15b5ea2bb921 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52946 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'nicintel_eeprom.c')
-rw-r--r--nicintel_eeprom.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/nicintel_eeprom.c b/nicintel_eeprom.c
index e170fcf4..b5f20508 100644
--- a/nicintel_eeprom.c
+++ b/nicintel_eeprom.c
@@ -81,7 +81,7 @@ static bool done_i20_write = false;
* Warning: is_i210() below makes assumptions on these PCI ids.
* It may have to be updated when this list is extended.
*/
-const struct dev_entry nics_intel_ee[] = {
+static const struct dev_entry nics_intel_ee[] = {
{PCI_VENDOR_ID_INTEL, 0x150e, OK, "Intel", "82580 Quad Gigabit Ethernet Controller (Copper)"},
{PCI_VENDOR_ID_INTEL, 0x150f, NT , "Intel", "82580 Quad Gigabit Ethernet Controller (Fiber)"},
{PCI_VENDOR_ID_INTEL, 0x1510, NT , "Intel", "82580 Quad Gigabit Ethernet Controller (Backplane)"},
@@ -447,7 +447,7 @@ static int nicintel_ee_shutdown_82580(void *eecp)
return ret;
}
-int nicintel_ee_init(void)
+static int nicintel_ee_init(void)
{
if (rget_io_perms())
return 1;
@@ -501,3 +501,13 @@ int nicintel_ee_init(void)
return 1;
}
+
+const struct programmer_entry programmer_nicintel_eeprom = {
+ .name = "nicintel_eeprom",
+ .type = PCI,
+ .devs.dev = nics_intel_ee,
+ .init = nicintel_ee_init,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+};