mirror of https://github.com/ipxe/ipxe.git
[nvo] Expose non-volatile options block name
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/598/head
parent
5ad445fd0b
commit
08a6ae86a2
|
@ -296,7 +296,8 @@ int register_nvo ( struct nvo_block *nvo, struct settings *parent ) {
|
||||||
goto err_load;
|
goto err_load;
|
||||||
|
|
||||||
/* Register settings */
|
/* Register settings */
|
||||||
if ( ( rc = register_settings ( &nvo->settings, parent, "nvo" ) ) != 0 )
|
if ( ( rc = register_settings ( &nvo->settings, parent,
|
||||||
|
NVO_SETTINGS_NAME ) ) != 0 )
|
||||||
goto err_register;
|
goto err_register;
|
||||||
|
|
||||||
DBGC ( nvo, "NVO %p registered\n", nvo );
|
DBGC ( nvo, "NVO %p registered\n", nvo );
|
||||||
|
|
|
@ -42,6 +42,9 @@ struct nvo_block {
|
||||||
struct dhcp_options dhcpopts;
|
struct dhcp_options dhcpopts;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** Name of non-volatile options settings block */
|
||||||
|
#define NVO_SETTINGS_NAME "nvo"
|
||||||
|
|
||||||
extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
|
extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
|
||||||
size_t address, size_t len,
|
size_t address, size_t len,
|
||||||
int ( * resize ) ( struct nvo_block *nvo, size_t len ),
|
int ( * resize ) ( struct nvo_block *nvo, size_t len ),
|
||||||
|
|
Loading…
Reference in New Issue