Fix qdev property type definition for isa serial/parallel devices

Use the correct qdev property type for these devices.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Gerd Hoffmann 2009-11-17 11:28:41 +01:00 committed by Anthony Liguori
parent 2bc6f59b23
commit 51954d565f
2 changed files with 2 additions and 2 deletions

View File

@ -587,7 +587,7 @@ static ISADeviceInfo parallel_isa_info = {
.qdev.size = sizeof(ISAParallelState), .qdev.size = sizeof(ISAParallelState),
.init = parallel_isa_initfn, .init = parallel_isa_initfn,
.qdev.props = (Property[]) { .qdev.props = (Property[]) {
DEFINE_PROP_HEX32("index", ISAParallelState, index, -1), DEFINE_PROP_UINT32("index", ISAParallelState, index, -1),
DEFINE_PROP_HEX32("iobase", ISAParallelState, iobase, -1), DEFINE_PROP_HEX32("iobase", ISAParallelState, iobase, -1),
DEFINE_PROP_UINT32("irq", ISAParallelState, isairq, 7), DEFINE_PROP_UINT32("irq", ISAParallelState, isairq, 7),
DEFINE_PROP_CHR("chardev", ISAParallelState, state.chr), DEFINE_PROP_CHR("chardev", ISAParallelState, state.chr),

View File

@ -900,7 +900,7 @@ static ISADeviceInfo serial_isa_info = {
.qdev.size = sizeof(ISASerialState), .qdev.size = sizeof(ISASerialState),
.init = serial_isa_initfn, .init = serial_isa_initfn,
.qdev.props = (Property[]) { .qdev.props = (Property[]) {
DEFINE_PROP_HEX32("index", ISASerialState, index, -1), DEFINE_PROP_UINT32("index", ISASerialState, index, -1),
DEFINE_PROP_HEX32("iobase", ISASerialState, iobase, -1), DEFINE_PROP_HEX32("iobase", ISASerialState, iobase, -1),
DEFINE_PROP_UINT32("irq", ISASerialState, isairq, -1), DEFINE_PROP_UINT32("irq", ISASerialState, isairq, -1),
DEFINE_PROP_CHR("chardev", ISASerialState, state.chr), DEFINE_PROP_CHR("chardev", ISASerialState, state.chr),