Changeset 67


Ignore:
Timestamp:
Dec 26, 2010, 6:20:33 PM (15 years ago)
Author:
markus
Message:

set AP_WRITE flag for atapi_exec_cdb commands according to flags in IORB

Location:
trunk/src/os2ahci
Files:
2 edited

Legend:

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

    r66 r67  
    165165               slot, ATA_CMD_PACKET,
    166166               AP_ATAPI_CMD, (void _far *) cdb, cdb_len,
    167                AP_SGLIST,    pt->pSGList, pt->cSGList,
     167               AP_SGLIST, pt->pSGList, pt->cSGList,
     168               AP_WRITE, !(pt->Flags & PT_DIRECTION_IN),
    168169               /* TODO: do we have to clear DMA_TO_HOST bit for
    169170                * write, mode select etc. commands?
  • trunk/src/os2ahci/os2ahci.c

    r47 r67  
    245245
    246246    if (DevHelp_RegisterDeviceClass("OS2AHCI", (PFN) add_entry, 0, 1,
    247         &add_handle)) {
     247                                    &add_handle)) {
    248248      cprintf("error: couldn't register device class\n");
    249249      goto init_fail;
Note: See TracChangeset for help on using the changeset viewer.