Changeset 55 for trunk/src/os2ahci/ata.c


Ignore:
Timestamp:
Dec 14, 2010, 12:03:32 PM (15 years ago)
Author:
markus
Message:

fixed readtest to run under OS/2 Ring3 above 2GB; commented out ADD read sector dump code

File:
1 edited

Legend:

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

    r46 r55  
    618618{
    619619  IORB_EXECUTEIO _far *io = (IORB_EXECUTEIO _far *) iorb;
     620/*    unsigned char _far *p; */
     621/*    u16 mode_sw; */
    620622
    621623  io->BlocksXferred += add_workspace(iorb)->blocks;
     
    628630    /* requeue this IORB for next iteration */
    629631    iorb_requeue(iorb);
    630   }
     632/*      printf("MT: IORB requeued\n"); */
     633  }
     634
     635  /* MT: print hex dump of first sector read */
     636/*    if (io->cSGList) { */
     637/*      if (DevHelp_PhysToVirt(io->pSGList->ppXferBuf,  */
     638/*                             (USHORT) io->pSGList->XferBufLen,  */
     639/*                             (PVOID) &p, &mode_sw)) { */
     640/*        printf("MT: failed to convert S/G pointer to virt address\n"); */
     641/*      } else { */
     642/*        phex(p, (int) io->pSGList->XferBufLen, "sector dump, RBA=0x%08lx\n", */
     643/*             io->RBA); */
     644/*      } */
     645/*    } */
     646 
    631647}
    632648
     
    778794
    779795  rc = ata_cmd(ai, p, d, slot, 0,
    780                AP_SGLIST,   apt->pSGList, apt->ppSGLIST,
     796               AP_SGLIST,   apt->pSGList, apt->cSGList,
    781797               AP_ATA_CMD,  apt->pControllerCmd,
    782798               AP_WRITE,    !(apt->Flags & PT_DIRECTION_IN),
Note: See TracChangeset for help on using the changeset viewer.