Changeset 55 for trunk/src/os2ahci


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

Location:
trunk/src/os2ahci
Files:
3 edited

Legend:

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

    r53 r55  
    3232                              ? atapi_##func : ata_##func
    3333
     34
     35/* #define LBATEST
     36 * uncomment to perform sector mapping test of first drive */
     37
    3438#define LBATEST_SECTORS_PER_READ     64
    3539#define LBATEST_SECTOR_SIZE         512
    3640
    37 #define LBATEST
    3841
    3942/* ------------------------ typedefs and structures ------------------------ */
     
    16541657  DevHelp_FreePhys(phys_addr);
    16551658
     1659  LBA test compiled?
     1660
    16561661}
    16571662#endif
  • 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),
  • trunk/src/os2ahci/os2ahci.def

    r48 r55  
    11library os2ahci
    2 Description '$@#thi.guten (www.thiguten.de):1.00.20101202#@OS/2 AHCI Adapter Device Driver'
     2Description '$@#thi.guten (www.thiguten.de):1.00.20101214#@OS/2 AHCI Adapter Device Driver'
    33protmode
    44
Note: See TracChangeset for help on using the changeset viewer.