diff options
author | phk <phk@FreeBSD.org> | 2004-06-03 22:36:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-03 22:36:24 +0000 |
commit | 89408985eaaf47b9c89c90fd5a2fa2539c4e4fef (patch) | |
tree | 452c09cbce34ba47095f1186f50d81bfb2824fde /sys/amd64/include/pc | |
parent | 53a20a543af6dbdf53bd7f9c07113081e47a849c (diff) | |
download | FreeBSD-src-89408985eaaf47b9c89c90fd5a2fa2539c4e4fef.zip FreeBSD-src-89408985eaaf47b9c89c90fd5a2fa2539c4e4fef.tar.gz |
Add new bios_string() which will hunt for a string inside a given range
of the BIOS. This can be used for finding arbitrary magic in the BIOS
in order to recognize particular platforms.
Diffstat (limited to 'sys/amd64/include/pc')
-rw-r--r-- | sys/amd64/include/pc/bios.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/amd64/include/pc/bios.h b/sys/amd64/include/pc/bios.h index fe1f703..32b6a52 100644 --- a/sys/amd64/include/pc/bios.h +++ b/sys/amd64/include/pc/bios.h @@ -27,6 +27,9 @@ * $FreeBSD$ */ +#ifndef _MACHINE_PC_BIOS_H_ +#define _MACHINE_PC_BIOS_H_ + /* * Signature structure for the BIOS32 Service Directory header */ @@ -278,3 +281,8 @@ struct bios_smap { u_int64_t length; u_int32_t type; } __packed; + +const u_char *bios_string(u_int from, u_int to, const u_char *string, int len); + + +#endif /* _MACHINE_PC_BIOS_H_ */ |