Changeset 69 for trunk/src/os2ahci/atapi.c
- Timestamp:
- Jan 7, 2011, 4:54:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/atapi.c
r68 r69 75 75 /* translate read command to SCSI/ATAPI READ12 command. 76 76 * READ12 seems to be the most supported READ variant - according to MMC, 77 * and it s enough even for BluRay.77 * and it's enough even for BluRay. 78 78 */ 79 79 memset(&cdb, 0x00, sizeof(cdb)); … … 167 167 AP_SGLIST, pt->pSGList, pt->cSGList, 168 168 AP_WRITE, !(pt->Flags & PT_DIRECTION_IN), 169 /* TODO: do we have to clear DMA_TO_HOST bit for 170 * write, mode select etc. commands? 171 */ 172 AP_FEATURES, ATAPI_FEAT_DMA | ATAPI_FEAT_DMA_TO_HOST, 169 AP_FEATURES, ATAPI_FEAT_DMA, 170 AP_FEATURES, (pt->Flags & PT_DIRECTION_IN) ? ATAPI_FEAT_DMA_TO_HOST : 0, 173 171 AP_END); 174 172 … … 224 222 iorb_seterr(iorb, IOERR_CMD_SGLIST_BAD); 225 223 226 } else {224 } else if (rc < 0) { 227 225 /* we failed to get info about an error -> return 228 226 * non specific device error … … 242 240 ADD_WORKSPACE _far *aws = add_workspace(iorb); 243 241 ATAPI_SENSE_DATA *psd = (ATAPI_SENSE_DATA *) aws->buf; 242 243 ddphex(psd, sizeof(psd), "sense buffer:\n"); 244 244 245 245 /* map sense data to some IOERR_ value */
Note:
See TracChangeset
for help on using the changeset viewer.