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,11 @@
#include <86box/fdc.h>
#include <86box/sio.h>
typedef struct {
uint8_t tries, has_ide,
fdc_on, regs[15];
typedef struct pc87332_t {
uint8_t tries;
uint8_t has_ide;
uint8_t fdc_on;
uint8_t regs[15];
int cur_reg;
fdc_t *fdc;
serial_t *uart[2];
@@ -69,6 +71,9 @@ lpt1_handler(pc87332_t *dev)
lpt_port = 0x000;
lpt_irq = 0xff;
break;
default:
break;
}
if (lpt_port)
@@ -105,6 +110,9 @@ serial_handler(pc87332_t *dev, int uart)
case 3:
serial_setup(dev->uart[uart], 0x220, COM3_IRQ);
break;
default:
break;
}
break;
case 3:
@@ -121,8 +129,14 @@ serial_handler(pc87332_t *dev, int uart)
case 3:
serial_setup(dev->uart[uart], 0x228, COM4_IRQ);
break;
default:
break;
}
break;
default:
break;
}
}
@@ -238,6 +252,9 @@ pc87332_write(uint16_t port, uint8_t val, void *priv)
lpt1_handler(dev);
}
break;
default:
break;
}
}