6 * Non-volatile stored options
11 #include <gpxe/dhcpopts.h>
12 #include <gpxe/settings.h>
18 * A fragment of a non-volatile storage device used for stored options
21 /** Starting address of fragment within NVS device */
23 /** Length of fragment */
28 * A block of non-volatile stored options
32 struct settings settings
;
33 /** Underlying non-volatile storage device */
34 struct nvs_device
*nvs
;
35 /** List of option-containing fragments
37 * The list is terminated by a fragment with a length of zero.
39 struct nvo_fragment
*fragments
;
40 /** Total length of option-containing fragments */
42 /** Option-containing data */
44 /** DHCP options block */
45 struct dhcp_options dhcpopts
;
48 extern void nvo_init ( struct nvo_block
*nvo
, struct nvs_device
*nvs
,
49 struct nvo_fragment
*fragments
, struct refcnt
*refcnt
);
50 extern int register_nvo ( struct nvo_block
*nvo
, struct settings
*parent
);
51 extern void unregister_nvo ( struct nvo_block
*nvo
);
53 #endif /* _GPXE_NVO_H */