]> git.proxmox.com Git - mirror_qemu.git/commit - hw/parallel.c
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)
commite8ee28fb3e6cc2c4f5ec10d0aec9ff8ae9469e93
tree16eace0c597cf768456f8475799c43b6fdfe8e81
parent844e78ef9c6102cc3e33e4aa00efc8abdf0d8dde
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