aboutsummaryrefslogtreecommitdiff
path: root/include/smbios.h
diff options
context:
space:
mode:
authorSimon Glass2020-11-05 06:32:07 -0700
committerBin Meng2020-11-06 10:18:20 +0800
commit78227d4eda26d5838b34e12f5080346728015fa5 (patch)
tree715f35ded858bb4330b11dabac713b5de8ae83e3 /include/smbios.h
parent49337238effdd86e5863b14a52c1ecc08867bb01 (diff)
x86: Pass an ofnode into each SMBIOS function
As a first step to obtaining SMBIOS information from the devicetree, add an ofnode parameter to the writing functions. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/smbios.h')
-rw-r--r--include/smbios.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/smbios.h b/include/smbios.h
index 44f49e9556b..1846607c3cf 100644
--- a/include/smbios.h
+++ b/include/smbios.h
@@ -8,6 +8,8 @@
#ifndef _SMBIOS_H_
#define _SMBIOS_H_
+#include <dm/ofnode.h>
+
/* SMBIOS spec version implemented */
#define SMBIOS_MAJOR_VER 3
#define SMBIOS_MINOR_VER 0
@@ -222,9 +224,10 @@ static inline void fill_smbios_header(void *table, int type,
*
* @addr: start address to write the structure
* @handle: the structure's handle, a unique 16-bit number
+ * @node: node containing the information to write (ofnode_null() if none)
* @return: size of the structure
*/
-typedef int (*smbios_write_type)(ulong *addr, int handle);
+typedef int (*smbios_write_type)(ulong *addr, int handle, ofnode node);
/**
* write_smbios_table() - Write SMBIOS table