pcie: Create enums for link speed and width
commitd96a0ac71c7a2332a00da1a496eae6bcb9948502
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 12 Dec 2018 19:38:41 +0000 (12 12:38 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 19 Dec 2018 21:48:16 +0000 (19 16:48 -0500)
tree839c59263fa3eb4120a66d81f3e5e424c954f292
parente7176cdbe4d5e4b68459af741d6493886e4dad29
pcie: Create enums for link speed and width

In preparation for reporting higher virtual link speeds and widths,
create enums and macros to help us manage them.

Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Tested-by: Geoffrey McRae <geoff@hostfission.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie.c
hw/vfio/pci.c
include/hw/pci/pcie_regs.h