pub fn validate_bios(image: &[u8]) -> Result<BiosInfo, FirmwareError>Expand description
Validates a flat BIOS image and computes its placement.
The image must be a power-of-two length between MIN_BIOS_LEN and
MAX_BIOS_LEN and end with a FAR JMP 0xF000:xxxx reset vector, which is
the architectural x86 reset entry. The image is placed so that it ends
at BIOS_TOP; the official 256 KiB SeaBIOS therefore lands at 0xC_0000
and leaves its first 64 KiB zero-filled for option ROMs.