146 |
|
|
147 |
|
static const uint8 sony_driver[] = { // Replacement for .Sony driver |
148 |
|
// Driver header |
149 |
< |
SonyDriverFlags >> 8, SonyDriverFlags & 0xff, SonyDriverDelay >> 8, SonyDriverDelay & 0xff, 0x00, 0x00, 0x00, 0x00, |
149 |
> |
SonyDriverFlags >> 8, SonyDriverFlags & 0xff, 0, 0, 0, 0, 0, 0, |
150 |
|
0x00, 0x18, // Open() offset |
151 |
|
0x00, 0x1c, // Prime() offset |
152 |
|
0x00, 0x20, // Control() offset |
194 |
|
|
195 |
|
static const uint8 disk_driver[] = { // Generic disk driver |
196 |
|
// Driver header |
197 |
< |
DiskDriverFlags >> 8, DiskDriverFlags & 0xff, DiskDriverDelay >> 8, DiskDriverDelay & 0xff, 0x00, 0x00, 0x00, 0x00, |
197 |
> |
DiskDriverFlags >> 8, DiskDriverFlags & 0xff, 0, 0, 0, 0, 0, 0, |
198 |
|
0x00, 0x18, // Open() offset |
199 |
|
0x00, 0x1c, // Prime() offset |
200 |
|
0x00, 0x20, // Control() offset |
242 |
|
|
243 |
|
static const uint8 cdrom_driver[] = { // CD-ROM driver |
244 |
|
// Driver header |
245 |
< |
CDROMDriverFlags >> 8, CDROMDriverFlags & 0xff, CDROMDriverDelay >> 8, CDROMDriverDelay & 0xff, 0x00, 0x00, 0x00, 0x00, |
245 |
> |
CDROMDriverFlags >> 8, CDROMDriverFlags & 0xff, 0, 0, 0, 0, 0, 0, |
246 |
|
0x00, 0x1c, // Open() offset |
247 |
|
0x00, 0x20, // Prime() offset |
248 |
|
0x00, 0x24, // Control() offset |
555 |
|
uint32 dce = ReadMacInt32(r.a[0]); |
556 |
|
WriteMacInt32(dce + dCtlDriver, ROMBaseMac + sony_offset + 0x100); |
557 |
|
WriteMacInt16(dce + dCtlFlags, DiskDriverFlags); |
558 |
– |
WriteMacInt16(dce + dCtlDelay, DiskDriverDelay); |
558 |
|
|
559 |
|
// Open disk driver |
560 |
|
WriteMacInt32(pb + ioNamePtr, ROMBaseMac + sony_offset + 0x112); |
573 |
|
dce = ReadMacInt32(r.a[0]); |
574 |
|
WriteMacInt32(dce + dCtlDriver, ROMBaseMac + sony_offset + 0x200); |
575 |
|
WriteMacInt16(dce + dCtlFlags, CDROMDriverFlags); |
577 |
– |
WriteMacInt16(dce + dCtlDelay, CDROMDriverDelay); |
576 |
|
|
577 |
|
// Open CD-ROM driver |
578 |
|
WriteMacInt32(pb + ioNamePtr, ROMBaseMac + sony_offset + 0x212); |