mirror of
https://github.com/holub/mame
synced 2025-10-08 01:28:00 +03:00
Changed IDE read sector timing to be the same as read multiple instead of write sector. [smf]
This commit is contained in:
parent
0b159718d3
commit
6feb1c98da
@ -361,7 +361,7 @@ void ata_mass_storage_device::fill_buffer()
|
|||||||
start_busy(TIME_MULTIPLE_SECTORS, PARAM_COMMAND);
|
start_busy(TIME_MULTIPLE_SECTORS, PARAM_COMMAND);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
start_busy(TIME_PER_SECTOR, PARAM_COMMAND);
|
start_busy(TIME_MULTIPLE_SECTORS, PARAM_COMMAND);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -431,20 +431,15 @@ void ata_mass_storage_device::read_first_sector()
|
|||||||
set_dasp(ASSERT_LINE);
|
set_dasp(ASSERT_LINE);
|
||||||
|
|
||||||
/* just set a timer */
|
/* just set a timer */
|
||||||
if (m_command == IDE_COMMAND_READ_MULTIPLE)
|
int new_lba = lba_address();
|
||||||
{
|
attotime seek_time;
|
||||||
int new_lba = lba_address();
|
|
||||||
attotime seek_time;
|
|
||||||
|
|
||||||
if (new_lba == m_cur_lba || new_lba == m_cur_lba + 1)
|
if (new_lba == m_cur_lba || new_lba == m_cur_lba + 1)
|
||||||
start_busy(TIME_NO_SEEK_MULTISECTOR, PARAM_COMMAND);
|
start_busy(TIME_NO_SEEK_MULTISECTOR, PARAM_COMMAND);
|
||||||
else
|
|
||||||
start_busy(TIME_SEEK_MULTISECTOR, PARAM_COMMAND);
|
|
||||||
|
|
||||||
m_cur_lba = new_lba;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
start_busy(TIME_PER_SECTOR, PARAM_COMMAND);
|
start_busy(TIME_SEEK_MULTISECTOR, PARAM_COMMAND);
|
||||||
|
|
||||||
|
m_cur_lba = new_lba;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user