Browse Source

[nvo] Expose non-volatile options block name

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
08a6ae86a2
2 changed files with 5 additions and 1 deletions
  1. 2
    1
      src/core/nvo.c
  2. 3
    0
      src/include/ipxe/nvo.h

+ 2
- 1
src/core/nvo.c View File

296
 		goto err_load;
296
 		goto err_load;
297
 
297
 
298
 	/* Register settings */
298
 	/* Register settings */
299
-	if ( ( rc = register_settings ( &nvo->settings, parent, "nvo" ) ) != 0 )
299
+	if ( ( rc = register_settings ( &nvo->settings, parent,
300
+					NVO_SETTINGS_NAME ) ) != 0 )
300
 		goto err_register;
301
 		goto err_register;
301
 
302
 
302
 	DBGC ( nvo, "NVO %p registered\n", nvo );
303
 	DBGC ( nvo, "NVO %p registered\n", nvo );

+ 3
- 0
src/include/ipxe/nvo.h View File

42
 	struct dhcp_options dhcpopts;
42
 	struct dhcp_options dhcpopts;
43
 };
43
 };
44
 
44
 
45
+/** Name of non-volatile options settings block */
46
+#define NVO_SETTINGS_NAME "nvo"
47
+
45
 extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
48
 extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
46
 		       size_t address, size_t len,
49
 		       size_t address, size_t len,
47
 		       int ( * resize ) ( struct nvo_block *nvo, size_t len ),
50
 		       int ( * resize ) ( struct nvo_block *nvo, size_t len ),

Loading…
Cancel
Save