Changeset 64


Ignore:
Timestamp:
Dec 21, 2010, 12:49:55 PM (15 years ago)
Author:
markus
Message:

changed atapi command bits; ATAPI commands are still not working

Location:
trunk/src/os2ahci
Files:
3 edited

Legend:

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

    r63 r64  
    9393                 AP_SGLIST,    io->pSGList + sg_indx, (u16) sg_cnt,
    9494                 AP_DEVICE,    0x4000,
    95                  AP_FEATURES,  0x0001,
     95                 AP_FEATURES,  ATAPI_FEAT_DMA | ATAPI_FEAT_DMA_TO_HOST,
     96                 AP_SECTOR_28, ATAPI_LBA_DMA,
    9697                 AP_END);
    9798
     
    156157                             pt->ControllerCmdLen,
    157158               AP_SGLIST,    pt->pSGList, pt->cSGList,
    158                AP_FEATURES,  0x0001,
     159               /* TODO: do we have to clear DMA_TO_HOST bit for
     160                * write, mode select etc. commands?
     161                */
     162               AP_FEATURES,  ATAPI_FEAT_DMA | ATAPI_FEAT_DMA_TO_HOST,
     163               AP_SECTOR_28, ATAPI_LBA_DMA,
    159164               AP_END);
    160165
     
    203208               AP_ATAPI_CMD, (void _far*) &cdb, sizeof(cdb),
    204209               AP_VADDR, (void _far *) aws->buf, ATAPI_SENSE_LEN,
     210               AP_FEATURES,  ATAPI_FEAT_DMA,
     211               AP_SECTOR_28, ATAPI_LBA_DMA,
    205212               AP_END);
    206213
  • trunk/src/os2ahci/atapi.h

    r63 r64  
    6666#define ATAPI_FLAG_DPO             0x10
    6767
     68#define ATAPI_FEAT_DMA             0x0001
     69#define ATAPI_FEAT_DMA_TO_HOST     0x0004
     70
     71#define ATAPI_LBA_DMA              ((u32)0xffff << 8)
     72
    6873/******************************************************************************
    6974 * ATAPI sense data
    7075 */
    71 #define ATAPI_SENSE_LEN            64
     76#define ATAPI_SENSE_LEN            96
    7277
    7378#define ASENSE_NO_SENSE            0x00  /* no sense -> success */
  • trunk/src/os2ahci/os2ahci.def

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