Commit Graph

433 Commits

Author SHA1 Message Date
OBattler
3556232c21 IDE: Status now once again returns 0x00 on an absent slave with a present master, fixes #4843. 2024-09-22 05:44:25 +02:00
OBattler
1c03839965 IDE: Restore RAM disk timings to how they were before the timings support was are (non-RAM disk timings are not affected), allows OS/2 Warp 3 to successfully install. 2024-09-21 12:00:05 +02:00
TC1995
fe5c89785f ESDI MCA changes of the late night (September 18th, 2024)
1. More logs.
2. Placed the required bits in the reset routine to make Xenix 2.3.4q work (at least getting past the reset detection).
3. Some more fixes for OS/2 1.x (proposed by WNT50)
2024-09-18 01:00:19 +02:00
OBattler
7399969f2b MCA ESDI: Implement the PARK HEADS (0x06) command. 2024-09-13 14:04:53 +02:00
Jasmine Iwanek
f4b63caf0b One line per file in CmakeLists.txt 2024-09-04 18:34:06 -04:00
Mike Swanson
00354749f2 Use ftruncate on Unix to create hard disk images quickly
Instead of writing out disk blocks slowly across the entire volume,
just use the ftruncate function to create a file instantly at the
desired size.

Depending on file system, this can either result in identical results
to the old code just faster (eg: ZFS and btrfs with compression
enabled), sparse files (most native Unix file systems without
compression, eg ext4 and UFS), or a full non-sparse file like before
(creating an image on FAT).
2024-09-02 22:52:24 -07:00
TC1995
8c98dcf5e8 Remove the first change. 2024-08-25 23:26:20 +02:00
TC1995
da5757f802 Minor but important changes to minivhd's dynamic/diff vhd handling
1. Changed the first seek_end in create_block to seek_set.
2. Avoid expansion overflow through a check if the block offset is below the total sectors.
2024-08-25 23:05:13 +02:00
OBattler
9da2cef53d Also apply the IRQ 2 fix to the WD1002 family. 2024-08-24 06:24:35 +02:00
OBattler
f81541c8f6 WD1004 family: Fix IRQ 2 flag readout. 2024-08-24 06:19:14 +02:00
Jasmine Iwanek
31f87b873a Compile fix for hdc_ide_w83769f.c logging 2024-08-07 02:23:28 -04:00
Jasmine Iwanek
a6cd293baa Compile fix for hdc_ide_um8673f.c logging 2024-08-07 02:23:28 -04:00
Jasmine Iwanek
68437c22bf Compile fix for hdc_ide_ali5213.c logging 2024-08-07 02:23:28 -04:00
Jasmine Iwanek
2a7d300078 Use a define for max HDC's 2024-07-20 21:48:57 -04:00
Jasmine Iwanek
680f65cf19 Standardize hdc_current into an array 2024-07-20 14:49:24 -04: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
Jasmine Iwanek
215b3253a5 Deal with some magic numbers re hdc_current 2024-07-08 00:40:52 -04:00
OBattler
72ff4501f7 IDE: Hard disks now have a valid default configuration, per ATA-2 and later. 2024-05-09 18:02:27 +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
56f7030c98 IDE clean-ups. 2024-05-03 00:23:08 +02:00
OBattler
ae834c1a2d AT MFM/RLL: The SET DRIVE PARAMETERS and RESTORE commands no longer finish instantly, fixes MFM/RLL drives on the Arche AMA-2010. 2024-04-18 04:21:01 +02:00
OBattler
9947af00d4 Fixed the FORMAT command on almost every emulated hard disk controller. 2024-04-18 03:47:49 +02:00
cold-brewed
bf09f6c9fc Fix gcc warning with use of strncpy 2024-03-27 14:16:21 -04:00
cold-brewed
50a2a479c1 Revert earlier change to zip_load to fix an image load crash 2024-03-23 16:15:35 -04:00
Alexander Babikov
82e6a7a129 Don't recognize no longer used HDD bus types 2024-03-20 20:33:30 +05:00
Alexander Babikov
8e06b5449f Overhaul plat_get_string()
Now takes constants with human-readable names instead of
Win32 string table IDs, language.h is no longer needed

