pcie port: define struct PCIEPort/PCIESlot and helper functions
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 20 Oct 2010 08:18:52 +0000 (17:18 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Oct 2010 10:05:45 +0000 (12:05 +0200)
commit5c579a3b89b15cdd89754897ca62d104445ade09
tree89653d78deb1e29e732c98c3ba9a7f331e375e0a
parentf7f5b20ecda64b4562d636ea115561b78b30f1cf
pcie port: define struct PCIEPort/PCIESlot and helper functions

define struct PCIEPort which represents common part
of pci express port.(root, upstream and downstream.)
add a helper function for pcie port which can be used commonly by
root/upstream/downstream port.
define struct PCIESlot which represents common part of
pcie slot.(root and downstream.) and helper functions for it.
helper functions for chassis, slot -> PCIESlot conversion.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Makefile.objs
hw/pcie_port.c [new file with mode: 0644]
hw/pcie_port.h [new file with mode: 0644]
qemu-common.h