pci: introduce a pci_sbdf_t field to pci_dev
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 11 Jun 2019 15:17:38 +0000 (17:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Jun 2019 15:17:38 +0000 (17:17 +0200)
commita192d7af8f20ca40197337f4278ed167afab9044
treee7c67c0902d60d78bf756dbd58b03176e3375587
parent016b1efb590b12402baefb69f2294d43b54e9f38
pci: introduce a pci_sbdf_t field to pci_dev

And use an union with the current seg, bus and devfn fields to make
fields point to the same underlying data.

No functional change.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/vpci/header.c
xen/include/xen/pci.h