aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkaihuan.pkh <kaihuan.pkh@alibaba-inc.com>2019-11-18 20:08:36 +0800
committerPaolo Bonzini <bonzini@gnu.org>2019-11-18 15:52:42 +0100
commit94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868 (patch)
treebcf70ecfa51cb72607f497caf87d0b4050d1d3a4 /include
parentcb1c49e0cfac99b9961d136ac0194da62c28cf64 (diff)
downloadqboot-94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868.zip
qboot-94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868.tar.gz
qboot-94d3b1b5d1fc30bd7b63af9d07cb8db89a5f4868.tar.bz2
support smbios
alloc buffer in fseg memory and fill it with smbios anchor and tables which read from the fw_cfg, then check type0 table and rebuild it if it's not exist. mainly inspired by the seabios, and borrowed some code from it. Reviewed-by: Ben Luo <luoben@linux.alibaba.com> Signed-off-by: kaihuan.pkh <kaihuan.pkh@alibaba-inc.com>
Diffstat (limited to 'include')
-rw-r--r--include/smbios.h1
-rw-r--r--include/string.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/smbios.h b/include/smbios.h
new file mode 100644
index 0000000..ec033ce
--- /dev/null
+++ b/include/smbios.h
@@ -0,0 +1 @@
+void extract_smbios(void);
diff --git a/include/string.h b/include/string.h
index d1bb037..cf9fde9 100644
--- a/include/string.h
+++ b/include/string.h
@@ -2,6 +2,7 @@
#define BIOS_STRING_H
#include <stddef.h>
+#include <inttypes.h>
unsigned long strlen(const char *buf);
char *strcat(char *dest, const char *src);
@@ -12,6 +13,7 @@ char *strstr(const char *s1, const char *s2);
int memcmp(const void *s1, const void *s2, size_t n);
void *memmove(void *dest, const void *src, size_t n);
void *memchr(const void *s, int c, size_t n);
+uint8_t csum8(uint8_t *buf, uint32_t len);
static inline void *memset(void *s, int c, size_t n)
{