Revision 8f04ee08 hw/sb16.c
b/hw/sb16.c | ||
---|---|---|
1391 | 1391 |
return 0; |
1392 | 1392 |
} |
1393 | 1393 |
|
1394 |
static ISADeviceInfo sb16_info = { |
|
1395 |
.qdev.name = "sb16", |
|
1396 |
.qdev.desc = "Creative Sound Blaster 16", |
|
1397 |
.qdev.size = sizeof (SB16State), |
|
1398 |
.qdev.vmsd = &vmstate_sb16, |
|
1399 |
.init = sb16_initfn, |
|
1400 |
.qdev.props = (Property[]) { |
|
1394 |
static void sb16_class_initfn(ObjectClass *klass, void *data) |
|
1395 |
{ |
|
1396 |
ISADeviceClass *ic = ISA_DEVICE_CLASS(klass); |
|
1397 |
ic->init = sb16_initfn; |
|
1398 |
} |
|
1399 |
|
|
1400 |
static DeviceInfo sb16_info = { |
|
1401 |
.name = "sb16", |
|
1402 |
.desc = "Creative Sound Blaster 16", |
|
1403 |
.size = sizeof (SB16State), |
|
1404 |
.vmsd = &vmstate_sb16, |
|
1405 |
.class_init = sb16_class_initfn, |
|
1406 |
.props = (Property[]) { |
|
1401 | 1407 |
DEFINE_PROP_HEX32 ("version", SB16State, ver, 0x0405), /* 4.5 */ |
1402 | 1408 |
DEFINE_PROP_HEX32 ("iobase", SB16State, port, 0x220), |
1403 | 1409 |
DEFINE_PROP_UINT32 ("irq", SB16State, irq, 5), |
Also available in: Unified diff