~ubuntu-branches/ubuntu/saucy/seabios/saucy-proposed

« back to all changes in this revision

Viewing changes to src/ata.c

  • Committer: Package Import Robot
  • Author(s): Michael Tokarev
  • Date: 2013-07-08 21:34:44 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130708213444-6ed9q23j39x143lu
Tags: 1.7.3-1
Multi-Arch: allowed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1006
1006
 
1007
1007
// Locate and init ata controllers.
1008
1008
static void
1009
 
ata_init(void)
 
1009
ata_scan(void)
1010
1010
{
1011
 
    if (!CONFIG_COREBOOT && !PCIDevices) {
 
1011
    if (CONFIG_QEMU && hlist_empty(&PCIDevices)) {
1012
1012
        // No PCI devices found - probably a QEMU "-M isapc" machine.
1013
1013
        // Try using ISA ports for ATA controllers.
1014
1014
        init_controller(NULL, IRQ_ATA1
1035
1035
    dprintf(3, "init hard drives\n");
1036
1036
 
1037
1037
    SpinupEnd = calc_future_tsc(IDE_TIMEOUT);
1038
 
    ata_init();
 
1038
    ata_scan();
1039
1039
 
1040
1040
    SET_BDA(disk_control_byte, 0xc0);
1041
1041