ui_msgbox*() no longer accepts string IDs as arguments directly,
plat_get_string() must be explicitly called to retrieve the string
2024-03-20 20:33:28 +05:00
TC1995
3aa81066d3 Solved the IRQ mess of ESDI MCA.
This should also fix the timing/fatal's on ramdisk speeds using said controller on NT and OS/2 on MCA.
2024-03-11 21:39:16 +01:00
OBattler
10c7ee2aef Fixed some warnings. 2024-03-09 11:38:18 +01:00
OBattler
01d066ce4c MiniVHD: Some initialization sanitizations. 2024-03-08 22:37:18 +01:00
OBattler
a45d268070 LBA Enhancer: Coding style. 2024-03-08 22:36:48 +01:00
Cacodemon345
6d1c91c8ce Add Vision Systems LBA Enhancer 2024-03-06 15:14:56 +06:00
Miran Grča
25da1f1bae Merge pull request #4233 from 86Box/tc1995
IDE/ATAPI port/irq changes for MCA:
2024-03-02 15:49:46 +01:00
TC1995
8c6d544d5d IDE/ATAPI port/irq changes for MCA:
The ADF is a bit misleading, for pos3 and pos4, the right bits are bits 5-4, not 6-5. Fixes IRQ and added the secondary addresses without conflicting with the FDC, now ATAPI drives work fine.
2024-03-02 15:46:12 +01:00
OBattler
12e367fac6 Fixed a warning in disk/hdc_ide.c. 2024-03-02 12:51:50 +01:00
TC1995
af786bec0a IDE changes (now for MCA).
Added McIDE (MCA IDE) controller for MCA machines that don't have it (PS/2 models 50+).
2024-03-01 22:54:31 +01:00
TC1995
ff6964f73d ESDI/MFM AT changes:
Make sure they IRQ activations are more IDE-like and correct.
2024-03-01 19:26:32 +01:00
OBattler
58a0c840c1 Added SiS 550x, 558x, 559x, (5)600, UMC UM8890, UMC UM8663 Super I/O Chips, UMC UM8673F and Winbond W83769F IDE Contollers, and a number of machines, and fixes to the UM888x 486 chipset. 2024-02-22 00:52:20 +01:00
Alexander Babikov
fb335a754a Merge the XTIDE XT/XT+ and AT/386 BIOS variations 2024-02-05 03:18:24 +05:00
OBattler
b607d191f4 Fix the WD1004A-WX1 BIOS and jumpers. 2024-01-22 15:35:32 +01:00
OBattler
009139c902 IDE: Reset the reset flag to 0 for all affected devices in ide_board_callback(), fixes #4014. 2024-01-10 00:43:17 +01:00
OBattler
ce342400eb Fixed IDE sector advancement, fixes #4012. 2024-01-09 23:49:09 +01:00
OBattler
1d15d48ee7 Broke out the ALi M5213 IDE from the ALi M1489 code (it turns out the ALi M1489 on-chip IDE is for all intents and purposes identical to the M5213) and made the Acer A1G use it. 2024-01-08 23:58:30 +01:00
OBattler
3a62aa4ea7 First batch of Acer A1G fixes, fixes #3992. 2024-01-08 22:27:09 +01:00
OBattler
7f92d71bf1 Removed some accidentally excess logging from disk/hdc_ide.c. 2024-01-08 02:40:45 +01:00
OBattler
215c507634 Soft reset on IDE device 1 causes the assertion of PDIAG- which causes the error register of device 0 to also be set to 1, indicating diagnostics passed successfully (+ a PIIX3 fix), fixes #4002. 2024-01-08 02:35:03 +01:00
OBattler
e7f15d87e1 And the warning in disk/zip.c. 2023-12-16 20:47:11 +01:00
Jasmine Iwanek
61f83f2a3d Better variable name in hdc_ide 2023-12-15 16:21:28 -05:00
Jasmine Iwanek
fc19a4698b Several fixes to compile with logging enabled 2023-12-14 15:52:04 -05:00
OBattler
5221a77dbf IDE/ATAPI SRST fixes - fixes ATAPI CD-ROM detection on the Nec PowerMate V. 2023-12-14 21:19:58 +01:00