Skip to main content

validate_option_rom

Function validate_option_rom 

Source
pub fn validate_option_rom(image: &[u8]) -> Result<OptionRomInfo, FirmwareError>
Expand description

Validates an option ROM and computes its placement.

The size code at offset 2 is in 512-byte units. Only the declared portion is checksummed and installed, which is what the PC option-ROM scan does.