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

Comparing BasiliskII/src/sony.cpp (file contents):
Revision 1.6 by cebix, 2000-04-10T18:52:30Z vs.
Revision 1.7 by cebix, 2000-07-14T21:29:10Z

# Line 42 | Line 42
42   #define DEBUG 0
43   #include "debug.h"
44  
45 +
46 + // Check for inserted disks by polling?
47   #ifdef AMIGA
48 < #define DISK_INSERT_CHECK 1             // Check for inserted disks (problem: on most hardware, disks are not ejected and automatically remounted)
48 > #define DISK_INSERT_CHECK 1
49   #else
50   #define DISK_INSERT_CHECK 0
51   #endif
# Line 123 | Line 125 | static DriveInfo *first_drive_info;
125   uint32 SonyDiskIconAddr;
126   uint32 SonyDriveIconAddr;
127  
126 // Number of ticks between checks for disk insertion
127 const int driver_delay = 120;
128
128   // Flag: Control(accRun) has been called, interrupt routine is now active
129   static bool acc_run_called = false;
130  
# Line 520 | Line 519 | int16 SonyStatus(uint32 pb, uint32 dce)
519  
520  
521   /*
522 < *  Driver interrupt routine - check for volumes to be mounted
522 > *  Driver interrupt routine (1Hz) - check for volumes to be mounted
523   */
524  
525   void SonyInterrupt(void)
526   {
528        static int tick_count = 0;
527          if (!acc_run_called)
528                  return;
529  
530 <        tick_count++;
533 <        if (tick_count > driver_delay) {
534 <                tick_count = 0;
535 <                mount_mountable_volumes();
536 <        }
530 >        mount_mountable_volumes();
531   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines