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

@@ -52,7 +52,7 @@ static uint16_t dma_sg_base;
static uint16_t dma16_buffer[65536];
static uint32_t dma_mask;
static struct {
static struct {
int xfr_command,
xfr_channel;
int byte_ptr;
@@ -760,11 +760,11 @@ dma16_read(uint16_t addr, void *priv)
case 6: /*Address registers*/
dma_wp[1] ^= 1;
if (dma_ps2.is_ps2) {
if (dma_wp[1])
if (dma_wp[1])
return(dma[channel].ac);
return((dma[channel].ac >> 8) & 0xff);
}
if (dma_wp[1])
if (dma_wp[1])
return((dma[channel].ac >> 1) & 0xff);
return((dma[channel].ac >> 9) & 0xff);
@@ -1338,7 +1338,7 @@ _dma_writew(uint32_t addr, uint16_t val, dma_t *dma_c)
dma_bm_write(addr, (uint8_t *) &val, 2, dma_transfer_size(dma_c));
} else {
_dma_write(addr, val & 0xff, dma_c);
_dma_write(addr + 1, val >> 8, dma_c);
_dma_write(addr + 1, val >> 8, dma_c);
}
}