1 |
|
/* |
2 |
|
* disk.cpp - Generic disk driver |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2002 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2005 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
326 |
|
size_t length = ReadMacInt32(pb + ioReqCount); |
327 |
|
loff_t position = ReadMacInt32(dce + dCtlPosition); |
328 |
|
if (ReadMacInt16(pb + ioPosMode) & 0x100) // 64 bit positioning |
329 |
< |
position = ((loff_t)ReadMacInt32(pb + ioWPosOffset) << 32) || ReadMacInt32(pb + ioWPosOffset + 4); |
329 |
> |
position = ((loff_t)ReadMacInt32(pb + ioWPosOffset) << 32) | ReadMacInt32(pb + ioWPosOffset + 4); |
330 |
|
if ((length & 0x1ff) || (position & 0x1ff)) |
331 |
|
return paramErr; |
332 |
|
|
510 |
|
Mac2Mac_memcpy(pb + csParam, info->status, 22); |
511 |
|
return noErr; |
512 |
|
|
513 |
+ |
case 44: // get startup partition status: http://developer.apple.com/documentation/Hardware/DeviceManagers/ata/ata_ref/ATA.21.html |
514 |
+ |
printf("WARNING: DiskStatus(44:'get startup partition status') Not Implemented\n"); |
515 |
+ |
return statusErr; |
516 |
+ |
|
517 |
+ |
case 45: // get partition write protect status: http://developer.apple.com/documentation/Hardware/DeviceManagers/ata/ata_ref/ATA.23.html |
518 |
+ |
printf("WARNING: DiskStatus(45:'get partition write protect status') Not Implemented\n"); |
519 |
+ |
return statusErr; |
520 |
+ |
|
521 |
+ |
case 46: // get partition mount status: http://developer.apple.com/documentation/Hardware/DeviceManagers/ata/ata_ref/ATA.22.html |
522 |
+ |
printf("WARNING: DiskStatus(46:'get partition mount status') Not Implemented\n"); |
523 |
+ |
return statusErr; |
524 |
+ |
|
525 |
+ |
case 70: // get power mode status: http://developer.apple.com/documentation/Hardware/DeviceManagers/ata/ata_ref/ATA.24.html |
526 |
+ |
printf("WARNING: DiskStatus(70:'get power mode status') Not Implemented\n"); |
527 |
+ |
return statusErr; |
528 |
+ |
|
529 |
|
default: |
530 |
|
printf("WARNING: Unknown DiskStatus(%d)\n", code); |
531 |
|
return statusErr; |