*** Welcome to piglix ***

Option ROM


An Option ROM typically consists of firmware that is called by the system BIOS. For example, an adapter card that controls a boot device might contain firmware that is used to connect the device to the system once the Option ROM is loaded.

This section refers to how option ROMs are used with standard IBM PC compatible BIOSes (most desktop computers).

A common example of an option ROM is the Video BIOS found on all standard PC video cards. This is a special case of an option ROM, as it is loaded very early on in the boot process (otherwise nothing would appear on the screen during the POST.) It is usually easy to tell when this particular ROM is initialized, as it is the first time something appears on the monitor since the computer was switched on. Unless working with an embedded system, the video BIOS is almost always located in the C000 memory segment (i.e. the very start of the memory area reserved for option ROMs.) Other ROMs can be located from segments C800 all the way up to F400 in early PCs. The final search address was eventually limited E000 in later products. The BIOS Boot Specification (BBS) requires that option ROMs be aligned to 2kB boundaries (e.g. segments C800, C880, C900, C980, etc.). The first two bytes of the ROM must be 55 AA.

After the basic POST checks are complete, the option ROMs are normally initialized. This gives them the chance to hook (intercept) system interrupts, in order to provide increased functionality to the system.

For example, a SCSI controller card may hook INT 13 which is responsible for providing disk services. Once it has done this, any subsequent calls to INT 13H will be "caught" by the SCSI option ROM (or "SCSI BIOS"), allowing it to insert details about any disks that may exist on the SCSI bus. Before it had hooked the interrupt there may have been no disks on the system, but by intercepting the interrupt and altering the values returned, the SCSI BIOS can make all the disks on the SCSI bus visible to the system.


...
Wikipedia

...