~ubuntu-branches/ubuntu/precise/seabios/precise-updates

« back to all changes in this revision

Viewing changes to src/floppy.c

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2011-11-17 12:31:22 UTC
  • Revision ID: package-import@ubuntu.com-20111117123122-xkldgqt9u3xh7ah5
Tags: 0.6.2-0ubuntu2
* Add all patches up to commit 8e301472e324b6d6496d8b4ffc66863e99d7a505
  to match what is shipped with qemu-kvm.  This includes the fix for a
  black screen when running kvm with -vga qxl.  (LP: #823494)
* debian/rules: address lintian warning:
  debian-rules-missing-recommended-target

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    if (!drive_g)
124
124
        return;
125
125
    char *desc = znprintf(MAXDESCSIZE, "Floppy [drive %c]", 'A' + floppyid);
126
 
    int bdf = pci_find_class(PCI_CLASS_BRIDGE_ISA); /* isa-to-pci bridge */
127
 
    int prio = bootprio_find_fdc_device(bdf, PORT_FD_BASE, floppyid);
 
126
    struct pci_device *pci = pci_find_class(PCI_CLASS_BRIDGE_ISA); /* isa-to-pci bridge */
 
127
    int prio = bootprio_find_fdc_device(pci, PORT_FD_BASE, floppyid);
128
128
    boot_add_floppy(drive_g, desc, prio);
129
129
}
130
130