Show PCI info when reporting ATA controllers.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 16 Nov 2008 02:15:24 +0000 (21:15 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 16 Nov 2008 02:15:24 +0000 (21:15 -0500)
src/ata.c

index 2b384f67c9c2b6f4bc38503e0ee913e61c710d1c..d0fef06978706893d3d236b417f19737c10d4e36 100644 (file)
--- a/src/ata.c
+++ b/src/ata.c
@@ -938,7 +938,8 @@ ata_init()
         }
         SET_EBDA(ata.channels[count].iobase1, port1);
         SET_EBDA(ata.channels[count].iobase2, port2);
-        dprintf(1, "ATA controller %d at %x/%x\n", count, port1, port2);
+        dprintf(1, "ATA controller %d at %x/%x (dev %x class %x/%x)\n"
+                , count, port1, port2, bdf, classid, prog_if);
         count++;
 
         if (classid != PCI_CLASS_STORAGE_IDE || prog_if & 4) {
@@ -948,7 +949,8 @@ ata_init()
             port1 = 0x170;
             port2 = 0x370;
         }
-        dprintf(1, "ATA controller %d at %x/%x\n", count, port1, port2);
+        dprintf(1, "ATA controller %d at %x/%x (dev %x class %x/%x)\n"
+                , count, port1, port2, bdf, classid, prog_if);
         SET_EBDA(ata.channels[count].iobase1, port1);
         SET_EBDA(ata.channels[count].iobase2, port2);
         count++;