summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/etherfabric.c
diff options
context:
space:
mode:
authorMichael Brown2010-11-30 02:10:38 +0100
committerMichael Brown2011-01-11 22:24:40 +0100
commit1651d4f6d7f764ff5bfafc12bd058a88e49b0ff5 (patch)
treea2ea4008bbe1d2398017e1bdd96e7e7cbc20d1e1 /src/drivers/net/etherfabric.c
parent[nvs] Allow for non-volatile storage devices without block boundaries (diff)
downloadipxe-1651d4f6d7f764ff5bfafc12bd058a88e49b0ff5.tar.gz
ipxe-1651d4f6d7f764ff5bfafc12bd058a88e49b0ff5.tar.xz
ipxe-1651d4f6d7f764ff5bfafc12bd058a88e49b0ff5.zip
[nvo] Remove the non-volatile options fragment list
Since its implementation several years ago, no driver has used a fragment list containing more than a single fragment. Simplify the NVO core and the drivers that use it by removing the whole concept of the fragment list, and using a simple (address,length) pair instead. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/etherfabric.c')
-rw-r--r--src/drivers/net/etherfabric.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/drivers/net/etherfabric.c b/src/drivers/net/etherfabric.c
index 352cdd99..77d21247 100644
--- a/src/drivers/net/etherfabric.c
+++ b/src/drivers/net/etherfabric.c
@@ -1492,12 +1492,6 @@ fail1:
return rc;
}
-/** Portion of EEPROM available for non-volatile options */
-static struct nvo_fragment falcon_nvo_fragments[] = {
- { 0x100, 0xf0 },
- { 0, 0 }
-};
-
/*******************************************************************************
*
*
@@ -3277,9 +3271,10 @@ falcon_probe_spi ( struct efab_nic *efab )
}
/* If the device has EEPROM attached, then advertise NVO space */
- if ( has_eeprom )
- nvo_init ( &efab->nvo, &efab->spi_eeprom.nvs, falcon_nvo_fragments,
+ if ( has_eeprom ) {
+ nvo_init ( &efab->nvo, &efab->spi_eeprom.nvs, 0x100, 0xf0,
&efab->netdev->refcnt );
+ }
return 0;
}