Previous 199869 Revisions Next

r26131 Wednesday 13th November, 2013 at 00:52:38 UTC by smf
Tweaks to the idehd timing, which are still based on complete fiction. [smf]
[src/emu/machine]idehd.c

trunk/src/emu/machine/idehd.c
r26130r26131
1414
1515#define TIME_PER_SECTOR                     (attotime::from_usec(100))
1616#define TIME_PER_ROTATION                   (attotime::from_hz(5400/60))
17#define TIME_MULTIPLE_SECTORS               (attotime::from_usec(1))
17#define TIME_MULTIPLE_SECTORS               (attotime::from_usec(50))
1818
19#define TIME_SEEK_MULTISECTOR               (attotime::from_msec(13))
20#define TIME_NO_SEEK_MULTISECTOR            (attotime::from_nsec(16300))
19#define TIME_SEEK_MULTISECTOR               (attotime::from_usec(13000))
20#define TIME_NO_SEEK_MULTISECTOR            (attotime::from_usec(1000))
2121
2222ata_mass_storage_device::ata_mass_storage_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock,const char *shortname, const char *source)
2323   : ata_hle_device(mconfig, type, name, tag, owner, clock, shortname, source),
r26130r26131
354354      {
355355         set_dasp(ASSERT_LINE);
356356
357         if (m_command == IDE_COMMAND_READ_MULTIPLE)
358         {
359            if (m_sectors_until_int != 1)
360               /* make ready now */
361               finished_read();
362            else
363               start_busy(TIME_MULTIPLE_SECTORS, PARAM_COMMAND);
364         }
365         else
366            start_busy(TIME_MULTIPLE_SECTORS, PARAM_COMMAND);
357         start_busy(TIME_MULTIPLE_SECTORS, PARAM_COMMAND);
367358      }
368359      break;
369360   }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team