summaryrefslogtreecommitdiff
path: root/src/include/boardid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/boardid.h')
-rw-r--r--src/include/boardid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/boardid.h b/src/include/boardid.h
index e1bce0388a..a959b85367 100644
--- a/src/include/boardid.h
+++ b/src/include/boardid.h
@@ -20,6 +20,15 @@
#define UNDEFINED_STRAPPING_ID (~0)
+#define BOARD_ID_UNKNOWN ~((uint32_t)0) /* unsigned equivalent to -1 */
+#define BOARD_ID_INIT ~((uint32_t)1) /* unsigned equivalent to -2 */
+/**
+ * board_id() - Get the board version
+ *
+ * Return: board version on success, BOARD_ID_UNKNOWN on failure/error.
+ *
+ * This function is used to get the mainboard version.
+ */
uint32_t board_id(void); /* differentiates revisions */
uint32_t ram_code(void); /* identifies installed DRAM modules */
uint32_t sku_id(void); /* differentiates other optional components */