summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/nvo.h
diff options
context:
space:
mode:
authorMichael Brown2006-12-04 19:23:06 +0100
committerMichael Brown2006-12-04 19:23:06 +0100
commit946967f09ce0ab9ab438a0647d393601dd0fca23 (patch)
tree0e133cb2d481d3e683ecc5be7dcfa0610eaf2f79 /src/include/gpxe/nvo.h
parentChanged length parameter in SPI methods to be a byte length, rather than (diff)
downloadipxe-946967f09ce0ab9ab438a0647d393601dd0fca23.tar.gz
ipxe-946967f09ce0ab9ab438a0647d393601dd0fca23.tar.xz
ipxe-946967f09ce0ab9ab438a0647d393601dd0fca23.zip
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.
Diffstat (limited to 'src/include/gpxe/nvo.h')
-rw-r--r--src/include/gpxe/nvo.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/gpxe/nvo.h b/src/include/gpxe/nvo.h
new file mode 100644
index 00000000..b51431aa
--- /dev/null
+++ b/src/include/gpxe/nvo.h
@@ -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 */