ioemu: generic PCI device config-space emulation
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 18 Jun 2008 08:40:39 +0000 (09:40 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 18 Jun 2008 08:40:39 +0000 (09:40 +0100)
commitcc5871d6da53bdf1ba296fcedfc9a956787a900f
treef4da4836063d2f9d3ccb66e1a0e4015e8cd25e00
parent0a8346854e56486156268113c4632e6f2545bc93
ioemu: generic PCI device config-space emulation

This patch is an extension for qemu-dm to enable emulation of generic
PCI devices. The information for the PCI devices can be passed by
command line parameter.

The command line parameter is "-pciemulation" followed by the
information which contains a label and hex value of the configuration
registers separated by ":".

The configuration registers for each PCI device are below.
vendorid
deviceid
command
status
revision
classcode
headertype
subvendorid
subsystemid
interruputline
interruptpin

This is an example of command line parameter.

 -pciemulation hba1:1240:0780:0002:0:0:010000:0:10b5:0777:05:1

Signed-off-by: Shinji Matsumoto <smatsumoto@marathontechnologies.com>
tools/ioemu/Makefile.target
tools/ioemu/hw/pc.c
tools/ioemu/hw/pci_emulation.c [new file with mode: 0644]
tools/ioemu/hw/pci_emulation.h [new file with mode: 0644]
tools/ioemu/vl.c
tools/ioemu/vl.h