]> git.proxmox.com Git - qemu.git/commit - qemu-common.h
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)
commitbc20ba98b1a04c9e60de10f2a5626af2c528422b
tree89653d78deb1e29e732c98c3ba9a7f331e375e0a
parent0208def1cadd4f72f862e62548c2af268a543b20
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