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

Comparing BasiliskII/src/cdrom.cpp (file contents):
Revision 1.19 by cebix, 2003-01-16T18:33:40Z vs.
Revision 1.23 by asvitkine, 2008-06-28T18:36:18Z

# Line 1 | Line 1
1   /*
2   *  cdrom.cpp - CD-ROM driver
3   *
4 < *  Basilisk II (C) 1997-2002 Christian Bauer
4 > *  Basilisk II (C) 1997-2008 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 910 | Line 910 | int16 CDROMStatus(uint32 pb, uint32 dce)
910                          }
911                          return noErr;
912                  }
913 +
914 +                case 97: {      // WhoIsThere
915 +                        uint8 drives_present = 0;
916 +                        drive_vec::iterator info, end = drives.end();
917 +                        for (info = drives.begin(); info != end; ++info) {
918 +                                if (info->num <= 6)
919 +                                        drives_present |= (1 << info->num);
920 +                        }
921 +                        WriteMacInt8(pb + csParam + 1, drives_present);
922 +                        return noErr;
923 +                }
924          }
925  
926          // Drive valid?
# Line 961 | Line 972 | int16 CDROMStatus(uint32 pb, uint32 dce)
972  
973                  case 121:               // Get CD features
974                          WriteMacInt16(pb + csParam, 0x0200);    // 300 KB/s
975 <                        WriteMacInt16(pb + csParam, 0x0300);    // SCSI-2, stereo
975 >                        WriteMacInt16(pb + csParam + 2, 0x0c00);        // SCSI-2, stereo
976                          return noErr;
977  
978                  default:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines