aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/pc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/include/pc')
-rw-r--r--sys/i386/include/pc/bios.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/i386/include/pc/bios.h b/sys/i386/include/pc/bios.h
index c7362a964080..4533de75acdc 100644
--- a/sys/i386/include/pc/bios.h
+++ b/sys/i386/include/pc/bios.h
@@ -281,7 +281,22 @@ struct bios_smap {
u_int32_t type;
} __packed;
-const u_char *bios_string(u_int from, u_int to, const u_char *string, int len);
+struct bios_oem_signature {
+ char * anchor; /* search anchor string in BIOS memory */
+ size_t offset; /* offset from anchor (may be negative) */
+ size_t totlen; /* total length of BIOS string to copy */
+} __packed;
+struct bios_oem_range {
+ u_int from; /* shouldn't be below 0xe0000 */
+ u_int to; /* shouldn't be above 0xfffff */
+} __packed;
+struct bios_oem {
+ struct bios_oem_range range;
+ struct bios_oem_signature signature[];
+} __packed;
+
+extern int
+bios_oem_strings(struct bios_oem *oem, u_char *buffer, size_t maxlen);
#endif /* _MACHINE_PC_BIOS_H_ */