mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 15:25:23 +03:00
[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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user