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

@@ -56,13 +56,16 @@
#define PRTIQS (dev->regs[0x27] & 0x0f)
#define ECPIRQ ((dev->regs[0x27] >> 5) & 0x07)
typedef struct {
uint8_t tries, regs[42];
uint16_t reg_init;
int locked, rw_locked,
cur_reg,
base_address, key,
key_times;
typedef struct w83877f_t {
uint8_t tries;
uint8_t regs[42];
uint16_t reg_init;
int locked;
int rw_locked;
int cur_reg;
int base_address;
int key;
int key_times;
fdc_t *fdc;
serial_t *uart[2];
} w83877f_t;
@@ -140,6 +143,9 @@ make_port(w83877f_t *dev, uint8_t reg)
if ((p < 0x100) || (p > 0x3F8))
p = COM2_ADDR;
break;
default:
break;
}
return p;
@@ -358,6 +364,9 @@ w83877f_write(uint16_t port, uint8_t val, void *priv)
w83877f_serial_handler(dev, 0);
}
break;
default:
break;
}
}