Changeset 75 for trunk/src/os2ahci/atapi.c
- Timestamp:
- Feb 16, 2011, 7:10:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/atapi.c
r74 r75 150 150 u8 cdb[ATAPI_MAX_CDB_LEN]; 151 151 u16 cdb_len; 152 int old_debug;153 152 154 153 if (pt->ControllerCmdLen > ATAPI_MAX_CDB_LEN) { … … 160 159 (u8 _far *) cdb, (u16 _far *) &cdb_len); 161 160 162 if (cdb[0] == 0x12) { 163 /* Some buggy entity asks for a SCSI INQUIRY command during boot without 164 * the flag PT_DIRECTION_IN which causes a timeout and port reset. The 165 * easiest way around this is to hack the flag PT_DIRECTION_IN into the 166 * request because SCSI INQUIRY commands are always device -> host. 167 */ 161 if (cdb[0] == 0x12 || cdb[0] == 0x5a) { 162 /* somebody sets the direction flag incorrectly for those commands */ 168 163 pt->Flags |= PT_DIRECTION_IN; 169 old_debug = debug;170 debug = 2;171 164 } 172 165 … … 190 183 } 191 184 192 if (cdb[0] == 0x12) {193 debug = old_debug;194 }195 196 185 return(rc); 197 186 }
Note:
See TracChangeset
for help on using the changeset viewer.