pcie: Add endpoint capability initialization wrapper
commit6214e73cc5b75a4f8d89a70d71727edfa47a81b3
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 19 Mar 2013 18:11:24 +0000 (19 12:11 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Mar 2013 19:02:19 +0000 (26 21:02 +0200)
tree5821b19c1967b319d287c396045171034887c9eb
parenta5519b42cfd6c00e9f8b31c5aad7682e7a9f1181
pcie: Add endpoint capability initialization wrapper

Fix the awkward API of mangling the caller specified PCIe type and
just provide an interface to initialize an endpoint device.  This
will pick either a regular endpoint or integrated endpoint based on
the bus and return pcie_cap_init to doing exactly what is asked.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie.c
hw/pci/pcie.h
hw/usb/hcd-xhci.c