Commit graph pcem/src/scsi_cd.c
Author SHA1 Message Date
SarahW
53291432e8 Add CD-ROM drive model configuration. Patch from EluanCM. 2020-02-29 14:04:31 +00:00
SarahW
51341c5ca6 Support CD-ROM commands with zero allocation length. Fixes 'Device failed to request command' on PB570. 2019-05-15 19:51:57 +01:00
SarahW
9a49a75eaf IDE soft reset should also reset ATAPI devices. Should fix at least some 'Device failed to request command' errors. 2019-04-14 13:47:20 +01:00
SarahW
a7d006b637 Rewrote timer code.
The new code is based on timestamps, rather than delays. This eliminates the
need to update every timer in timer_process(), which cost a non-trivial amount
of CPU time on low-end machines.

This involved changes to every user of the timer code, so this change almost
certainly introduces bugs.
2018-08-02 22:06:10 +01:00
SarahW
796f401b71 SCSI CD-ROM should not fail on START_STOP_UNIT command with Start set and LoEj clear. Fixes Solaris 4.2 with AHA-1542C. 2018-04-15 20:39:26 +01:00
SarahW
4cea5cc59f Implemented Trio64 polygon fill commands. Fixes issues with Paintbrush on Windows 3.1. 2018-04-12 21:26:45 +01:00
SarahW
25ac99a6ef Clamp CD-ROM command data to the allocation length. Fixes some emulator deaths when DMA enabled. 2018-04-08 21:38:48 +01:00
SarahW
f4db376aab Added 56x CD-ROM speed. 2018-03-20 17:49:55 +00:00
SarahW
7915a72604 CD-ROM capabilities now reflect audio level control. 2018-03-17 12:27:15 +00:00
SarahW
48853d3725 Added missing CD-ROM mode select functionality. 2018-03-17 12:26:51 +00:00
SarahW
a22b735da0 Added configurable CD-ROM speed. 2018-03-17 11:39:33 +00:00
SarahW
6602368cc4 Implemented ATAPI DMA transfer modes. 2018-03-15 19:36:30 +00:00
SarahW
bab6695b2c CD-ROM emulation now reads multiple sectors at once. 2018-03-04 13:59:39 +00:00
SarahW
c07b76dc8e ATAPI sector accesses can not be split over multiple transfers. Fixes Windows XP installer. 2018-03-03 21:32:24 +00:00
SarahW
8193605469 Treat zero ATAPI maximum transfer as 65534. Fixes crash sometimes when booting PB570. 2018-02-26 19:52:10 +00:00
SarahW
103ebe5347 Fix hang with long ATAPI transfers. 2018-02-18 12:33:31 +00:00
SarahW
6ecdd2efd0 Unify ATAPI and SCSI CD-ROM code. 2018-01-21 15:59:29 +00:00
SarahW
bc690b3d2f CD-ROM fixes :
- Fixed track handling in is_track_audio()
- ioctl_readtoc() First Track field returns first track in the TOC, not the first track specified by the command
- SCSI CD-ROM code now looks at correct cd_status variable
- SCSI CD-ROM now identifies as SCSI compliant
Fixes CD audio via QCD with Adaptec SCSI card + ASPI drivers.
2018-01-16 20:05:56 +00:00
SarahW
ecbdad6b1a Added SCSI CD-ROM emulation. 2017-10-07 17:07:20 +01:00