mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 09:09:32 +03:00
Abstracted out part of the concept of an SPI device to a generalised NVS
device. Separated the mechanisms of non-volatile storage access and non-volatile stored options.
This commit is contained in:
21
src/include/gpxe/nvo.h
Normal file
21
src/include/gpxe/nvo.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _GPXE_NVO_H
|
||||
#define _GPXE_NVO_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* Non-volatile stored options
|
||||
*
|
||||
*/
|
||||
|
||||
struct nvs_device;
|
||||
struct dhcp_option_block;
|
||||
|
||||
struct nvs_options {
|
||||
struct nvs_device *nvs;
|
||||
struct dhcp_option_block *options;
|
||||
};
|
||||
|
||||
extern int nvo_register ( struct nvs_options *nvo );
|
||||
extern void nvo_unregister ( struct nvs_options *nvo );
|
||||
|
||||
#endif /* _GPXE_NVO_H */
|
||||
Reference in New Issue
Block a user