1 |
|
/* |
2 |
|
* cdrom.cpp - CD-ROM driver |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2005 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 |
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? |
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: |