Changeset 209 for trunk/src/os2ahci/ahci.c
- Timestamp:
- Mar 6, 2021, 7:44:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r207 r209 202 202 if ((ai->cap & HOST_CAP_NCQ) && (ai->flags & AHCI_HFLAG_NO_NCQ)) 203 203 { 204 DPRINTF( 1,"controller can't do NCQ, turning off CAP_NCQ\n");204 DPRINTF(DBG_INIT, DBG_PREFIX": controller can't do NCQ, turning off CAP_NCQ\n"); 205 205 ai->cap &= ~HOST_CAP_NCQ; 206 206 } … … 208 208 if (!(ai->cap & HOST_CAP_NCQ) && (ai->flags & AHCI_HFLAG_YES_NCQ)) 209 209 { 210 DPRINTF( 1,"controller can do NCQ, turning on CAP_NCQ\n");210 DPRINTF(DBG_INIT, DBG_PREFIX": controller can do NCQ, turning on CAP_NCQ\n"); 211 211 ai->cap |= HOST_CAP_NCQ; 212 212 } … … 214 214 if ((ai->cap & HOST_CAP_PMP) && (ai->flags & AHCI_HFLAG_NO_PMP)) 215 215 { 216 DPRINTF( 1,"controller can't do PMP, turning off CAP_PMP\n");216 DPRINTF(DBG_INIT, DBG_PREFIX": controller can't do PMP, turning off CAP_PMP\n"); 217 217 ai->cap |= HOST_CAP_PMP; 218 218 } … … 220 220 if ((ai->cap & HOST_CAP_SNTF) && (ai->flags & AHCI_HFLAG_NO_SNTF)) 221 221 { 222 DPRINTF( 1,"controller can't do SNTF, turning off CAP_SNTF\n");222 DPRINTF(DBG_INIT, DBG_PREFIX": controller can't do SNTF, turning off CAP_SNTF\n"); 223 223 ai->cap &= ~HOST_CAP_SNTF; 224 224 } … … 226 226 if (ai->pci_vendor == PCI_VENDOR_ID_JMICRON && ai->pci_device == 0x2361 && ai->port_map != 1) 227 227 { 228 DPRINTF( 1,"JMB361 has only one port, port_map 0x%x -> 0x%x\n", ai->port_map, 1);228 DPRINTF(DBG_INIT, DBG_PREFIX": JMB361 has only one port, port_map 0x%x -> 0x%x\n", ai->port_map, 1); 229 229 ai->port_map = 1; 230 230 ai->hw_ports = 1; … … 249 249 /* more ports in port_map than in HOST_CAP & 0x1f */ 250 250 ports = ai->hw_ports; 251 DPRINTF( 0,"implemented port map (0x%x) contains more ports than hw_ports (%d), using hw_ports\n", ai->port_map, ports);251 DPRINTF(DBG_INIT, DBG_PREFIX": implemented port map (0x%x) contains more ports than hw_ports (%d), using hw_ports\n", ai->port_map, ports); 252 252 ai->port_map = (1UL << ports) - 1UL; 253 253 } … … 274 274 } 275 275 276 DPRINTF( 3,__func__": BIOS AHCI mode is %d\n", ai->bios_config[HOST_CTL / sizeof(u32)] & HOST_AHCI_EN);276 DPRINTF(DBG_DETAILED, DBG_PREFIX": BIOS AHCI mode is %d\n", ai->bios_config[HOST_CTL / sizeof(u32)] & HOST_AHCI_EN); 277 277 278 278 if ((ai->bios_config[HOST_CTL / sizeof(u32)] & HOST_AHCI_EN) == 0 && ai->pci_vendor == PCI_VENDOR_ID_INTEL) … … 284 284 } 285 285 286 DUMP_HOST_REGS( 6,ai,1);286 DUMP_HOST_REGS(DBG_DETAILED, ai, 1); 287 287 288 288 return(0); … … 296 296 int ahci_restore_bios_config(AD_INFO *ai) 297 297 { 298 DPRINTF( 3,__func__": restoring AHCI BIOS configuration on adapter %d\n", ad_no(ai));298 DPRINTF(DBG_DETAILED, DBG_PREFIX": restoring AHCI BIOS configuration on adapter %d\n", ad_no(ai)); 299 299 300 300 /* Restore saved BIOS configuration; please note that HOST_CTL is restored … … 354 354 int ahci_restore_initial_config(AD_INFO *ai) 355 355 { 356 DPRINTF( 3,__func__": restoring initial configuration on adapter %d\n", ad_no(ai));356 DPRINTF(DBG_DETAILED, DBG_PREFIX": restoring initial configuration on adapter %d\n", ad_no(ai)); 357 357 358 358 /* restore saved BIOS configuration */ … … 379 379 TIMER Timer; 380 380 381 DPRINTF( 2,"controller reset starting on adapter %d\n", ad_no(ai));381 DPRINTF(DBG_ATTACH, DBG_PREFIX": controller reset starting on adapter %d\n", ad_no(ai)); 382 382 383 383 /* we must be in AHCI mode, before using anything AHCI-specific, such as HOST_RESET. */ … … 414 414 u32 tmp16 = 0; 415 415 416 DPRINTF( 1,"ahci_reset_controller: intel detected\n");416 DPRINTF(DBG_ATTACH, DBG_PREFIX": ahci_reset_controller: intel detected\n"); 417 417 /* configure PCS */ 418 418 PciReadConfig(ai->bus, ai->dev_func, 0x92, sizeof(u16), &tmp16); 419 419 if ((tmp16 & ai->port_map) != ai->port_map) { 420 DPRINTF( 3,"ahci_reset_controller: updating PCS %x/%x\n", tmp16, ai->port_map);420 DPRINTF(DBG_ATTACH, DBG_PREFIX": ahci_reset_controller: updating PCS %x/%x\n", tmp16, ai->port_map); 421 421 tmp16 |= ai->port_map; 422 422 PciWriteConfig(ai->bus, ai->dev_func, 0x92, sizeof(u16), tmp16); … … 535 535 int i; 536 536 537 DPRINTF( 2,__func__": completing initialization of adapter #%d\n", ad_no(ai));537 DPRINTF(DBG_INIT, DBG_PREFIX": completing initialization of adapter #%d\n", ad_no(ai)); 538 538 539 539 if (!ai->int_set) … … 559 559 if (i >= MAX_IRQ_HANDLERS) return -1; /* no more handlers available */ 560 560 561 DPRINTF( 2,"registering interrupt %d pin=%d\n", ai->irq, ai->irq_pin);561 DPRINTF(DBG_INIT, DBG_PREFIX": registering interrupt %d pin=%d\n", ai->irq, ai->irq_pin); 562 562 563 563 rc = Dev32Help_SetIRQ(ahci_intr, ai->irq, p, ai->irq); … … 592 592 if (init_reset) 593 593 { 594 DPRINTF( 3,__func__": resetting port %d\n", p);594 DPRINTF(DBG_INIT, DBG_PREFIX": resetting port %d\n", p); 595 595 ahci_reset_port(ai, p, 1); 596 596 } 597 597 else 598 598 { 599 DPRINTF( 3,__func__": restarting port #%d\n", p);599 DPRINTF(DBG_INIT, DBG_PREFIX": restarting port #%d\n", p); 600 600 ahci_stop_port(ai, p); 601 601 ahci_start_port(ai, p, 1); … … 615 615 /* pci_enable_int(ai->bus, ai->dev_func); */ 616 616 617 DPRINTF( 2,__func__": done\n");617 DPRINTF(DBG_INIT|DBG_FUNCEND, DBG_PREFIX": END\n"); 618 618 return(0); 619 619 } … … 644 644 AP_END)) break; 645 645 646 DHEXDUMP( 5, pSector0, 512, "Sector0:\n");646 DHEXDUMP(DBG_DETAILED, pSector0, 512, "Sector0:\n"); 647 647 648 648 /* check for wiped disk */ … … 722 722 } 723 723 724 DPRINTF( 2,"found device %d.%d.%d: removable=%d dev_type=%d atapi=%d ncq_max=%d\n",724 DPRINTF(DBG_ATTACH, DBG_PREFIX": found device %d.%d.%d: removable=%d dev_type=%d atapi=%d ncq_max=%d\n", 725 725 ad_no(ai), p, d, 726 726 ai->ports[p].devs[d].removable, … … 804 804 805 805 /* perform port scan */ 806 DPRINTF( 1,__func__": scanning ports on adapter %d\n", ad_no(ai));806 DPRINTF(DBG_ATTACH, DBG_PREFIX": scanning ports on adapter %d\n", ad_no(ai)); 807 807 for (p = 0; p < AHCI_MAX_PORTS; p++) 808 808 { … … 812 812 // DAZ allocate port structure here 813 813 814 DPRINTF( 3,__func__": Wait till not busy on port %d\n", p);814 DPRINTF(DBG_ATTACH, DBG_PREFIX": Wait till not busy on port %d\n", p); 815 815 /* wait until all active commands have completed on this port */ 816 816 TimerInit(&Timer, 250); … … 832 832 else 833 833 { 834 DPRINTF( 3,__func__": (re)starting port %d\n", p);834 DPRINTF(DBG_ATTACH, DBG_PREFIX": (re)starting port %d\n", p); 835 835 ahci_stop_port(ai, p); 836 836 rc = ahci_start_port(ai, p, 0); … … 840 840 { 841 841 /* this port seems to have a device attached and ready for commands */ 842 DPRINTF( 2,__func__": port %d seems to be attached to a device; probing...\n", p);842 DPRINTF(DBG_ATTACH, DBG_PREFIX": port %d seems to be attached to a device; probing...\n", p); 843 843 844 844 #ifdef DAZ_NEW_CODE … … 871 871 { 872 872 /* we have a valid IDENTIFY or IDENTIFY_PACKET response */ 873 DHEXDUMP( 5,id_buf, ATA_ID_WORDS * sizeof(u16), "ATA_IDENTIFY%s results:\n", (is_ata) ? "" : "_PACKET");873 DHEXDUMP(DBG_DETAILED,id_buf, ATA_ID_WORDS * sizeof(u16), "ATA_IDENTIFY%s results:\n", (is_ata) ? "" : "_PACKET"); 874 874 ahci_setup_device(ai, p, 0, id_buf); 875 875 if (!IsUsableDisk(ai, p, 0)) ai->ports[p].devs[0].ignored = 1; … … 915 915 TIMER Timer; 916 916 917 DPRINTF( 3,__func__": resetting port %d.%d\n", ad_no(ai), p);918 DUMP_PORT_REGS( 3,ai,p);917 DPRINTF(DBG_ATTACH, DBG_PREFIX": resetting port %d.%d\n", ad_no(ai), p); 918 DUMP_PORT_REGS(DBG_DETAILED,ai,p); 919 919 920 920 /* stop port engines (we don't care whether there is an error doing so) */ … … 932 932 933 933 /* set link speed and power management options */ 934 DPRINTF( 3,__func__": setting link speed and power management options\n");934 DPRINTF(DBG_DETAILED, DBG_PREFIX": setting link speed and power management options\n"); 935 935 tmp = readl(port_mmio + PORT_SCR_CTL) & ~0x00000fffUL; 936 936 tmp |= (link_speed[ad_no(ai)][p] & 0x0f) << 4; … … 939 939 940 940 /* issue COMRESET on the port */ 941 DPRINTF( 3,__func__": issuing COMRESET on port %d\n", p);941 DPRINTF(DBG_DETAILED, DBG_PREFIX": issuing COMRESET on port %d\n", p); 942 942 writel(port_mmio + PORT_SCR_CTL, tmp | 1); 943 943 readl(port_mmio + PORT_SCR_CTL); /* flush */ … … 950 950 951 951 /* wait for communication to be re-established after port reset */ 952 DPRINTF( 3,"Wait for communication...\n");952 DPRINTF(DBG_DETAILED, DBG_PREFIX": Wait for communication...\n"); 953 953 TimerInit(&Timer, 500); 954 954 while (((tmp = readl(port_mmio + PORT_SCR_STAT)) & 3) != 3) … … 956 956 if (TimerCheckAndBlock(&Timer)) 957 957 { 958 DPRINTF( 2,"no device present after resetting port #%d (PORT_SCR_STAT = 0x%x)\n", p, tmp);958 DPRINTF(DBG_ATTACH, DBG_PREFIX": no device present after resetting port #%d (PORT_SCR_STAT = 0x%x)\n", p, tmp); 959 959 return(-1); 960 960 } … … 966 966 967 967 /* start port so we can receive the COMRESET FIS */ 968 DPRINTF( 3,__func__": starting port %d again\n", p);968 DPRINTF(DBG_DETAILED, DBG_PREFIX": starting port %d again\n", p); 969 969 ahci_start_port(ai, p, ei); 970 970 … … 975 975 if (TimerCheckAndBlock(&Timer)) 976 976 { 977 DPRINTF(0, "device not ready on port #%d (PORT_TFDATA = 0x%x)\n", p, tmp);977 DPRINTF(0, DBG_PREFIX": device not ready on port #%d (PORT_TFDATA = 0x%x)\n", p, tmp); 978 978 ahci_stop_port(ai, p); 979 979 return(-1); 980 980 } 981 981 } 982 DPRINTF( 3,__func__":PORT_TFDATA = 0x%x\n", readl(port_mmio + PORT_TFDATA));982 DPRINTF(DBG_ATTACH|DBG_FUNCEND, DBG_PREFIX": END PORT_TFDATA = 0x%x\n", readl(port_mmio + PORT_TFDATA)); 983 983 984 984 return(0); … … 993 993 u32 status; 994 994 995 DPRINTF( 3,__func__": %d.%d\n", ad_no(ai), p);995 DPRINTF(DBG_ATTACH, DBG_PREFIX": %d.%d\n", ad_no(ai), p); 996 996 /* check whether device presence is detected and link established */ 997 997 998 998 status = readl(port_mmio + PORT_SCR_STAT); 999 DPRINTF( 3,__func__": PORT_SCR_STAT = 0x%x\n", status);999 DPRINTF(DBG_DETAILED, DBG_PREFIX": PORT_SCR_STAT = 0x%x\n", status); 1000 1000 if ((status & 0xf) != 3) return(-1); 1001 1001 1002 1002 /* clear SError, if any */ 1003 1003 status = readl(port_mmio + PORT_SCR_ERR); 1004 DPRINTF( 3,__func__": PORT_SCR_ERR = 0x%x\n", status);1004 DPRINTF(DBG_DETAILED, DBG_PREFIX": PORT_SCR_ERR = 0x%x\n", status); 1005 1005 writel(port_mmio + PORT_SCR_ERR, status); 1006 1006 … … 1090 1090 int rc; 1091 1091 1092 DPRINTF( 3,__func__": %d.%d\n", ad_no(ai), p);1092 DPRINTF(DBG_ATTACH, DBG_PREFIX": %d.%d\n", ad_no(ai), p); 1093 1093 1094 1094 /* disable port interrupts */ … … 1233 1233 } 1234 1234 1235 DPRINTF( 7,"---------- "__func__":iorb=%x\n", vIorb);1235 DPRINTF(DBG_DETAILED, DBG_PREFIX": ---------- iorb=%x\n", vIorb); 1236 1236 1237 1237 /* Enable AHCI mode; apparently, the AHCI mode may end up becoming … … 1259 1259 cmd_max = ai->cmd_max; 1260 1260 } 1261 DPRINTF( 8,__func__": NCQ command; cmd_max = %d->%d\n", ai->cmd_max, cmd_max);1261 DPRINTF(DBG_DETAILED, DBG_PREFIX": NCQ command; cmd_max = %d->%d\n", ai->cmd_max, cmd_max); 1262 1262 } 1263 1263 … … 1312 1312 aws->cmd_slot = port->cmd_slot; 1313 1313 1314 DPRINTF( 7,__func__": Issuing command Slot=%d cmds=%x\n", port->cmd_slot, *cmds);1314 DPRINTF(DBG_DETAILED, DBG_PREFIX": Issuing command Slot=%d cmds=%x\n", port->cmd_slot, *cmds); 1315 1315 if (aws->is_ncq) 1316 1316 { … … 1405 1405 { 1406 1406 /* successfully prepared cmd; issue cmd and wait for completion */ 1407 DPRINTF( 3,"---------- "__func__"executing polled cmd on slot 0...");1407 DPRINTF(DBG_DETAILED, DBG_PREFIX": ---------- executing polled cmd on slot 0..."); 1408 1408 writel(port_mmio + PORT_CMD_ISSUE, 1); 1409 1409 TimerInit(&Timer, timeout); … … 1417 1417 if (rc) 1418 1418 { 1419 DPRINTF( 3," timeout for IORB %x port=%x", vIorb, p);1419 DPRINTF(DBG_DETAILED, " timeout for IORB %x port=%x", vIorb, p); 1420 1420 iorb_seterr(pIorb, IOERR_ADAPTER_TIMEOUT); 1421 1421 } 1422 1422 else if (readl(port_mmio + PORT_SCR_ERR) != 0 || readl(port_mmio + PORT_TFDATA) & 0x89) 1423 1423 { 1424 DPRINTF( 3," polled cmd error for IORB %x", vIorb);1424 DPRINTF(DBG_DETAILED, " polled cmd error for IORB %x", vIorb); 1425 1425 iorb_seterr(pIorb, IOERR_DEVICE_NONSPECIFIC); 1426 1426 ahci_reset_port(ai, iorb_unit_port(pIorb), 0); … … 1438 1438 } 1439 1439 } 1440 DPRINTF( 3,"\n");1440 DPRINTF(DBG_DETAILED, "\n"); 1441 1441 } 1442 1442 … … 1476 1476 if (readl(port_mmio + PORT_CMD_ISSUE) & 1) 1477 1477 { 1478 DPRINTF( 3,__func__": port %d slot 0 is not idle; not executing polled cmd\n", p);1478 DPRINTF(0, DBG_PREFIX": port %d slot 0 is not idle; not executing polled cmd\n", p); 1479 1479 return(-1); 1480 1480 } … … 1485 1485 1486 1486 /* start command execution for slot 0 */ 1487 DPRINTF( 3,"---------- "__func__"executing polled cmd...");1487 DPRINTF(DBG_DETAILED, DBG_PREFIX": ---------- executing polled cmd..."); 1488 1488 writel(port_mmio + PORT_CMD_ISSUE, 1); 1489 1489 … … 1496 1496 if (rc) 1497 1497 { 1498 DPRINTF( 2," Timeout");1498 DPRINTF(DBG_DETAILED, " Timeout"); 1499 1499 break; 1500 1500 } … … 1504 1504 if (tmp & PORT_ERR_FAIL_BITS) 1505 1505 { 1506 DPRINTF( 2," SERR = 0x%08lx", tmp);1506 DPRINTF(DBG_DETAILED, " SERR = 0x%08lx", tmp); 1507 1507 rc = 1; 1508 1508 } … … 1510 1510 if (((tmp = readl(port_mmio + PORT_TFDATA)) & 0x89) != 0) 1511 1511 { 1512 DPRINTF( 2," TFDATA = 0x%08lx", tmp);1512 DPRINTF(DBG_DETAILED, " TFDATA = 0x%08lx", tmp); 1513 1513 rc = 1; 1514 1514 } … … 1516 1516 if (rc) 1517 1517 { 1518 DPRINTF( 3,"failed\n");1518 DPRINTF(DBG_DETAILED, "failed\n"); 1519 1519 ahci_reset_port(ai, p, 0); 1520 1520 return(-1); 1521 1521 } 1522 DPRINTF( 3,"success\n");1522 DPRINTF(DBG_DETAILED, "success\n"); 1523 1523 return(0); 1524 1524 } … … 1537 1537 if (!ai->ports[p].devs[d].atapi) 1538 1538 { 1539 DPRINTF( 2,__func__": flushing cache on %d.%d.%d\n", ad_no(ai), p, d);1539 DPRINTF(DBG_INIT, DBG_PREFIX": flushing cache on %d.%d.%d\n", ad_no(ai), p, d); 1540 1540 return(ahci_exec_polled_cmd(ai, p, d, 30000, 1541 1541 ai->ports[p].devs[d].lba48 ? ATA_CMD_FLUSH_EXT : ATA_CMD_FLUSH, AP_END)); … … 1554 1554 int ahci_set_dev_idle(AD_INFO *ai, int p, int d, int idle) 1555 1555 { 1556 DPRINTF( 3,__func__": sending IDLE=%d command to port %d\n", idle, p);1556 DPRINTF(DBG_FUNCBEG, DBG_PREFIX": sending IDLE=%d command to port %d\n", idle, p); 1557 1557 return ahci_exec_polled_cmd(ai, p, d, 500, ATA_CMD_IDLE, AP_COUNT, idle ? 1 : 0, AP_END); 1558 1558 } … … 1612 1612 if ((u32)&irq_stat < 0xf000) 1613 1613 { 1614 DPRINTF( 0,__func__": IRQ stack running low; arming engine context hook\n");1614 DPRINTF(DBG_DETAILED, DBG_PREFIX": IRQ stack running low; arming engine context hook\n"); 1615 1615 /* Rousseau: 1616 1616 * A context hook cannot be re-armed before it has completed. … … 1689 1689 active_cmds = readl(port_mmio + PORT_SCR_ACT); 1690 1690 done_mask = ai->ports[p].ncq_cmds ^ active_cmds; 1691 DPRINTF( 7,"[ncq_cmds]: active_cmds=0x%08x done_mask=0x%08x\n", active_cmds, done_mask);1691 DPRINTF(DBG_DETAILED, DBG_PREFIX": [ncq_cmds]: active_cmds=0x%08x done_mask=0x%08x\n", active_cmds, done_mask); 1692 1692 } 1693 1693 else … … 1695 1695 active_cmds = readl(port_mmio + PORT_CMD_ISSUE); 1696 1696 done_mask = ai->ports[p].reg_cmds ^ active_cmds; 1697 DPRINTF( 7,"[reg_cmds]: active_cmds=0x%08x done_mask=0x%08x\n", active_cmds, done_mask);1697 DPRINTF(DBG_DETAILED, DBG_PREFIX": [reg_cmds]: active_cmds=0x%08x done_mask=0x%08x\n", active_cmds, done_mask); 1698 1698 } 1699 1699 … … 1775 1775 #ifdef DEBUG 1776 1776 u32 *unk = (u32 *) (port_dma_base(ai, p)->rx_fis + RX_FIS_UNK); 1777 DPRINTF(0,"warning: unknown FIS %08lx %08lx %08lx %08lx\n", unk[0], unk[1], unk[2], unk[3]);1777 dprintf(0,"warning: unknown FIS %08lx %08lx %08lx %08lx\n", unk[0], unk[1], unk[2], unk[3]); 1778 1778 #endif 1779 1779 reset_port = 1; … … 1803 1803 dprintf(0,"port #%d interrupt error status: 0x%08x; restarting port\n", p, irq_stat); 1804 1804 #else 1805 if (!ai->ports[p].devs[0].atapi || D32g_DbgLevel)1805 if (!ai->ports[p].devs[0].atapi) 1806 1806 { 1807 1807 dprintf(0,"port #%d interrupt error status: 0x%08x; restarting port\n", p, irq_stat); … … 1823 1823 void ahci_get_geometry(IORBH FAR16DATA *vIorb, IORBH *pIorb) 1824 1824 { 1825 DPRINTF( 7,"ahci_get_geometry(%d.%d.%d)\n", iorb_unit_adapter(pIorb),1825 DPRINTF(DBG_FUNCBEG, DBG_PREFIX": ahci_get_geometry(%d.%d.%d)\n", iorb_unit_adapter(pIorb), 1826 1826 iorb_unit_port(pIorb), iorb_unit_device(pIorb)); 1827 1827 … … 1834 1834 void ahci_unit_ready(IORBH FAR16DATA *vIorb, IORBH *pIorb) 1835 1835 { 1836 DPRINTF( 7,"ahci_unit_ready(%d.%d.%d)\n", iorb_unit_adapter(pIorb),1836 DPRINTF(DBG_FUNCBEG, DBG_PREFIX": ahci_unit_ready(%d.%d.%d)\n", iorb_unit_adapter(pIorb), 1837 1837 iorb_unit_port(pIorb), iorb_unit_device(pIorb)); 1838 1838 … … 1845 1845 void ahci_read(IORBH FAR16DATA *vIorb, IORBH *pIorb) 1846 1846 { 1847 DPRINTF( 7,"ahci_read(%d.%d.%d, %d, %d)\n", iorb_unit_adapter(vIorb),1847 DPRINTF(DBG_FUNCBEG, DBG_PREFIX": ahci_read(%d.%d.%d, %d, %d)\n", iorb_unit_adapter(vIorb), 1848 1848 iorb_unit_port(pIorb), iorb_unit_device(pIorb), 1849 1849 ((IORB_EXECUTEIO *) pIorb)->RBA, … … 1858 1858 void ahci_verify(IORBH FAR16DATA *vIorb, IORBH *pIorb) 1859 1859 { 1860 DPRINTF( 7,"ahci_verify(%d.%d.%d, %d, %d)\n", iorb_unit_adapter(pIorb),1860 DPRINTF(DBG_FUNCBEG, DBG_PREFIX": ahci_verify(%d.%d.%d, %d, %d)\n", iorb_unit_adapter(pIorb), 1861 1861 iorb_unit_port(pIorb), iorb_unit_device(pIorb), 1862 1862 ((IORB_EXECUTEIO *)pIorb)->RBA, … … 1871 1871 void ahci_write(IORBH FAR16DATA *vIorb, IORBH *pIorb) 1872 1872 { 1873 DPRINTF( 7,"ahci_write(%d.%d.%d, %d, %d)\n", iorb_unit_adapter(pIorb),1873 DPRINTF(DBG_FUNCBEG, DBG_PREFIX": ahci_write(%d.%d.%d, %d, %d)\n", iorb_unit_adapter(pIorb), 1874 1874 iorb_unit_port(pIorb), iorb_unit_device(pIorb), 1875 1875 ((IORB_EXECUTEIO *)pIorb)->RBA, … … 1888 1888 int d = iorb_unit_device(pIorb); 1889 1889 1890 DHEXDUMP( 5,Far16ToFlat(((IORB_ADAPTER_PASSTHRU *)pIorb)->f16ControllerCmd),1890 DHEXDUMP(DBG_DETAILED ,Far16ToFlat(((IORB_ADAPTER_PASSTHRU *)pIorb)->f16ControllerCmd), 1891 1891 ((IORB_ADAPTER_PASSTHRU *)pIorb)->ControllerCmdLen, 1892 1892 "ahci_execute_cdb(%d.%d.%d): ", a, p, d); … … 1914 1914 int d = iorb_unit_device(pIorb); 1915 1915 1916 DHEXDUMP( 5,Far16ToFlat(((IORB_ADAPTER_PASSTHRU *)pIorb)->f16ControllerCmd),1916 DHEXDUMP(DBG_DETAILED, Far16ToFlat(((IORB_ADAPTER_PASSTHRU *)pIorb)->f16ControllerCmd), 1917 1917 ((IORB_ADAPTER_PASSTHRU *)pIorb)->ControllerCmdLen, 1918 1918 "ahci_execute_ata(%d.%d.%d): ", a, p, d);
Note:
See TracChangeset
for help on using the changeset viewer.