mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
[nvo] Allow resizing of non-volatile stored option blocks
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -3273,7 +3273,7 @@ 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, 0x100, 0xf0,
|
||||
&efab->netdev->refcnt );
|
||||
NULL, &efab->netdev->refcnt );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -732,6 +732,7 @@ static int myri10ge_nv_init ( struct myri10ge_private *priv )
|
||||
nvo_init ( &priv->nvo,
|
||||
&priv->nvs,
|
||||
nvo_fragment_pos, 0x200,
|
||||
NULL,
|
||||
& myri10ge_netdev (priv) -> refcnt );
|
||||
rc = register_nvo ( &priv->nvo,
|
||||
netdev_settings ( myri10ge_netdev ( priv ) ) );
|
||||
|
||||
@@ -154,7 +154,7 @@ static void natsemi_init_eeprom ( struct natsemi_private *np ) {
|
||||
* this region. Currently it is not working. But with some
|
||||
* efforts it can.
|
||||
*/
|
||||
nvo_init ( &np->nvo, &np->eeprom.nvs, 0x0c, 0x68, NULL );
|
||||
nvo_init ( &np->nvo, &np->eeprom.nvs, 0x0c, 0x68, NULL, NULL );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -288,7 +288,7 @@ static void rtl_init_eeprom ( struct net_device *netdev ) {
|
||||
DBGC ( rtl, "rtl8139 %p EEPROM in use for VPD; cannot use "
|
||||
"for options\n", rtl );
|
||||
} else {
|
||||
nvo_init ( &rtl->nvo, &rtl->eeprom.nvs, 0x20, 0x40,
|
||||
nvo_init ( &rtl->nvo, &rtl->eeprom.nvs, 0x20, 0x40, NULL,
|
||||
&netdev->refcnt );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user