pci: introduce a type to store a SBDF
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 4 Dec 2017 10:02:46 +0000 (11:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Dec 2017 10:02:46 +0000 (11:02 +0100)
commit514f58d4468a40b5dd418a5ea1742681930c3f2d
tree6a5e6dd6c15eca6ad22ce163a99fd99356d9d15d
parent8202ebb1124d90f26f47cee78c813d00c935e77b
pci: introduce a type to store a SBDF

That provides direct access to all the members that constitute a SBDF.
The only function switched to use it is hvm_pci_decode_addr, because
it makes following patches simpler.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.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>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/io.c
xen/arch/x86/hvm/ioreq.c
xen/include/asm-x86/hvm/io.h
xen/include/xen/pci.h