OBattler
5b6a965900
Bring machine flags on par with device flag and clean up device_is_valid() accordingly.
2025-02-14 07:10:55 +01:00
Jasmine Iwanek
4e6f29a7d5
malloc to calloc
2025-02-01 15:38:36 -05:00
Jasmine Iwanek
81b8038bc5
Clean up .available & .poll
2025-02-01 03:38:52 -05:00
OBattler
5b101aad81
AT KBC: Fast track command AE (enable keyboard) because the LG MultiNet sends command A7 immediately after it, fixes keyboard lock-ups in its CMOS Setup.
2025-01-13 23:22:37 +01:00
OBattler
24c6ebc6dd
Samsung SPC7700P-LW: reset SMBASE on soft reset via the keyboard controller, fixes segmentation fault on soft reset after FDISK.
2024-09-24 04:50:41 +02:00
OBattler
db3bbad003
AT KBC: Check for T3100E 'Fn' key after translating the current scan code, should fix the keys with translated scan code set 2 as well.
2024-09-08 12:21:31 +02:00
OBattler
43ff35c10c
Add the Acer A1G to the Siemens PCD-2L hack, fixes POST: 31 30 freeze with non-SL-enhanced 486 CPU's.
2024-08-31 19:13:06 +02:00
OBattler
2634b206c8
AT KBC: Fix on the fly AT / PS/2 mode switching, fixes PS/2 mouse on machines with VLSI VL82C113 on-chip KBC.
2024-07-23 18:40:38 +02:00
OBattler
fd00bcca8b
Backported the kbc_at_set_ps2() function required by the VL82c113.
2024-07-22 00:12:12 +02:00
OBattler
2e6d392ff8
On ASIC keyboard controllers, output on channel 0 (KBC) now overrides any existing bytes in the output buffer, fixes FIC PT-2000 soft reset problems.
2024-07-21 04:53:54 +02:00
OBattler
0c9887b0ec
AT KBC: Revert to old behavior always.
2024-05-19 21:24:04 +02:00
OBattler
1a255693e9
PS/2 KBC: Changed the way the IRQ delay is done, fixes #4451 .
2024-05-14 21:25:25 +02:00
OBattler
55e1ca7dc1
PS/2 ASIC KBC: A minor fix.
2024-05-13 02:22:05 +02:00
OBattler
3c3e53e8b0
PS/2 KBC: Different approach to fix the Soyo 4SAW2 - it's only ever seen with ASIC KBC's (Holtek, MB-300E, and VIA VT82C42N), so I have added a Holtek controller that's basically an AMI with an ASIC flag.
2024-05-13 02:03:49 +02:00
OBattler
3cac44a033
PS/2 KBC: Added a 2-cycle wait before clearing the IRQ's, fixes keyboard during NTLDR.
2024-05-13 00:42:35 +02:00
OBattler
01b2d14a49
PS/2 KBC: Clear IRQ's upon returning to main loop, fixes input in Windows 3.1x on eg. the Soyo 4SAW2.
2024-05-12 19:11:52 +02:00
OBattler
97b41adc22
AT KBC: IBM variants now revert to old IRQ behavior.
2024-05-10 00:49:21 +02:00
OBattler
b67c234569
The PS/2 keyboard controllers now simulate the real hardware behavior of there being a slight delay between OBF and IRQ, fixes, amnong other things, PB640 Windows 95 mouse (and PB450 CMOS Setup now works without the workaround).
2024-05-10 00:31:58 +02:00
OBattler
a4fe16c9a0
AT KBC: Do not attempt to remove the I/O handlers if they had not been set first, fixes crash when attempting to use the Compaq Presario 4500.
2024-05-09 01:41:24 +02:00
OBattler
b159cd5b12
Implemented the Phoenix keyboard controller with a Packard Bell specific workaround, fixes #4415 .
2024-05-08 23:42:20 +02:00
OBattler
c89e92fafd
Fixed the BCM SQ-588 with a kludged, fixes #4431 .
2024-05-08 00:34:51 +02:00
OBattler
d98751e40f
Added the ability to enable/disable the KBC (used by the FDC37C93x Super I/O chips).
2024-04-18 03:51:56 +02:00
OBattler
cd03b6a31c
Packard Bell machines: PS/2 mouse commands now suspend dynamic recompilation until the response byte is read, fixes #552 .
2024-01-25 21:47:15 +01:00
OBattler
c29d51b419
Slowed down the keyboard controller back to the old speed, fixes #4013 .
2024-01-09 02:40:00 +01:00
OBattler
937e2a52f8
SiS 5571, Daewoo Compaq, speed up AT / PS/2 KBC (does not appear to break anything from months of testing) and fix AT / PS/2 keyboard reset to fix the Samsung SPC7700LP-W soft reset.
2024-01-06 01:51:20 +01:00
Jasmine Iwanek
532f8ca91f
More linting in src/device
2023-08-22 23:54:06 -04:00
OBattler
1d48363803
The 286/386 interpreter now has its own variant of x86seg.c.
2023-08-21 02:56:33 +02:00
Jasmine Iwanek
02e41927e3
Dribs and drabs which have escaped
2023-08-12 13:07:00 -04:00
Jasmine Iwanek
81bb5e564b
Better fallthrough annotation macro.
2023-08-09 20:09:36 -04:00
OBattler
87dd044b97
A note about Regional HT6542 in device/kbc_at.c.
2023-08-07 04:54:45 +02:00
OBattler
c30d5d90b7
PCI and IRQ rework, pci.c rewritten from ground up, fixes numerous issues such as the bridge being added when the number of normal PCI devices equals the number of normal PCI slots, Windows 95 PCI operation on Intel 430NX, sharing of PCI IRQ's with non-PCI level-triggered devices, having both configuration mechanisms operating at the same time (ALi M1435), etc., and makes the code much more readable.
2023-08-07 03:04:52 +02: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
TC1995
19fa6c8f8b
Machine features and fixes:
...
Revamped and refactored the Compaq AT clone code, including a more correct Plasma emulation and undev branch the Deskpro 386 while adding the September 1986 and January 1988 bioses.
Added Compaq AT KBC strictly for the Deskpro 386 with the right settings, including the FPU bit.
The generic AMI/Quadtel/Phoenix IBM AT's don't issue the speed problems of the pure IBM AT beyond 8Mhz, so don't limit them to 8Mhz.
2023-07-14 22:14:56 +02:00
OBattler
b750471e5c
Removed two temporary lines in device/kbc_at.c that shouldn't have been committed.
2023-07-03 02:42:33 +02:00
OBattler
e328a3c2de
Added the Siemens Award keyboard controller and a small hack (will have to do due to the scarcity of information until we get ahold of an actual Siemens PCD-2L) to make the Siemens PCD-2L POST correctly again, fixes #3444 .
2023-07-03 02:36:17 +02:00
OBattler
3a60d62434
Fixed thetype of temp in kbc_send_to_ob(), fixes the incorrect sending of 0xFF's to the guest.
2023-06-29 13:57:16 +02: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
Jasmine Iwanek
6c1e4a8e2c
Some code smell fixes from sonarlint
2023-05-15 19:25:56 -04:00
OBattler
194918b86a
Some minor keyboard and keyboard controller fixes and three-phased the keyboard and PS/2 mouse BAT.
2023-05-16 00:20:09 +02:00
OBattler
125315ee61
Fixed the KBC PCI flag, fixes the logo on the TriGem HAWK.
2023-04-30 18:24:14 +02:00
OBattler
1057722efc
Command A5 is in fact the IBM PS/2 Load Security command, fixes the AMI Excalibur PCI Pentium.
2023-04-30 18:21:17 +02:00
OBattler
1eaa3830d3
KBC command output is now correctly two-phased like in the M&KB branch, fixes keyboard input on the Intel Advanced/EV with no PS/2 mouse.
2023-04-30 17:13:03 +02:00
OBattler
78a897f07a
Some minor fixes, the PS/2 mouse command F0h (set remote mode) is now implemented, the PS/2 mouse command F3h (set sample rate) now actually changes the host mouse polling rate, and the Intel SIO IB and ZB now forcibly initialize a keyboard and mouse IRQ latch if the board has a PS/2 keyboard controller, to simulate the presence of a latch external to the chip.
2023-04-26 01:42:23 +02:00
OBattler
3b54cb085e
Some minor bugfixes.
2023-04-24 02:47:17 +02:00
OBattler
5d9de974ee
More keyboard controller clean-ups and fixes to mem/mem.c and port_92.c - OS/2 1.3 now works on IBM PS/2 MCA machines.
2023-04-22 03:48:50 +02:00
OBattler
634ecfeab9
More clean-ups.
2023-04-20 14:50:44 +02:00