mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user