Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d14d6577
Commit
d14d6577
authored
Dec 03, 2008
by
Joerg Roedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VT-d: adapt domain iova_to_phys function for IOMMU API
Signed-off-by:
Joerg Roedel
<
joerg.roedel@amd.com
>
parent
dde57a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/pci/intel-iommu.c
drivers/pci/intel-iommu.c
+4
-3
include/linux/intel-iommu.h
include/linux/intel-iommu.h
+0
-2
No files found.
drivers/pci/intel-iommu.c
View file @
d14d6577
...
@@ -3106,15 +3106,16 @@ int intel_iommu_found(void)
...
@@ -3106,15 +3106,16 @@ int intel_iommu_found(void)
}
}
EXPORT_SYMBOL_GPL
(
intel_iommu_found
);
EXPORT_SYMBOL_GPL
(
intel_iommu_found
);
u64
intel_iommu_iova_to_phys
(
struct
dmar_domain
*
domain
,
u64
iova
)
static
phys_addr_t
intel_iommu_iova_to_phys
(
struct
iommu_domain
*
domain
,
unsigned
long
iova
)
{
{
struct
dmar_domain
*
dmar_domain
=
domain
->
priv
;
struct
dma_pte
*
pte
;
struct
dma_pte
*
pte
;
u64
phys
=
0
;
u64
phys
=
0
;
pte
=
addr_to_dma_pte
(
domain
,
iova
);
pte
=
addr_to_dma_pte
(
d
mar_d
omain
,
iova
);
if
(
pte
)
if
(
pte
)
phys
=
dma_pte_addr
(
pte
);
phys
=
dma_pte_addr
(
pte
);
return
phys
;
return
phys
;
}
}
EXPORT_SYMBOL_GPL
(
intel_iommu_iova_to_phys
);
include/linux/intel-iommu.h
View file @
d14d6577
...
@@ -330,8 +330,6 @@ extern int qi_flush_iotlb(struct intel_iommu *iommu, u16 did, u64 addr,
...
@@ -330,8 +330,6 @@ extern int qi_flush_iotlb(struct intel_iommu *iommu, u16 did, u64 addr,
extern
void
qi_submit_sync
(
struct
qi_desc
*
desc
,
struct
intel_iommu
*
iommu
);
extern
void
qi_submit_sync
(
struct
qi_desc
*
desc
,
struct
intel_iommu
*
iommu
);
u64
intel_iommu_iova_to_phys
(
struct
dmar_domain
*
domain
,
u64
iova
);
#ifdef CONFIG_DMAR
#ifdef CONFIG_DMAR
int
intel_iommu_found
(
void
);
int
intel_iommu_found
(
void
);
#else
/* CONFIG_DMAR */
#else
/* CONFIG_DMAR */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment