diff options
| author | Michael Brown | 2006-12-04 19:23:06 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-04 19:23:06 +0100 |
| commit | 946967f09ce0ab9ab438a0647d393601dd0fca23 (patch) | |
| tree | 0e133cb2d481d3e683ecc5be7dcfa0610eaf2f79 /src/drivers/net/etherfabric.c | |
| parent | Changed length parameter in SPI methods to be a byte length, rather than (diff) | |
| download | ipxe-946967f09ce0ab9ab438a0647d393601dd0fca23.tar.gz ipxe-946967f09ce0ab9ab438a0647d393601dd0fca23.tar.xz ipxe-946967f09ce0ab9ab438a0647d393601dd0fca23.zip | |
Abstracted out part of the concept of an SPI device to a generalised NVS
device.
Separated the mechanisms of non-volatile storage access and non-volatile
stored options.
Diffstat (limited to 'src/drivers/net/etherfabric.c')
| -rw-r--r-- | src/drivers/net/etherfabric.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/drivers/net/etherfabric.c b/src/drivers/net/etherfabric.c index 9afe65df..790bfb54 100644 --- a/src/drivers/net/etherfabric.c +++ b/src/drivers/net/etherfabric.c @@ -2388,11 +2388,6 @@ static int falcon_write_nvs ( struct nvs_device *nvs, unsigned int offset, return 0; } -static struct nvs_operations falcon_nvs_operations = { - .read = falcon_read_nvs, - .write = falcon_write_nvs, -}; - /** RX descriptor */ typedef efab_qword_t falcon_rx_desc_t; @@ -3046,10 +3041,12 @@ static int falcon_init_nic ( struct efab_nic *efab ) { /* Register non-volatile storage */ if ( efab->has_eeprom ) { + /* efab->nvs.op = &falcon_nvs_operations; efab->nvs.len = 0x100; if ( nvs_register ( &efab->nvs ) != 0 ) return 0; + */ } return 1; |
