Changeset 63 for trunk/src/os2ahci/atapi.c
- Timestamp:
- Dec 18, 2010, 3:10:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/atapi.c
r61 r63 93 93 AP_SGLIST, io->pSGList + sg_indx, (u16) sg_cnt, 94 94 AP_DEVICE, 0x4000, 95 AP_FEATURES, 0x0001, 95 96 AP_END); 96 97 … … 155 156 pt->ControllerCmdLen, 156 157 AP_SGLIST, pt->pSGList, pt->cSGList, 158 AP_FEATURES, 0x0001, 157 159 AP_END); 158 160 159 if (rc == 0) { 160 add_workspace(iorb)->blocks = pt->cSGList; 161 /* no pp func needed */ 162 163 } else if (rc > 0) { 164 iorb_seterr(iorb, IOERR_CMD_SGLIST_BAD); 165 166 } else { 167 iorb_seterr(iorb, IOERR_CMD_ADD_SOFTWARE_FAILURE); 161 if (rc) { 162 iorb_seterr(iorb, IOERR_DEVICE_NONSPECIFIC); 168 163 } 169 164 … … 184 179 { 185 180 ADD_WORKSPACE _far *aws = add_workspace(iorb); 186 ATAPI_CDB_ REQ_SENSEcdb;181 ATAPI_CDB_6 cdb; 187 182 int rc; 188 183 … … 198 193 memset(&cdb, 0x00, sizeof(cdb)); 199 194 cdb.cmd = ATAPI_CMD_REQUEST_SENSE; 195 cdb.trans_len = (u8) ATAPI_SENSE_LEN; 196 200 197 aws->ppfunc = atapi_req_sense_pp; 201 198 rc = ata_cmd(ad_infos + iorb_unit_adapter(iorb),
Note:
See TracChangeset
for help on using the changeset viewer.