Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: include/lib/vpd.h

Issue 6628052: Supports SPD in VPD partition. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vpd.git@master
Patch Set: refine the logic to next structure table. refine type 241 parameters. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/lib/lib_smbios.h ('k') | include/lib/vpd_tables.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/lib/vpd.h
diff --git a/include/lib/vpd.h b/include/lib/vpd.h
index 7a21a07d2d4e1e5cb7987ee83d26bbab205b820f..1caaf024aae1e4806c11a9d739fd14531d46545e 100644
--- a/include/lib/vpd.h
+++ b/include/lib/vpd.h
@@ -30,12 +30,25 @@ enum vpd_types {
VPD_TYPE_BINARY_BLOB_POINTER = 241,
};
-#define GOOGLE_VPD_2_0_EPS_BASE 0x240000
-#define GOOGLE_VPD_2_0_OFFSET 0x100
+/* The default RO VPD location in BIOS image.
+ * If VPD partition cannot be found on fmap, buildEpsAndTables() will use
+ * this value to count the offset fields of SPD and VPD 2.0.
+ *
+ * A user can specify -E argument to change the EPS base value. */
+#define GOOGLE_EPS_BASE 0x000000
+
+#define GOOGLE_SPD_OFFSET 0x400
+#define GOOGLE_SPD_UUID "75f4926b-9e43-4b32-8979-eb20c0eda76a"
+#define GOOGLE_SPD_VENDOR "Google"
+#define GOOGLE_SPD_DESCRIPTION "Google SPD"
+#define GOOGLE_SPD_VARIANT ""
+
+#define GOOGLE_VPD_2_0_OFFSET 0x600
#define GOOGLE_VPD_2_0_UUID "0a7c23d3-8a27-4252-99bf-7868a2e26b61"
#define GOOGLE_VPD_2_0_VENDOR "Google"
#define GOOGLE_VPD_2_0_DESCRIPTION "Google VPD 2.0"
#define GOOGLE_VPD_2_0_VARIANT ""
+
#define CONFIG_EPS_VPD_MAJOR_VERSION 2
#define CONFIG_EPS_VPD_MINOR_VERSION 6
« no previous file with comments | « include/lib/lib_smbios.h ('k') | include/lib/vpd_tables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698