summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-03-06Add config option to permit running option roms with bad checksums.HEADmasterKevin O'Connor2-1/+13
Based on a patch by: Stefan Reinauer <reinauer@google.com>
2011-03-06Add config option to disable MTRR initialization.Kevin O'Connor2-1/+7
Some versions of Bochs don't like the MTRR initialization, so add CONFIG_MTRR_INIT to control whether SeaBIOS will touch the MTRRs.
2011-03-06Prep version for next release.Kevin O'Connor1-1/+1
2011-02-28Update version to 0.6.2Kevin O'Connor1-1/+1
2011-02-04lets pretend that RTC can be used to wakeup from S4Gleb Natapov1-2/+2
WHQL complains otherwise. Signed-off-by: Gleb Natapov <gleb@redhat.com>
2011-01-30Expand user configurable parameters in Kconfig.Kevin O'Connor2-113/+347
Move most of the config settings in config.h to the Kconfig file. The remaining settings in config.h, are mostly build related.
2011-01-29Support non-local build directory - allow "make OUT=abc/" to work.Kevin O'Connor4-5/+6
Don't require the build directory to be the "out/" directory of the SeaBIOS source.
2011-01-29The vgabios build must depend on autoconf.h.Kevin O'Connor1-1/+1
2011-01-29fix parallel compilation of SeaBIOSStefan Reinauer1-1/+4
See patch. Signed-off-by: Stefan Reinauer <reinauer@google.com>
2011-01-29Start using Kconfig to configure SeaBIOS settings.Kevin O'Connor4-12/+30
Create autoconf.h during the build. Move a couple of config settings from config.h to Kconfig.
2011-01-29Change kconfig to emit disabled symbols in autoconf.h.Kevin O'Connor1-1/+10
Always emit CONFIG_X definitions in autoconf.h - set them to 0 when they are disabled.
2011-01-29Build changes for Linux kconfig code to work in seabios dir structure.Kevin O'Connor5-26/+48
2011-01-26Initial commit of Kconfig build tool.Kevin O'Connor40-0/+22689
This is a pure copy of the tool from the Linux v2.6.38-rc2 scripts/kconfig/ directory.
2011-01-26Minor boot fixes.Kevin O'Connor2-1/+1
2011-01-22Minor comment / code layout improvement to romlayout.S.Kevin O'Connor1-17/+18
2011-01-22Fix to prevent infinite loop in build_pci_path().Kevin O'Connor1-2/+3
Make sure the PCI path doesn't point to itself.
2011-01-16support T13 EDD3.0 specGleb Natapov2-18/+39
Some guests (such as Linux) expect BIOS to behave according to T13 EDD3.0 spec. T13 spec is much better then Phoenix since it provides more information about interface and device paths. This patch adds support for the spec. If guest provides buffer with enough space for T13 EDD info return EDD according to T13 spec otherwise use Phoenix one. Signed-off-by: Gleb Natapov <gleb@redhat.com>
2011-01-10Add ability to track PCI paths and add to build_pci_path().Kevin O'Connor4-5/+47
Improve device path descriptions of devices on PCI buses.
2011-01-08Move the CBFS payload setup to later in the boot.Kevin O'Connor3-3/+4
Don't try to register payloads until after malloc has been setup.
2011-01-08Extract space trimming code from ATA and use in USB and bootorder code.Kevin O'Connor5-11/+21
Introduce function nullTrailingSpace() that nulls blank characters from the end of a string. Use this function in the ATA, USB MSC, and bootorder code.
2011-01-05seabios: acpi: add _RMV control method for PCI devicesKevin O'Connor2-771/+999
Use _RMV method to indicate whether device can be removed. Data is retrieved from QEMU via I/O port 0xae0c. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Acked-by: Gleb Natapov <gleb@redhat.com>
2011-01-01Add support for finding the boot priority of USB drives.Kevin O'Connor3-3/+25
Use the device path of the USB device to find a bootorder entry.
2011-01-01Extend 'usb_pipe' to track the controller and ports of each device.Kevin O'Connor5-0/+9
Track the path of ports and controller of each usb device. This is useful for reporting the exact device path.
2011-01-01Add functions for boot device path parsing.Kevin O'Connor1-13/+95
Add functions that find boot device path for pci/ata/floppy/rom devices.
2010-12-30Use bootprio_find_named_rom() for ramdisk and cbfs payload priorities.Kevin O'Connor2-5/+6
2010-12-29Remove drive->desc field.Kevin O'Connor12-94/+114
The description field is only available during the POST phase - it is confusing to have it live in a structure available through all phases. The description was only used by the boot menu code - pass each drive description directly to the bootlist code. Add a helper (znprintf) to automatically malloc_tmp the required space. Also, fixup ramdisk handling - it was using an incorrect floppy priority.
2010-12-29Minor reorganization of some of the boot_xxx code in boot.c.Kevin O'Connor1-18/+25
2010-12-29Move IPL.fw_bootorder to static variables in boot.c.Kevin O'Connor2-18/+9
2010-12-29Move IPL.bev to static variables in boot.cKevin O'Connor2-26/+19
Move the BEV storage to static variables in boot.c. Also, increase the maximum number of BEV entries from 8 to 20.
2010-12-29Move IPL.checkfloppysig to a global (CheckFloppySig) in boot.c.Kevin O'Connor2-4/+4
2010-12-29Remove Drives global struct in favor of independent global variables.Kevin O'Connor4-20/+15
The "Drives" struct just held three global variables - declare the three global variables independently.
2010-12-29Don't access drive_g->desc from boot_cdrom().Kevin O'Connor1-1/+1
The drive description is allocated with malloc_tmp() and is thus only available during the POST phase - boot_cdrom() is called during the boot phase.
2010-12-29Simplify keyboard reading code in the interactive boot menu.Kevin O'Connor1-16/+16
2010-12-27Call setup_translation() from map_hd_drive().Kevin O'Connor6-11/+4
Unify the calling of setup_translation().
2010-12-27Rename add_ordered_drive() to add_drive() and use in map_hd_drive().Kevin O'Connor1-25/+18
2010-12-27Add stubs to permit devices to specify their boot priority.Kevin O'Connor10-53/+122
Add support for passing in priorities to bootlist system. Based on patch by: Gleb Natapov <gleb@redhat.com>
2010-12-27Simplify boot ordering by building an inclusive boot list.Kevin O'Connor10-308/+216
Replace the bcv list with a full list of all "bootable objects". All ordering can then be done on this list. The final boot menu, drive mapping, and BEV list generation is then driven from this authoritative list. Move "Floppy" and "DVD/CD" description prefixes into drive description generation code to simplify boot menu generation. Rework QEMU's CMOS defined bootorder to work with priority scheme in new boot list. Have every CBFS entry create it's own BEV entry (instead of one entry for all CBFS payloads). Move CBFS payload detection code into coreboot.c.
2010-12-26Populate drive_g->desc prior to calling add_bcv_internal().Kevin O'Connor2-8/+5
Make sure the description is populated before registering a drive.
2010-12-26pciinit: fix off-by-oneIsaku Yamahata1-1/+1
IO port ends at 64K - 1. not 64K. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2010-12-26Minor build fixes.Kevin O'Connor2-2/+2
I made these two tiny changes to SeaBIOS when I was playing with the HEAD version. The Makefile change prevents the test command from failing if CC contains a space. The coreboot change prevents a warning on our gcc 4.5.2 in certain circumstances when sizeof seems to be unsigned long int instead of unsigned int. They're both unintrusive, shouldn't have potential for breaking anything. Signed-off-by: Stefan Reinauer <stepan@coreboot.org>
2010-12-24Track the source of each optionrom deployed.Kevin O'Connor1-10/+24
It's useful to track where each optionrom in the system originated from when initializing bev/bcvs. So, keep a map of the rom address to its source.
2010-12-24Support qemu based romfile wrappers called out of order.Kevin O'Connor1-6/+23
If the file requested isn't the last file read, then reread the index to find the given file.
2010-12-24Breakup boot_setup() bootorder code into its own function.Kevin O'Connor1-30/+41
2010-12-24Add romfile_loadfile() helper function.Kevin O'Connor4-23/+34
Add function to find, malloc, and copy a romfile. Use it in the bootsplash and bootorder code.
2010-12-24Read bootorder file into memory.Gleb Natapov2-0/+47
Read bootorder file, parse it and put it into array for easy consumption. Signed-off-by: Gleb Natapov <gleb@redhat.com>
2010-12-24Add strchr() function.Kevin O'Connor2-0/+10
2010-12-24Add romfile_name() function.Gleb Natapov2-0/+14
romfile_name() return file name given file handler. Works for qemu and coreboot. Signed-off-by: Gleb Natapov <gleb@redhat.com>
2010-12-24Add BAID for ahci cdrom.Gleb Natapov1-1/+3
Signed-off-by: Gleb Natapov <gleb@redhat.com>
2010-12-24Provide full EDD 3.0 info for virtio diskGleb Natapov1-53/+73
Fill out entire EDD 3.0 structure for virtio disk. Currently only EDD 1.0 part is filled which is missing such important info as device path. Use SCSI device type since virtio is not defined by EDD spec and virtio disk pci device uses SCSI class. Signed-off-by: Gleb Natapov <gleb@redhat.com>
2010-12-24Enhance layoutrom.py to work around a binutils quirk.Kevin O'Connor1-1/+10
Some binutils (report of 2.20.1) don't create dummy symbols for each section - work around that.