25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: diskimage.c,v 1.111 2006/08/14 17:27:45 debug Exp $ |
* $Id: diskimage.c,v 1.114 2006/09/07 11:44:01 debug Exp $ |
29 |
* |
* |
30 |
* Disk image support. |
* Disk image support. |
31 |
* |
* |
1143 |
|
|
1144 |
/* |
/* |
1145 |
* Bits 2..0 of buf[1] contain the 'code' which describes how |
* Bits 2..0 of buf[1] contain the 'code' which describes how |
1146 |
* we should space, and buf[2..4] contain the number of |
* spacing should be done, and buf[2..4] contain the number of |
1147 |
* operations. |
* operations. |
1148 |
*/ |
*/ |
1149 |
debug("[ SPACE: buf[] = %02x %02x %02x %02x %02x %02x ]\n", |
debug("[ SPACE: buf[] = %02x %02x %02x %02x %02x %02x ]\n", |
1251 |
|
|
1252 |
diskimage__return_default_status_and_message(xferp); |
diskimage__return_default_status_and_message(xferp); |
1253 |
break; |
break; |
1254 |
|
|
1255 |
|
case SCSICDROM_READ_DISCINFO: |
1256 |
|
debug("(SCSICDROM_READ_DISCINFO: "); |
1257 |
|
debug("TODO"); |
1258 |
|
retlen = 0; |
1259 |
|
|
1260 |
|
/* Return data: */ |
1261 |
|
scsi_transfer_allocbuf(&xferp->data_in_len, |
1262 |
|
&xferp->data_in, retlen, 1); |
1263 |
|
|
1264 |
|
/* TODO */ |
1265 |
|
|
1266 |
|
diskimage__return_default_status_and_message(xferp); |
1267 |
|
break; |
1268 |
|
|
1269 |
|
case SCSICDROM_READ_TRACKINFO: |
1270 |
|
debug("(SCSICDROM_READ_TRACKINFO: "); |
1271 |
|
debug("TODO"); |
1272 |
|
retlen = 0; |
1273 |
|
|
1274 |
|
/* Return data: */ |
1275 |
|
scsi_transfer_allocbuf(&xferp->data_in_len, |
1276 |
|
&xferp->data_in, retlen, 1); |
1277 |
|
|
1278 |
|
/* TODO */ |
1279 |
|
|
1280 |
|
diskimage__return_default_status_and_message(xferp); |
1281 |
|
break; |
1282 |
|
|
1283 |
case SCSICMD_MODE_SELECT: |
case SCSICMD_MODE_SELECT: |
1284 |
debug("[ SCSI MODE_SELECT: "); |
debug("[ SCSI MODE_SELECT: "); |