aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-10 19:59:41 +0400
committermalc <av1474@comtv.ru>2009-09-10 19:59:41 +0400
commita5e8e46bfb6ae82d36d3e80aed6eb15f4012b2ce (patch)
treef35b809c4fa227bde3b1cfeefb426e02b2e50201
parent41875be5b40d3544e532186073a1297eb71ff67c (diff)
Fix formatting, get rid of conf and fix description
-rw-r--r--hw/gus.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/hw/gus.c b/hw/gus.c
index b41095e119..3df10e29e7 100644
--- a/hw/gus.c
+++ b/hw/gus.c
@@ -46,13 +46,6 @@
#define IO_WRITE_PROTO(name) \
static void name (void *opaque, uint32_t nport, uint32_t val)
-static struct {
- int port;
- int irq;
- int dma;
- int freq;
-} conf = {0x240, 7, 3, 44100};
-
typedef struct GUSState {
ISADevice dev;
GUSEmuState emu;
@@ -300,11 +293,11 @@ static int gus_initfn (ISADevice *dev)
register_ioport_read (s->port + 0x100, 8, 1, gus_readb, s);
register_ioport_read (s->port + 0x100, 8, 2, gus_readw, s);
- DMA_register_channel (conf.dma, GUS_read_DMA, s);
+ DMA_register_channel (s->emu.gusdma, GUS_read_DMA, s);
s->emu.himemaddr = s->himem;
s->emu.gusdatapos = s->emu.himemaddr + 1024 * 1024 + 32;
s->emu.opaque = s;
- isa_init_irq(dev, &s->pic, s->emu.gusirq);
+ isa_init_irq (dev, &s->pic, s->emu.gusirq);
AUD_set_active_out (s->voice, 1);
@@ -314,13 +307,13 @@ static int gus_initfn (ISADevice *dev)
int GUS_init (qemu_irq *pic)
{
- isa_create_simple("gus");
+ isa_create_simple ("gus");
return 0;
}
static ISADeviceInfo gus_info = {
.qdev.name = "gus",
- .qdev.desc = "Creative Sound Blaster 16",
+ .qdev.desc = "Gravis Ultrasound GF1",
.qdev.size = sizeof (GUSState),
.init = gus_initfn,
.qdev.props = (Property[]) {
@@ -332,8 +325,8 @@ static ISADeviceInfo gus_info = {
},
};
-static void gus_register(void)
+static void gus_register (void)
{
- isa_qdev_register(&gus_info);
+ isa_qdev_register (&gus_info);
}
-device_init(gus_register)
+device_init (gus_register)