aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-07-10Fix serial port flushing code.Kevin O'Connor1-2/+2
debug_serial() was doing a full flush while debug_serial_flush() was only doing a partial flush. Fix that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-10Remove now unneeded find_pci().Kevin O'Connor1-13/+0
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-10Push use of 'struct pci_device' to bootprio_find_pci_rom().Kevin O'Connor3-5/+5
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-10Push use of 'struct pci_device' to bootprio_find_ata_device().Kevin O'Connor4-13/+16
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-10Push use of 'struct pci_device' to bootprio_find_fdc_device().Kevin O'Connor3-5/+5
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-10Push use of 'struct pci_device' to bootprio_find_pci_device().Kevin O'Connor3-6/+7
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-10Push use of 'struct pci_device' to bootprio_find_usb().Kevin O'Connor3-6/+6
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-10Push 'struct pci_device' into USB code (instead of using u16 bdf).Kevin O'Connor9-40/+33
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-07-09Extend tools/readserial.py to support serial port timing calibration.Kevin O'Connor1-12/+61
Some serial ports have slightly different timing. These timing variations result in less accurate boot time reporting. So, add a calibration mechanism to the tool so that one can determine how much time a specific machine's serial port uses. Also, extend the main part of the tool to allow the user to specify an exact timing parameter.
2011-07-09Fix jpeg decoder problem when it is used in 24 BPP mode.Wayne Xia3-12/+26
Signed-off-by: Wayne Xia <xiawenc@linux.vnet.ibm.com>
2011-07-09Add an option to let seabios show BMP file as a logo.Wayne Xia4-28/+211
Signed-off-by: Wayne Xia <xiawenc@linux.vnet.ibm.com>
2011-07-05Add utility "tools/encodeint.py" for CBFS config file creation.Kevin O'Connor1-0/+21
2011-07-05Replace CONFIG_SCREEN_AND_DEBUG with "etc/screen-and-debug" file.Kevin O'Connor4-10/+6
2011-07-05Replace CONFIG_S3_RESUME_VGA_INIT with "etc/s3-resume-vga-init" file.Kevin O'Connor2-7/+4
2011-07-05Replace "CONFIG_OPTIONROMS_CHECKSUM" with "etc/optionroms-checksum" file.Kevin O'Connor2-12/+5
2011-07-05Replace CONFIG_PS2_KEYBOARD_SPINUP with "etc/ps2-keyboard-spinup" file.Kevin O'Connor2-10/+4
2011-07-05Replace CONFIG_EXTRA_PCI_ROOTS with dynamic "etc/extra-pci-roots" file.Kevin O'Connor3-15/+5
2011-07-05Replace CONFIG_BOOTMENU_WAIT with dynamic "etc/boot-menu-wait" file.Kevin O'Connor2-7/+4
2011-07-05Add "romfile" code to assist with extract integer config settings.Kevin O'Connor2-0/+20
Add romfile_loadint() function which can be used to extract a little-endian binary encoded integer from rom.
2011-07-02Replace CONFIG_PCI_ROOT1/2 with CONFIG_EXTRA_PCI_ROOTS.Kevin O'Connor2-18/+12
Instead of defining the bus id of each extra root bus, define the number of extra root buses. The bus id isn't necessarily stable from one boot to the next.
2011-07-02Rename foreachbdf_in_bus to foreachbdf and simplify it.Kevin O'Connor6-52/+26
Now that all callers of foreachbdf have been converted to foreachbdf_in_bus, simplify the pci_next() code - it no longer needs to track PCI bridges. Also, rename the remaining users of foreachbdf_in_bus to foreachbdf.
2011-07-02Convert remaining callers of foreachbdf to foreachbdf_in_bus.Kevin O'Connor2-72/+89
Convert the last few callers of foreachbdf to foreachbdf_in_bus. This is in preparation for simplification of foreachbdf_in_bus. Also add in addition debugging messages to pci_probe.
2011-07-02Convert pci_find_device/class to use 'struct pci_device'.Kevin O'Connor6-39/+38
2011-07-02Calculate vgahook responses during setup instead of in 16bit code.Kevin O'Connor4-158/+109
Do vga type and parameter detection during setup and store the necessary info in global variables for the 16bit code. This simplifies the "vgahook" 16bit code.
2011-06-21Use 'struct pci_device' to note which devices have native drivers.Kevin O'Connor3-3/+5
Remove the check in optionroms.c for CONFIG_ATA and PCI_CLASS_STORAGE_IDE with a flag in 'struct pci_device'. This ensures devices using the ATA driver that aren't in PCI_CLASS_STORAGE_IDE don't have their optionroms executed. It also allows other drivers to disable option rom execution in the future.
2011-06-21Convert pci_init_device to use 'struct pci_device'.Kevin O'Connor7-70/+77
2011-06-21Move pci_probe() call into pciinit() code.Kevin O'Connor2-3/+6
Call pci_probe after pci bridge setup and before pci device setup. This will allow the pci device setup to use 'struct pci_device'.
2011-06-21Use manual PCI search when making bios ram writable.Kevin O'Connor1-18/+13
During the ram unlock phase static variables can't be written, so don't rely on the higher level PCI searching functions. This will allow for future simplification of those high level search functions. This also limits the scan for the memory locking device to the first bus - the device should also be on the root bus.
2011-06-20Replace PCIPaths code with struct pci_device.Kevin O'Connor4-51/+24
2011-06-20Convert USB detection code to use struct pci_device.Kevin O'Connor2-23/+21
2011-06-20Convert AHCI detection code to use struct pci_device.Kevin O'Connor1-6/+6
2011-06-20Convert virtio detection to use struct pci_device.Kevin O'Connor1-7/+6
2011-06-20Convert mptable code to use struct pci_device.Kevin O'Connor1-4/+6
2011-06-20Convert ATA detection code to use struct pci_device.Kevin O'Connor1-10/+9
2011-06-20Convert option rom scan to use struct pci_device.Kevin O'Connor3-97/+55
2011-06-20Remove support for compiling in OPTIONROM_VENDEV_1/2.Kevin O'Connor2-15/+0
Passing in rom locations via absolute memory addresses hasn't been needed since coreboot adopted CBFS support (which as several years ago).
2011-06-20Find all pci devices at startup and cache them for future use.Kevin O'Connor3-0/+81
This adds 'struct pci_device' and pci_probe() which will locate and store all found PCI devices in the system at startup.
2011-06-19Rename foreachpci macro to foreachbdf.Kevin O'Connor10-26/+26
2011-06-19Add support for white-listing AHCI controllers as ATA compatible.Kevin O'Connor1-3/+19
To start, register the AMD ATA controller on the A50M chipset as compatible with ATA mode even if it comes up in AHCI mode.
2011-06-19Convert ATA pci scan to use pci_device_id table.Kevin O'Connor1-48/+56
2011-06-19Remove dev-i440fx.c/h - move code closer to its callers.Kevin O'Connor8-153/+109
It's easier to understand the code when it is in the same file as its callers.
2011-06-14Only allow CONFIG_XEN when not CONFIG_COREBOOT.Kevin O'Connor1-0/+1
2011-06-14Correct fseg allocation for SMBIOS tables.Ian Campbell1-1/+1
Anthony Perard noticed that grub was unhappy because it sees no low memory and that his e820 table was missing the first entry. He then pointed out this rather glaring error in the allocation of space for the SMBIOS tables. I've no idea why I didn't see this failure. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Tested-by: Anthony Perard <anthony.perard@citrix.com>
2011-06-13Add support for use as Xen HVM BIOS.Ian Campbell10-6/+332
SeaBIOS is called by Xen's hvmloader which does the basic platform setup (PCI, APIC, etc) and provides the various BIOS tables. Therefore avoid re-doing that setup and copy out the tables as necessary. A simple data structure is defined to pass the addresses of these tables. This patch also establishes the basic infrastructure to make hypercalls, although it currently only uses it to query the hypervisor version. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2011-06-13Move support for copying out BIOS tables into its own file.Ian Campbell4-76/+89
I'd like to use it for Xen support. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2011-05-29Fix OHCI keyboard repeat key issue.Kevin O'Connor1-1/+1
Mask toggleCarry and Halted flags in endpoint descriptor dword #2 so that the remaining head pointer field is valid for comparing with the next pointer. Signed-off-by: Scott Duplichan <scott@notabs.org> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-05-28Only show CONFIG_PS2_KEYBOARD_SPINUP when CONFIG_COREBOOT.Kevin O'Connor1-1/+1
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-05-28Add option to handle PS2 keyboards that have a slow power up.Kevin O'Connor2-3/+20
Add PS2_KEYBOARD_SPINUP option to give certain keyboards more time to initialize. Based on report and feedback from: Sven Schnelle <svens@stackframe.org> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2011-05-24fix resume from S3 with QXL deviceKevin O'Connor2-708/+722
From: Gleb Natapov <gleb@redhat.com> QXL device is powered down during S3, so tell this to a guest OS in AML code. Signed-off-by: Gleb Natapov <gleb@redhat.com>
2011-05-21Check for broken LD that ships with Ubuntu 11.04.Kevin O'Connor2-3/+36
Add a build test to ensure that LD can properly align sections.