diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2019-08-12 20:30:37 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-08-16 16:40:23 +0300 |
commit | 72583084e3fe333c27bc37527efe455d27eaf0b1 (patch) | |
tree | b0689f20f0a5708327628fad0cb788c51389f82c /drivers/pci/search.c | |
parent | 0afea3814358c97e2964710ba16fbb0b54ceda0e (diff) | |
download | linux-72583084e3fe333c27bc37527efe455d27eaf0b1.tar.xz |
PCI/P2PDMA: Add constants for map type results to upstream_bridge_distance()
Add constant flags to indicate how two devices will be mapped or if they
are unsupported. upstream_bridge_distance() will now return the
mapping type and the distance in a passed-by-reference argument.
This helps annotate the code better, but the main reason is so we can use
the information to store the required mapping method in an xarray.
Link: https://lore.kernel.org/r/20190730163545.4915-4-logang@deltatee.com
Link: https://lore.kernel.org/r/20190812173048.9186-4-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/pci/search.c')
0 files changed, 0 insertions, 0 deletions