summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-06 16:46:01 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-06 16:46:01 +0000
commit2f0c189da9ee803466bdd7707f0a8cc207259ee8 (patch)
treee96176627381086451711251ef331eadb8761b22 /util/nvmutil/nvmutil.c
parent7f6d7526cc2d5ac965ba5eaf99d482b13086a820 (diff)
util/nvmutil: more readable SIZE_nKB defines
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index f489448d..04d691d2 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -64,10 +64,11 @@ static void set_err(int);
#define NVM_CHECKSUM_WORD 0x3F
#define NVM_SIZE 128
-#define SIZE_4KB 0x1000
-#define SIZE_8KB 0x2000
-#define SIZE_16KB 0x4000
-#define SIZE_128KB 0x20000
+#define SIZE_1KB 1024
+#define SIZE_4KB (4 * SIZE_1KB)
+#define SIZE_8KB (8 * SIZE_1KB)
+#define SIZE_16KB (16 * SIZE_1KB)
+#define SIZE_128KB (128 * SIZE_1KB)
#define MAX_RETRY_READ 30