Changeset 164
- Timestamp:
- Jul 17, 2013, 8:31:34 PM (12 years ago)
- Location:
- trunk/src/os2ahci
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r162 r164 128 128 u32 version; 129 129 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 131 133 for (i = 0; i <= HOST_CAP2; i += sizeof(u32)) { 132 134 u32 val; … … 1236 1238 1237 1239 if (rc) { 1238 dprintf(" timeout for IORB %Fp\n", iorb);1240 dprintf(" timeout for IORB %Fp", iorb); 1239 1241 iorb_seterr(iorb, IOERR_ADAPTER_TIMEOUT); 1240 1242 } else if (readl(port_mmio + PORT_SCR_ERR) != 0 || 1241 1243 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); 1243 1245 iorb_seterr(iorb, IOERR_DEVICE_NONSPECIFIC); 1244 1246 ahci_reset_port(ai, iorb_unit_port(iorb), 0); … … 1251 1253 } 1252 1254 } 1255 ddprintf("\n"); 1253 1256 } 1254 1257 … … 1309 1312 /* check error condition */ 1310 1313 if ((tmp = readl(port_mmio + PORT_SCR_ERR)) != 0) { 1311 dprintf(" SERR = 0x%08lx\n", tmp);1314 dprintf(" SERR = 0x%08lx", tmp); 1312 1315 rc = 1; 1313 1316 } 1314 1317 if (((tmp = readl(port_mmio + PORT_TFDATA)) & 0x89) != 0) { 1315 dprintf(" TFDATA = 0x%08lx\n", tmp);1318 dprintf(" TFDATA = 0x%08lx", tmp); 1316 1319 rc = 1; 1317 1320 } 1318 1321 1319 1322 if (rc) { 1323 ddprintf("failed\n"); 1320 1324 ahci_reset_port(ai, p, 0); 1321 1325 return(-1); 1322 1326 } 1327 ddprintf("success\n"); 1323 1328 return(0); 1324 1329 } -
trunk/src/os2ahci/init.asm
r160 r164 46 46 47 47 if 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. 50 51 _next_hdr dd -1 ; no headers after this one 51 52 dw DEVLEV_3 + DEV_CHAR_DEV ; flags for ADD drivers -
trunk/src/os2ahci/pci.c
r153 r164 615 615 class, bus, dev_func); 616 616 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 617 622 /* make sure we got room in the adapter information array */ 618 623 if (ad_info_cnt >= MAX_AD - 1) { -
trunk/src/os2ahci/trace.c
r162 r164 235 235 AD_INFO *ai = ad_infos + a; 236 236 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, 238 238 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)]); 240 241 241 242 for (p = 0; p <= ai->port_max; p++) { … … 247 248 if (!pi->devs[d].present) continue; 248 249 249 ntprintf(" Drive %d:" );250 ntprintf(" Drive %d:", d); 250 251 if (pi->devs[d].atapi) ntprintf(" atapi"); 251 252 if (pi->devs[d].removable) ntprintf(" removable");
Note:
See TracChangeset
for help on using the changeset viewer.