Commit Graph

251 Commits

Author SHA1 Message Date
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
Jasmine Iwanek
197e817ea3 Remove several unused variables 2023-10-08 13:32:43 -04:00
Jasmine Iwanek
44e7fe5893 Little bit I forgot in my last PR 2023-10-05 20:10:20 -04:00
Jasmine Iwanek
b7ae66b393 Avoid more magic numbers 2023-10-05 13:00:37 -04:00
Jasmine Iwanek
032ce8ccf7 Correct small oversight 2023-10-05 11:46:25 -04:00
Jasmine Iwanek
2c14630e7e Fix offset of mitsumi cd info 2023-10-05 11:31:42 -04:00
OBattler
209c8fbbda Assorted CD-ROM fixes (now cue sheets starting at a non-zero sector work correctly) and increased the maximum number of CD-ROM drives to 8. 2023-10-04 02:49:22 +02:00
TC1995
f30c71ed3b SCSI changes 2:
Replaced the string comparisons with proper drive types comparisons without strings.
2023-09-24 07:44:25 +02:00
TC1995
7c6381b2ea SCSI changes and fixes:
1. Added the Tribble 16-bit IBM SCSI adapter.
2. Reworked the vendor unique commands to counter audio issues as well as adding some undocumented commands (thanks to the source code of xmcd!), plus replacing the NEC CD-ROM DRIVE:75 with the :38 one.
2023-09-20 20:29:32 +02:00
Jasmine Iwanek
12070eb62a More linting in src/cdrom 2023-08-22 19:50:44 -04:00
OBattler
5492836562 VISO now supports all DOS characters, fixes #3605. 2023-08-20 02:33:18 +02:00
OBattler
6fae975a72 PIT type selection, CD-ROM model filtering by bus, and translation updates - closes #3354. 2023-08-16 05:23:03 +02:00
cold-brewed
99cdd3a16a Various warning cleanups 2023-08-12 11:42:11 -04:00
Jasmine Iwanek
81bb5e564b Better fallthrough annotation macro. 2023-08-09 20:09:36 -04:00
RichardG867
b539105b23 VISO: Proper pointer format strings 2023-08-09 17:19:50 -03:00
Jasmine Iwanek
d2f42198fd Fix clang build failure 2023-07-26 12:41:18 -04:00
Jasmine Iwanek
998cfe5cc8 Constification 2023-07-25 17:59:24 -04:00
Jasmine Iwanek
db66543959 Apple build fix 2023-07-25 17:59:22 -04:00
Jasmine Iwanek
ee695e71f9 More sonarlint work 2023-07-25 17:59:22 -04:00
Jasmine Iwanek
922c4335ae Next round of sonarlint cleanups 2023-06-27 21:17:13 -04:00
Jasmine Iwanek
21adfd4d50 Next round of sonarlint cleanups 2023-06-26 18:28:13 -04:00
OBattler
c183b1da38 Added a specific NULL check to cdrom/cdrom_image_backend.c to please cppcheck. 2023-06-18 23:51:15 +02:00
OBattler
eb4c9f3e40 Fixed warnings in the VISO and Wacom Tablet codes. 2023-06-11 14:00:18 +02:00
Jasmine Iwanek
ce451a2bf4 More fixes for sonarcloud findings 2023-05-28 21:02:17 -04:00
cold-brewed
12f5e06b92 viso: Make sure to close file descriptor when a directory is detected (#3251)
Co-authored-by: cold-brewed <cold-brewed@users.noreply.github.com>
2023-04-14 14:05:11 -03:00
RichardG867
6abf0bbafb VISO: Attempt fix for clang compiler warning 2023-04-04 20:49:45 -03:00
Jasmine Iwanek
0e53a29e3d Fix build when ENABLE_CDROM_LOG is set 2023-02-06 14:28:59 -05:00
Jasmine Iwanek
6978f6d7d4 Fix uninitialized use in mitsumi_cdrom_reset 2023-02-06 01:49:21 -05:00
OBattler
54d862d0b7 Fixed another warning in cdrom/cdrom.c. 2023-01-10 04:15:29 +01:00
OBattler
b91f79dcdc Fixed warnings in cdrom/cdrom.c. 2023-01-10 03:50:47 +01:00
Jasmine Iwanek
42ceb4cfcc Fix some bits which got lost in the last merge 2023-01-08 15:25:28 -05:00
TC1995
f9bc675a62 Git, so, stop the pull/push errors, anyway, fix compile again. 2023-01-08 14:32:58 +01:00
TC1995
1064c697e2 Darn git. 2023-01-08 14:25:18 +01:00
TC1995
e5496e2638 Overhauled CD-ROM selection for SCSI and ATAPI, including model and vendor specific commands.
Fixed the Spock SCSI ID selection.
Fixed CD Audio on NCR 5380-based SCSI controllers.
Added a proprietary CD-ROM controller selection (not hooked up yet).
All on qt only.
2023-01-07 23:48:45 +01:00
TC1995
df3c4b155a SCSI/CD-ROM fixes: Properly implemented the Toshiba specific SCSI commands including the Audio side per the Toshiba CD-ROM SCSI-2 manual from 1990 (they were previously implemented with some hacks). 2022-12-04 20:53:03 +01:00
RichardG867
ab086750ec VISO: Disable temporary logging 2022-11-25 16:33:04 -03:00
RichardG867
033deeedb5 VISO: Allow short directory names to have an extension 2022-11-23 17:33:45 -03:00
RichardG867
3dbfedbff0 Temporarily enable VISO logging 2022-11-22 20:00:59 -03:00
RichardG867
26dfadb73f VISO: Fix opendir fds still leaking under some circumstances 2022-11-21 17:18:56 -03:00
RichardG867
bdddfdb4b8 VISO: Overhaul format selection system 2022-11-21 17:07:33 -03:00
RichardG867
711eaf5bdd VISO: Automatically disable version suffixes upon detecting Windows NT El Torito boot structure 2022-11-21 16:23:42 -03:00
RichardG867
1695980271 VISO: Add flags field and calculate timezone format on ISO only 2022-11-21 15:58:33 -03:00
RichardG867
1ec5765f3f VISO: Fix file descriptor leak on directory traversal 2022-11-21 15:52:23 -03:00
RichardG867
dadc6ee2a7 VISO: Fix segfault if a directory fails to be enumerated 2022-11-21 15:36:20 -03:00
RichardG867
2cf20cb7b3 Merge branch 'master' of ssh://github.com/86Box/86Box 2022-11-21 14:29:09 -03:00
Jasmine Iwanek
3fe4f75108 A bit more clang-format 2022-11-19 11:53:07 -05:00
Jasmine Iwanek
6ea253896d Remove unnecessary clang-format comment 2022-11-13 21:15:59 -05:00
Jasmine Iwanek
bd75bc141a Header cleanups
Tabs to spaces
Consistency
2022-11-13 21:15:47 -05:00
Miran Grča
d13faa820e Merge pull request #2819 from jriwanek-forks/warnfixes
More compile warning fixes
2022-11-06 23:57:16 +01:00