isa: configure serial+parallel by index.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Oct 2009 11:38:39 +0000 (13:38 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 27 Oct 2009 17:28:42 +0000 (12:28 -0500)
commit902f353e1d2f5d3d32d2d7a8703eb7a02aa72363
tree16eace0c597cf768456f8475799c43b6fdfe8e81
parentae939b6e9307adfef7ed07ce8d19ebedfa0d7283
isa: configure serial+parallel by index.

This patch adds a 'index' property to the isa-parallel and isa-serial
devices.  This can be used to create devices with the default isa irqs
and ioports by simply specifying the index, i.e.

   -device isa-serial,index=1

instead of

   -device isa-serial,iobase=0x2f8,irq=3

for ttyS1 aka com2.  Likewise for parallel ports.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/parallel.c
hw/serial.c