aboutsummaryrefslogtreecommitdiff
path: root/lib/smbios.c
diff options
context:
space:
mode:
authorSimon Glass2021-02-04 21:17:14 -0700
committerBin Meng2021-02-06 19:18:41 +0800
commit0e89b85906eafa22971f685fe5b184852f7b4eb0 (patch)
tree44249382a8f0e3d32be8b0e5868cb18ea3bb7dfd /lib/smbios.c
parent68f6a90ec27c46f804f7ee5a2e736fb2c24f71de (diff)
smbios: Move smbios_write_type to the C file
This type is not used outside the smbios.c file so there is no need for it to be in the header file. Move it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'lib/smbios.c')
-rw-r--r--lib/smbios.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/smbios.c b/lib/smbios.c
index 1e10fa84207..b1171f544a8 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -18,6 +18,16 @@
#endif
/**
+ * Function prototype to write a specific type of SMBIOS structure
+ *
+ * @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, ofnode node);
+
+/**
* struct smbios_write_method - Information about a table-writing function
*
* @write: Function to call