More newline and whitespace cleanups

This commit is contained in:
Jasmine Iwanek
2022-02-20 02:26:27 -05:00
parent a66e392b26
commit 4674756664
401 changed files with 6985 additions and 6985 deletions

View File

@@ -349,10 +349,10 @@ acc3221_serial2_handler(acc3221_t *dev)
}
static void
static void
acc3221_write(uint16_t addr, uint8_t val, void *p)
{
acc3221_t *dev = (acc3221_t *)p;
acc3221_t *dev = (acc3221_t *)p;
uint8_t old;
if (!(addr & 1))
@@ -416,10 +416,10 @@ acc3221_write(uint16_t addr, uint8_t val, void *p)
}
static uint8_t
static uint8_t
acc3221_read(uint16_t addr, void *p)
{
acc3221_t *dev = (acc3221_t *)p;
acc3221_t *dev = (acc3221_t *)p;
if (!(addr & 1))
return dev->reg_idx;
@@ -439,7 +439,7 @@ acc3221_reset(acc3221_t *dev)
serial_remove(dev->uart[1]);
serial_setup(dev->uart[1], SERIAL2_ADDR, SERIAL2_IRQ);
lpt1_remove();
lpt1_init(0x378);
lpt1_irq(7);
@@ -465,7 +465,7 @@ acc3221_init(const device_t *info)
dev->fdc = device_add(&fdc_at_device);
dev->uart[0] = device_add_inst(&ns16450_device, 1);
dev->uart[1] = device_add_inst(&ns16450_device, 2);
dev->uart[1] = device_add_inst(&ns16450_device, 2);
io_sethandler(0x00f2, 0x0002, acc3221_read, NULL, NULL, acc3221_write, NULL, NULL, dev);

View File

@@ -63,7 +63,7 @@ typedef struct upc_t
} upc_t;
static void
static void
f82c710_update_ports(upc_t *dev, int set)
{
uint16_t com_addr = 0;
@@ -176,7 +176,7 @@ f82c606_update_ports(upc_t *dev, int set)
}
static uint8_t
static uint8_t
f82c710_config_read(uint16_t port, void *priv)
{
upc_t *dev = (upc_t *) priv;
@@ -197,7 +197,7 @@ f82c710_config_read(uint16_t port, void *priv)
}
static void
static void
f82c710_config_write(uint16_t port, uint8_t val, void *priv)
{
upc_t *dev = (upc_t *) priv;
@@ -330,7 +330,7 @@ f82c710_init(const device_t *info)
dev->fdc = device_add(&fdc_at_device);
dev->uart[0] = device_add_inst(&ns16450_device, 1);
dev->uart[1] = device_add_inst(&ns16450_device, 2);
dev->uart[1] = device_add_inst(&ns16450_device, 2);
io_sethandler(0x02fa, 0x0001, NULL, NULL, NULL, f82c710_config_write, NULL, NULL, dev);
io_sethandler(0x03fa, 0x0001, NULL, NULL, NULL, f82c710_config_write, NULL, NULL, dev);

View File

@@ -127,11 +127,11 @@ fdc37c669_write(uint16_t port, uint8_t val, void *priv)
if (valxor & 4) {
if (dev->id) {
lpt2_remove();
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
lpt2_init(make_port(dev, 0x23));
} else {
lpt1_remove();
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
lpt1_init(make_port(dev, 0x23));
}
}
@@ -177,11 +177,11 @@ fdc37c669_write(uint16_t port, uint8_t val, void *priv)
if (valxor) {
if (dev->id) {
lpt2_remove();
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
lpt2_init(make_port(dev, 0x23));
} else {
lpt1_remove();
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
if ((dev->regs[1] & 4) && (dev->regs[0x23] >= 0x40))
lpt1_init(make_port(dev, 0x23));
}
}

View File

@@ -13,7 +13,7 @@
* Author: Miran Grca, <mgrca8@gmail.com>
* Tiseno100
* EngiNerd <webmaster.crrc@yahoo.it>
*
*
* Copyright 2020 Miran Grca.
* Copyright 2020 Tiseno100
* Copyright 2021 EngiNerd.
@@ -147,7 +147,7 @@ pc87310_write(uint16_t port, uint8_t val, void *priv)
}
pc87310_log("SIO: written %01X\n", val);
/* reconfigure parallel port */
if (valxor & 0x03) {
lpt1_remove();
@@ -203,7 +203,7 @@ pc87310_read(uint16_t port, void *priv)
ret = dev->reg;
pc87310_log("SIO: read %01X\n", ret);
return ret;
}
@@ -247,7 +247,7 @@ pc87310_init(const device_t *info)
HAS_IDE_FUNCTIONALITY = info->local;
dev->fdc = device_add(&fdc_at_nsc_device);
dev->uart[0] = device_add_inst(&ns16550_device, 1);
dev->uart[1] = device_add_inst(&ns16550_device, 2);
@@ -258,7 +258,7 @@ pc87310_init(const device_t *info)
io_sethandler(0x3f3, 0x0001,
pc87310_read, NULL, NULL, pc87310_write, NULL, NULL, dev);
return dev;
}

View File

@@ -432,7 +432,7 @@ w83787f_init(const device_t *info)
dev->uart[0] = device_add_inst(&ns16550_device, 1);
dev->uart[1] = device_add_inst(&ns16550_device, 2);
if ((dev->ide_function & 0x30) == 0x10)
device_add(&ide_isa_device);

View File

@@ -192,7 +192,7 @@ w83877f_serial_handler(w83877f_t *dev, int uart)
if (dev->regs[0x19] & (0x02 >> uart)) {
clock_src = 14769000.0;
} else if (dev->regs[0x03] & (0x02 >> uart)) {
} else if (dev->regs[0x03] & (0x02 >> uart)) {
clock_src = 24000000.0 / 12.0;
} else {
clock_src = 24000000.0 / 13.0;