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:
Michael Brown
2006-12-04 18:23:06 +00:00
parent dc06c895fc
commit 946967f09c
12 changed files with 275 additions and 240 deletions

21
src/include/gpxe/nvo.h Normal file
View 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 */