summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSrinath Mannam <srinath.mannam@broadcom.com>2019-05-03 19:35:32 +0530
committerBjorn Helgaas <bhelgaas@google.com>2019-05-06 16:02:47 -0500
commite80a91ad302b3b66822756afc61f9f9c1658b9c9 (patch)
tree8bbad2f4880f11f64b83655efd49166c2e405e1a /include
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
downloadlinux-stable-e80a91ad302b3b66822756afc61f9f9c1658b9c9.tar.gz
linux-stable-e80a91ad302b3b66822756afc61f9f9c1658b9c9.tar.bz2
linux-stable-e80a91ad302b3b66822756afc61f9f9c1658b9c9.zip
PCI: Add dma_ranges window list
Add a dma_ranges field in PCI host bridge structure to hold resource entries list of memory regions in sorted order representing memory ranges that can be accessed through DMA transactions. Based-on-a-patch-by: Oza Pawandeep <oza.oza@broadcom.com> Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com> [lorenzo.pieralisi@arm.com: updated commit log] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Oza Pawandeep <poza@codeaurora.org> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 77448215ef5b..bba0a29a5066 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -490,6 +490,7 @@ struct pci_host_bridge {
void *sysdata;
int busnr;
struct list_head windows; /* resource_entry */
+ struct list_head dma_ranges; /* dma ranges resource list */
u8 (*swizzle_irq)(struct pci_dev *, u8 *); /* Platform IRQ swizzler */
int (*map_irq)(const struct pci_dev *, u8, u8);
void (*release_fn)(struct pci_host_bridge *);