Commit Graph

391 Commits

Author SHA1 Message Date
Jasmine Iwanek
f4b63caf0b One line per file in CmakeLists.txt 2024-09-04 18:34:06 -04:00
OBattler
547ae9ad6a Make GET_CONFIGURATION results more consistent with the capabilities page. 2024-09-02 06:48:07 +02:00
OBattler
09a6aab21a More CD-ROM fixes, fixes Johnny Bazookatone. 2024-09-02 06:32:28 +02:00
OBattler
252c3034af Reworked the unit attention workaround, fixes #4770. 2024-08-30 00:57:18 +02:00
OBattler
dd2bbf3cd3 CD-ROM: Make sure the initial unit attention condition is not treated as an inserted empty drive phase. 2024-08-29 20:47:44 +02:00
OBattler
d5b0fd18aa CD-ROM disc changes without eject now insert one simulated empty drive state, fixes #4768. 2024-08-29 05:52:12 +02:00
TC1995
1e82bd88a1 SCSI fixes of the day (August 8th, 2024)
SCSI CD-ROM: request sense command should preserve its sense data unless a different command is issued, fixes DOS hanging with a blinking cursor using CDSCSI-2.sys for the 53c9x MCA card when there's no CD inside, making its no length Data In hack no longer needed.
2024-08-08 01:20:29 +02:00
TC1995
8624942220 More ESP SCSI fixes (LUN mainly)
This commit should fix the NT 3.1 AMD PCscsi drivers when they look for devices on LUN > 0 and causing havoc with them (BSOD).
Basically clear the FIFO and set the SEQ_0 bit in the RSEQ read reg.
AM53c974 side: a biosless card is biosless.
General: fixed all the log excesses.
2024-08-05 01:00:48 +02:00
TC1995
e79b722ebe Actually report the 86Box CD/DVD-ROM SCSI drive as SCSI-2 compliant 2024-08-04 22:30:50 +02:00
TC1995
885a92ae62 AMD/DC390 SCSI fixes of the day (August 4th, 2024)
Ported the latest changes/fixes to the above controller from QEMU and added a bios-less AMD Am53c974 device (non-DC390).
The latest changes fix the AMD-branded DOS ASPI drivers on both cards (even without bios).
2024-08-04 22:28:39 +02:00
OBattler
8225f270f3 Fix the generation of instantiated NVR paths, fixes #4642. 2024-07-22 19:24:15 +02:00
OBattler
91874e231a The monster FDC ROM is now optionally writable (also finally made the SCSI NVR's per-instance), closes #4623. 2024-07-22 03:19:40 +02:00
Jasmine Iwanek
27c8bdd57e Less dummy devices 2024-07-19 16:57:11 -04:00
TC1995
0a2fa21f06 SCSI and disk fixes (July 14th, 2024)
All: the icon refresh for the respective storage now works properly across all adapters that use it (especially the aha154x compatibles and spock/tribble).
SCSI CD-ROM: The Sony/Texel/DEC SCSI command 0xC0 (Set Address Format) isn't a command that checks for ready status, however, it is for other vendors like NEC, Matsushita, etc. and I am not wishing to create a duplicate command_flags array duplicate just for vendor unique commands. This fixes the MSF bit of Sony/Texel/DEC CD-ROM drives which don't use the Mode Page equivalent.
Toshiba only: attempt to mark the 3201B as a SCSI-1 only CD-ROM drive properly.
2024-07-14 20:42:50 +02:00
OBattler
e5f676d9b5 CD-ROM: Actually set the format variable of GPCMD_READ_DVD_STRUCTURE to cdb[7], fixes heap corruptions due to the format incorrectly mismatching the given buffer lengths, fixes #4522 . 2024-06-13 19:21:37 +02:00
TC1995
3d74f43b95 NCR 53c400 timing fixes.
See above (CD-ROM speeds too for said SCSI chips).
2024-05-30 00:25:29 +02:00
OBattler
7c74a977fa There goes the legacy host_drive. 2024-05-20 02:15:17 +02:00
OBattler
641da43f15 IOCTL and CD-ROM changes. 2024-05-19 21:17:57 +02:00
TC1995
1856696cd2 Warning fix 2024-05-13 01:02:27 +02:00
TC1995
4e67a4fdd3 DMA speed fixes in place on the 53c400.
See above, so that the CD-ROM speed is accurate enough on both ends (T13B and the MMIO variants) and, at the same time, not timing out abnormally.
2024-05-13 00:57:53 +02:00
OBattler
71c16a4481 Remove the previous kludge and #define BUS_ACK to 0x100 so it's different from BUS_ATN. 2024-05-06 13:24:04 +02:00
OBattler
4c84cccae7 The Pro Audio Spectrum SCSI controller is now based on the Trantor T128 (which it is considerable closer to), rather than on the 53c400. 2024-05-06 13:09:08 +02:00
OBattler
907daed3b1 Removed a commented out section from scsi/scsi.c. 2024-05-03 19:01:33 +02:00
OBattler
2acb11d37c Implemented the Pro Audio Spectrum Plus serial mixer, Pro Audio Spectrum 16 parallel mixer, Pro Audio Spectrum Plus/16 SCSI, ESS ES688, all three ESS PnP AudioDrives, made the wavetables use a separate 44.1 kHz source, and made the Sound Blaster 16 PNP use a proper PNP ROM dump. 2024-05-03 17:02:13 +02:00
TC1995
20277f7090 Workaround to prevent timeouts with the T130B driver on NT 3.1.
And more logging cleanups.
This should make the T130B driver for NT 3.1 work normally, at least.
2024-04-26 22:05:54 +02:00
OBattler
15ad2c1992 NCR 53c8xx: Set correct SCSI speeds. 2024-04-23 03:19:24 +02:00
OBattler
10fd8fb004 Assorted CD-ROM fixes, fixes #4386. 2024-04-22 02:04:57 +02:00
TC1995
da1ededb93 SCSI CD-ROM and 5380 fixes.
CD-ROM side: fixed a mode sense page (0x08 Sony, used by both Sony and Texel drives) as well as corrected the Toshiba specific drive speeds (bytes_per_second).
NCR 5380 side: split the work into the generic 5380 core and the ASICs into separate sources (53c400 and T128) and added the T228 MCA adapter based on the 128.
2024-04-10 17:27:30 +02:00
OBattler
e1180a77df NCR 53c8xx: Implement the readout of SODL via SBDL when STEST2 bit 7 is set, v3.04 BIOS'es now work. 2024-03-14 01:06:12 +01:00
OBattler
27734a8728 AHA-1542CP: Return the correct firmware checksum. 2024-03-09 00:42:13 +01:00
OBattler
50d7340d01 Added the 1.02 German and 1.03 English versions of the AHA-1542CP BIOS. 2024-03-08 23:11:35 +01:00
OBattler
89cc2a3956 NEC CD-ROM: Make command DAh not also set speed. 2024-02-07 20:45:45 +01:00
TC1995
0d88e8394c SCSI CD-ROM fixes of the day.
1.Re-implemented in the best way possible the muted part of the Toshiba/NEC Play Audio commands and related, per spec.
2. Forgot to add a check to a Sony Vendor Data Out command  when the len is 0 it should become a Status command, fixes emulator crashes when len is 0 using some CD software.
2024-02-06 21:18:25 +01:00
TC1995
ad9503ec28 More fixes to the 5380-based core.
More timer related fixes regarding the speed combinations, looking at you, Rancho (8.10R and 8.20R), but at least it should solve most problems with boots.
2024-02-06 21:09:38 +01:00
TC1995
f582e97168 Refactor 5380-based SCSI controllers
This should fix more timing issues with said SCSI controllers in various CPU/HDD/CD-ROM speeds.
2024-02-03 22:30:14 +01:00
TC1995
a4dcd74216 Small 5380 SCSI improvements.
1. The chip in question now supports the right command length for vendor unique commands, fixes crashes that use said commands.
2. Made the CD speed of said chip even closer to the real thing.
2024-01-03 23:42:24 +01:00
TC1995
127c00b22e NCR 53c9x MCA small improvements.
1. Changed the MCA ID of said adapter to one that is add-on based rather than integrated (still no bios though).
2. Fixed the DMA/IRQ stuff of the 86c01 DMA side of the card.
2024-01-03 23:22:05 +01:00
OBattler
0265b34384 1x CD-ROM speed is 176400 bytes per second, not 176 * 1024 bytes per second. 2023-12-30 19:40:05 +01:00
OBattler
137581c080 Fix for CD-ROM timings - seek times are no longer always calculated as if it was seeking from sector 0. 2023-12-28 18:42:16 +01:00
OBattler
c255bd5161 Attempted fix for SCSI disk seek timings. 2023-12-28 18:34:35 +01:00
OBattler
ac63ea6614 Commented out excess logging in scsi/scsi_disk.c. 2023-12-06 16:06:40 +01:00
OBattler
52470d4910 Fixed an off by 1 error in scsi/scsi_disk.c, fixes NetBSD 7 hang when probing a SCSI hard disk. 2023-12-06 16:05:43 +01:00
RichardG867
9bcece63fc Fix some random comments which have been bugging me 2023-11-10 17:27:30 -03:00
OBattler
2a5a8f7431 Assorted IDE fixes and the PCI IDE bus master now also resets ATAPI hard disks. 2023-11-03 05:54:30 +01:00
OBattler
40d724cf20 Fixed SCSI/ATAPI hard disk timings and IDE hard disk recalibrate command timing. 2023-10-30 04:48:29 +01:00
OBattler
4a951afe3f Implemented hard disk speeds for SCSI. 2023-10-30 03:36:23 +01:00
OBattler
d2713cb7ca Merge branch 'master' of https://github.com/86Box/86Box 2023-10-28 22:00:35 +02:00
OBattler
b474e3d056 Massive IDE clean-ups, and finally implemented ATAPI hard disks. 2023-10-28 22:00:23 +02:00
TC1995
961a2483ad SCSI CD-ROM fixes (NEC):
1. Added Mode Page Codes 0x00 and 0x03 (Unit Attention and Format Device) to the SCSI CD-ROM code.
2. Corrected the Read Disc Information TOC (actually Read TOC vendor unique) for NEC SCSI CD-ROMs, this, together with the fix above, fixes reading data cd-rom's using NEC vendor commands.
3. Actually identify NEC drives per manual (SCSI unknown version per the -75 and -77 manuals).
4. Re-added the 75 and 77 drives now that the NEC vendor commands are fine + an extra 25a drive with revision 1.0a (from a screenshot from vogons).
2023-10-24 20:15:08 +02:00
OBattler
7013949310 Made sure the dummy "None"/"Internal" devices never get initialized and fixed some PCI AGP bridge mess (including AGP-less 440BX/ZX/GX erroneously initializing the 440LX/EX AGP bridge), fixes #3696. 2023-10-14 06:45:45 +02:00