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

@@ -32,11 +32,13 @@
#include <86box/fdc.h>
#include <86box/sio.h>
typedef struct {
uint8_t id, tries,
regs[42];
int locked, rw_locked,
cur_reg;
typedef struct fdc37c669_t {
uint8_t id;
uint8_t tries;
uint8_t regs[42];
int locked;
int rw_locked;
int cur_reg;
fdc_t *fdc;
serial_t *uart[2];
} fdc37c669_t;
@@ -62,6 +64,9 @@ make_port(fdc37c669_t *dev, uint8_t reg)
case 0x25:
mask = 0xfe;
break;
default:
break;
}
p = ((uint16_t) (dev->regs[reg] & mask)) << 2;
@@ -217,6 +222,9 @@ fdc37c669_write(uint16_t port, uint8_t val, void *priv)
serial_setup(dev->uart[0], make_port(dev, 0x24), (dev->regs[0x28] & 0xf0) >> 4);
}
break;
default:
break;
}
}