Changeset 164


Ignore:
Timestamp:
Jul 17, 2013, 8:31:34 PM (12 years ago)
Author:
David Azarewicz
Message:

Debug output updates

Location:
trunk/src/os2ahci
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ahci.c

    r162 r164  
    128128  u32 version;
    129129
    130   aprintf("AHCI global controller registers:\n");
     130  aprintf("AHCI global registers for adapter %d:%d:%d irq=%d addr=0x%lx\n",
     131      ai->bus, ai->dev_func>>3, ai->dev_func&7, ai->irq, ai->mmio_phys);
     132
    131133  for (i = 0; i <= HOST_CAP2; i += sizeof(u32)) {
    132134    u32 val;
     
    12361238
    12371239    if (rc) {
    1238       dprintf("timeout for IORB %Fp\n", iorb);
     1240      dprintf(" timeout for IORB %Fp", iorb);
    12391241      iorb_seterr(iorb, IOERR_ADAPTER_TIMEOUT);
    12401242    } else if (readl(port_mmio + PORT_SCR_ERR) != 0 ||
    12411243               readl(port_mmio + PORT_TFDATA) & 0x89) {
    1242       dprintf("polled cmd error for IORB %Fp\n", iorb);
     1244      dprintf(" polled cmd error for IORB %Fp", iorb);
    12431245      iorb_seterr(iorb, IOERR_DEVICE_NONSPECIFIC);
    12441246      ahci_reset_port(ai, iorb_unit_port(iorb), 0);
     
    12511253      }
    12521254    }
     1255    ddprintf("\n");
    12531256  }
    12541257
     
    13091312  /* check error condition */
    13101313  if ((tmp = readl(port_mmio + PORT_SCR_ERR)) != 0) {
    1311     dprintf("SERR = 0x%08lx\n", tmp);
     1314    dprintf(" SERR = 0x%08lx", tmp);
    13121315    rc = 1;
    13131316  }
    13141317  if (((tmp = readl(port_mmio + PORT_TFDATA)) & 0x89) != 0) {
    1315     dprintf("TFDATA = 0x%08lx\n", tmp);
     1318    dprintf(" TFDATA = 0x%08lx", tmp);
    13161319    rc = 1;
    13171320  }
    13181321
    13191322  if (rc) {
     1323    ddprintf("failed\n");
    13201324    ahci_reset_port(ai, p, 0);
    13211325    return(-1);
    13221326  }
     1327  ddprintf("success\n");
    13231328  return(0);
    13241329}
  • trunk/src/os2ahci/init.asm

    r160 r164  
    4646
    4747if 1
    48 ; This is here to support old SMART tools. This is a really bad thing to do as it will
    49 ; cause problems in the future. The SMART tools should be fixed instead.
     48; This is here to support old SMART tools which only look for IBMS506$. This is a
     49; really bad thing to do as it will cause problems in the future. The SMART tools
     50; should be fixed to be able to open OS2AHCI$ and this header should be removed.
    5051_next_hdr       dd      -1                      ; no headers after this one
    5152                dw      DEVLEV_3 + DEV_CHAR_DEV ; flags for ADD drivers
  • trunk/src/os2ahci/pci.c

    r153 r164  
    615615            class, bus, dev_func);
    616616
     617  dprintf("found AHCI device: %s %s (%04x:%04x) class:0x%06lx bus:%d devfunc:0x%02x\n",
     618            vendor_from_id(vendor), device_from_id(device),
     619            vendor, device,
     620            class, bus, dev_func);
     621
    617622  /* make sure we got room in the adapter information array */
    618623  if (ad_info_cnt >= MAX_AD - 1) {
  • trunk/src/os2ahci/trace.c

    r162 r164  
    235235    AD_INFO *ai = ad_infos + a;
    236236
    237     ntprintf("Adapter %d: %d:%d:%d irq=%d addr=0x%lx\n", a,
     237    ntprintf("Adapter %d: %d:%d:%d irq=%d addr=0x%lx version=%lx\n", a,
    238238      ai->bus, ai->dev_func>>3, ai->dev_func&7,
    239       ai->irq, ai->mmio_phys);
     239      ai->irq, ai->mmio_phys,
     240      ai->bios_config[HOST_VERSION / sizeof(u32)]);
    240241
    241242    for (p = 0; p <= ai->port_max; p++) {
     
    247248        if (!pi->devs[d].present) continue;
    248249
    249         ntprintf("    Drive %d:");
     250        ntprintf("    Drive %d:", d);
    250251        if (pi->devs[d].atapi) ntprintf(" atapi");
    251252        if (pi->devs[d].removable) ntprintf(" removable");
Note: See TracChangeset for help on using the changeset viewer.