ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/disk.cpp
(Generate patch)

Comparing BasiliskII/src/disk.cpp (file contents):
Revision 1.15 by cebix, 2004-01-12T15:29:21Z vs.
Revision 1.18 by asvitkine, 2007-01-21T17:40:00Z

# Line 1 | Line 1
1   /*
2   *  disk.cpp - Generic disk driver
3   *
4 < *  Basilisk II (C) 1997-2004 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
# Line 326 | Line 326 | int16 DiskPrime(uint32 pb, uint32 dce)
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  
# Line 510 | Line 510 | int16 DiskStatus(uint32 pb, uint32 dce)
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines