summaryrefslogtreecommitdiff
path: root/include/linux/dmar.h
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2014-02-19 10:07:24 +0400
committerJoerg Roedel <joro@8bytes.org>2014-03-04 20:51:00 +0400
commitbb3a6b7845851d23cb826040b4c3c9c294e7cfb4 (patch)
treedc1b19ef3e638e29ad73b00442a55b6800a92a40 /include/linux/dmar.h
parent7e7dfab71af851a7350ab47b1c01a2f84deacc12 (diff)
downloadlinux-bb3a6b7845851d23cb826040b4c3c9c294e7cfb4.tar.xz
iommu/vt-d: Factor out dmar_alloc_dev_scope() for later reuse
Factor out function dmar_alloc_dev_scope() from dmar_parse_dev_scope() for later reuse. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'include/linux/dmar.h')
-rw-r--r--include/linux/dmar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h
index eccb0c0c6cf6..1b08ce80bfbf 100644
--- a/include/linux/dmar.h
+++ b/include/linux/dmar.h
@@ -69,6 +69,7 @@ extern int dmar_table_init(void);
extern int dmar_dev_scope_init(void);
extern int dmar_parse_dev_scope(void *start, void *end, int *cnt,
struct pci_dev ***devices, u16 segment);
+extern void *dmar_alloc_dev_scope(void *start, void *end, int *cnt);
extern void dmar_free_dev_scope(struct pci_dev ***devices, int *cnt);
/* Intel IOMMU detection */