Another round of sonarlint work

This commit is contained in:
Jasmine Iwanek
2023-06-28 13:46:28 -04:00
parent b750471e5c
commit 1116aadb6f
135 changed files with 2425 additions and 1355 deletions

View File

@@ -35,9 +35,10 @@
#include <86box/fdc.h>
#include <86box/sio.h>
typedef struct {
uint8_t cur_reg, has_ide,
regs[81];
typedef struct i82091aa_t {
uint8_t cur_reg;
uint8_t has_ide;
uint8_t regs[81];
uint16_t base_address;
fdc_t *fdc;
serial_t *uart[2];
@@ -71,6 +72,9 @@ lpt1_handler(i82091aa_t *dev)
case 3:
lpt_port = 0x000;
break;
default:
break;
}
if ((dev->regs[0x20] & 0x01) && lpt_port)
@@ -112,6 +116,9 @@ serial_handler(i82091aa_t *dev, int uart)
case 0x07:
uart_port = COM3_ADDR;
break;
default:
break;
}
if (dev->regs[reg] & 0x01)
@@ -193,6 +200,9 @@ i82091aa_write(uint16_t port, uint8_t val, void *priv)
if (dev->has_ide && (valxor & 0x03))
ide_handler(dev);
break;
default:
break;
}
}