mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Restore consistent formatting
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
df2921d326
commit
8acbc9b21d
3 changed files with 14 additions and 15 deletions
11
hw/gus.c
11
hw/gus.c
|
@ -234,7 +234,7 @@ static const VMStateDescription vmstate_gus = {
|
|||
|
||||
static int gus_initfn (ISADevice *dev)
|
||||
{
|
||||
GUSState *s = DO_UPCAST(GUSState, dev, dev);
|
||||
GUSState *s = DO_UPCAST (GUSState, dev, dev);
|
||||
struct audsettings as;
|
||||
|
||||
AUD_register_card ("gus", &s->card);
|
||||
|
@ -264,24 +264,23 @@ static int gus_initfn (ISADevice *dev)
|
|||
|
||||
register_ioport_write (s->port, 1, 1, gus_writeb, s);
|
||||
register_ioport_write (s->port, 1, 2, gus_writew, s);
|
||||
isa_init_ioport_range(dev, s->port, 2);
|
||||
isa_init_ioport_range (dev, s->port, 2);
|
||||
|
||||
register_ioport_read ((s->port + 0x100) & 0xf00, 1, 1, gus_readb, s);
|
||||
register_ioport_read ((s->port + 0x100) & 0xf00, 1, 2, gus_readw, s);
|
||||
isa_init_ioport_range(dev, (s->port + 0x100) & 0xf00, 2);
|
||||
isa_init_ioport_range (dev, (s->port + 0x100) & 0xf00, 2);
|
||||
|
||||
register_ioport_write (s->port + 6, 10, 1, gus_writeb, s);
|
||||
register_ioport_write (s->port + 6, 10, 2, gus_writew, s);
|
||||
register_ioport_read (s->port + 6, 10, 1, gus_readb, s);
|
||||
register_ioport_read (s->port + 6, 10, 2, gus_readw, s);
|
||||
isa_init_ioport_range(dev, s->port + 6, 10);
|
||||
|
||||
isa_init_ioport_range (dev, s->port + 6, 10);
|
||||
|
||||
register_ioport_write (s->port + 0x100, 8, 1, gus_writeb, s);
|
||||
register_ioport_write (s->port + 0x100, 8, 2, gus_writew, s);
|
||||
register_ioport_read (s->port + 0x100, 8, 1, gus_readb, s);
|
||||
register_ioport_read (s->port + 0x100, 8, 2, gus_readw, s);
|
||||
isa_init_ioport_range(dev, s->port + 0x100, 8);
|
||||
isa_init_ioport_range (dev, s->port + 0x100, 8);
|
||||
|
||||
DMA_register_channel (s->emu.gusdma, GUS_read_DMA, s);
|
||||
s->emu.himemaddr = s->himem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue