Commit Graph

55 Commits

Author SHA1 Message Date
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
3434d7d868 A few serial port fixes, now passes Norton Diagnostics tests as well. 2024-12-13 04:22:02 +01:00
OBattler
2207367bdd Fixed the segmentation fault on mouse movement when the serial mouse is attached to a disabled serial port. 2024-08-30 23:20:22 +02:00
Jasmine Iwanek
2373771f4d Support additional serial ports ala the MP5587-1/2 2024-06-28 23:30:56 -04:00
OBattler
26d9d7131a Mask out the upper 3 bits at MCR write, the serial ports now pass Check-It 2.1's MCR test. 2024-06-22 00:09:52 +02:00
Cacodemon345
d51ba85814 TCP/IP support 2024-03-12 14:27:19 +06:00
Cacodemon345
ec8b8f2a92 Somewhat finish initial modem emulation 2024-03-09 01:37:13 +06:00
Cacodemon345
9488078c5a Work-In-Progress modem emulation 2024-03-08 16:45:17 +06:00
OBattler
901e2568fe Mask out serial passthrough MSR bits when in loopback mode, fixes #4217. 2024-02-29 06:46:37 +01:00
Jasmine Iwanek
532f8ca91f More linting in src/device 2023-08-22 23:54:06 -04:00
OBattler
5b56f3a450 Some small fixes. 2023-08-19 06:05:52 +02:00
OBattler
6c4a4be6be Timer clean-ups. 2023-08-19 05:26:49 +02:00
OBattler
565421a252 Serial receive/transmit rework (uses the new fifo.c API) and a small GDB stub fix. 2023-08-18 05:57:32 +02:00
OBattler
459d4a4a68 Fixed a very stupid bug in device/serial.c, fixes #3558 . 2023-08-14 17:15:09 +02:00
OBattler
3e2a31eb97 More mouse fixes (thanks, coldbrewed!), and mitigated IRQ clear spam from serial and AT NVR. 2023-08-13 17:25:45 +02:00
OBattler
cdb415ef0f Turned serial_attach() into a #define for serial_attach_ex(). 2023-08-07 17:41:13 +02:00
OBattler
ced0a649be Serial port IRQ clean-ups. 2023-08-07 04:06:04 +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
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
Jasmine Iwanek
610401de7a Yet more clang-formatting 2023-02-28 23:53:57 -05:00
OBattler
b2f324262d Fixed more serial receiver FIFO bugs. 2023-02-16 20:10:05 +01:00
OBattler
f6c8080bdc Fixed MSR writability, fixes Error D on the IBM PCjr. 2023-02-16 02:43:06 +01:00
OBattler
3d480a6ffc A small fix to the serial receiver FIFO - fixes error 1101 on IBM PS/2 Models 70 and 80. 2023-02-16 00:15:04 +01:00
Cacodemon345
f4d985b3da serial: Fix compilation with Qt 2023-02-15 21:37:20 +06:00
OBattler
9d59f72f0b Rewrote the serial port receiver FIFO. 2023-02-15 16:00:46 +01:00
Jasmine Iwanek
f643391975 Serial Passthrough 2023-02-14 20:53:59 -05:00
Jasmine Iwanek
1860700eab Fix some small issues 2023-01-07 17:02:23 -05:00
Jasmine Iwanek
3fe4f75108 A bit more clang-format 2022-11-19 11:53:07 -05:00
Jasmine Iwanek
af9f1abf98 Code/Comments cleanup
Tabs to spaces
Whitespace
Normalize clang-format comments
2022-11-13 21:15:58 -05:00
Jasmine Iwanek
bd75bc141a Header cleanups
Tabs to spaces
Consistency
2022-11-13 21:15:47 -05:00
Jasmine Iwanek
aa2c07bed2 Random header cleanups I noticed while porting things 2022-11-05 22:12:35 -04:00
Jasmine Iwanek
4cf229ee3a Port the very basic serial console from mtrr
It's enabled by the flag ENABLE_SERIAL CONSOLE
2022-11-05 21:43:42 -04:00
Jasmine Iwanek
9a3cabbe85 clang-format in src/device/ 2022-09-18 17:19:21 -04:00
Jasmine Iwanek
8b33566187 More serial cleanups 2022-07-28 16:50:49 -04:00
Jasmine Iwanek
a04710b517 clang-format in src/win and other misc places 2022-07-27 17:27:51 -04:00
Jasmine Iwanek
a7edaf0608 src/device 2022-03-13 09:28:28 -04:00
Jasmine Iwanek
41f1c2facd More hardcoding fixes 2022-03-12 19:18:48 -05:00
Jasmine Iwanek
4674756664 More newline and whitespace cleanups 2022-02-20 16:26:40 -05:00
Jess Lovelace
f18615ae87 refactored device_t and all declarations 2022-02-02 16:31:22 -05:00
Jasmine Iwanek
055c0ecd69 Mistake 2021-12-19 22:06:36 -05:00
Jasmine Iwanek
70056c9ed0 Revert "Default UART to 16550"
This reverts commit 85eaaf9d2d.
2021-12-19 21:22:38 -05:00
Jasmine Iwanek
149666b54b Consistency and naming 2021-12-19 21:21:34 -05:00
Jasmine Iwanek
948624b6f4 Default UART to 16550 2021-12-19 21:15:48 -05:00
Jasmine Iwanek
c798a6849b Stubs for 16650-16950 UARTs 2021-12-19 19:53:25 -05:00
Jasmine Iwanek
3e70c7e98a Trivial fixes and cleanups for serial & parallel 2021-11-13 17:33:43 -05:00
Lubomir Rintel
d152e92648 Don't raise the UART interrupts if no IRQ is configured
The 82C606 SuperIO allows reconfiguring the interrupt line used for the
UART alarm at runtime, including disabling it altogether.

While at that, correct the type in the serial_setup() prototype to be
the same as serial_t.irq uses.
2021-09-07 21:34:18 +02:00
OBattler
0cf651ff95 Bit 0 to 4 of LSR are now all writeable, always, fixes Error D on the IBM PCjr. 2021-03-30 00:37:09 +02:00
OBattler
87161c63dd Only bits 4 to 2 of LSR are now writable, and only in loopback mode. 2021-03-04 21:56:43 +01:00