diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-07-21 09:48:37 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-07-21 09:48:37 +0000 |
commit | 636d90fc5cc34dc279f5004a47d79deee99dac7d (patch) | |
tree | a94154d475539403bc055351b9fa713d258e8a5b /sys/i386/include/pc | |
parent | 514bcb8955316ee268a668ac7a63486d5c78f446 (diff) | |
download | src-636d90fc5cc34dc279f5004a47d79deee99dac7d.tar.gz src-636d90fc5cc34dc279f5004a47d79deee99dac7d.zip |
Make the facility for recognizing BIOS-signatures more general
and return a printable representation.
This fixes recognition of the PC Engines WRAP and improves the
recognition of the Soekris boards (Bios version can now be
seen in the dmesg output for instance).
Also, add watchdog support for PCM-582x platforms.
Submitted by: Adrian Steinmann <ast@marabu.ch>
Slightly changed by: phk
PR: 81360
Notes
Notes:
svn path=/head/; revision=148231
Diffstat (limited to 'sys/i386/include/pc')
-rw-r--r-- | sys/i386/include/pc/bios.h | 17 |
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_ */ |