summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/nvs.h
diff options
context:
space:
mode:
authorMichael Brown2006-12-04 20:06:07 +0100
committerMichael Brown2006-12-04 20:06:07 +0100
commit2d8d21fe7416871920c96b53b7d3ae5d02964575 (patch)
tree99ffe79573045f96ab75593bafc6478bcf05cd22 /src/include/gpxe/nvs.h
parentAdded generic SPI protocol handler with read and write support. (diff)
downloadipxe-2d8d21fe7416871920c96b53b7d3ae5d02964575.tar.gz
ipxe-2d8d21fe7416871920c96b53b7d3ae5d02964575.tar.xz
ipxe-2d8d21fe7416871920c96b53b7d3ae5d02964575.zip
Added the generic block-splitting code to nvs.c
Diffstat (limited to 'src/include/gpxe/nvs.h')
-rw-r--r--src/include/gpxe/nvs.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/gpxe/nvs.h b/src/include/gpxe/nvs.h
index 38bc9c55..b026dd46 100644
--- a/src/include/gpxe/nvs.h
+++ b/src/include/gpxe/nvs.h
@@ -11,8 +11,13 @@
/** A non-volatile storage device */
struct nvs_device {
- /** Word length, in bits */
- unsigned int word_len;
+ /** Word length
+ *
+ * This is expressed as the base-2 logarithm of the word
+ * length in bytes. A value of 0 therefore translates as
+ * 8-bit words, and a value of 1 translates as 16-bit words.
+ */
+ unsigned int word_len_log2;
/** Device size (in words) */
unsigned int size;
/** Data block size (in words)