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
ab636481
Commit
ab636481
authored
Sep 05, 2014
by
Joerg Roedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iommu/amd: Convert to iommu_capable() API function
Signed-off-by:
Joerg Roedel
<
jroedel@suse.de
>
parent
3c0e0ca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu.c
+5
-6
No files found.
drivers/iommu/amd_iommu.c
View file @
ab636481
...
...
@@ -3384,20 +3384,20 @@ static phys_addr_t amd_iommu_iova_to_phys(struct iommu_domain *dom,
return
paddr
;
}
static
int
amd_iommu_domain_has_cap
(
struct
iommu_domain
*
domain
,
unsigned
long
cap
)
static
bool
amd_iommu_capable
(
enum
iommu_cap
cap
)
{
switch
(
cap
)
{
case
IOMMU_CAP_CACHE_COHERENCY
:
return
1
;
return
true
;
case
IOMMU_CAP_INTR_REMAP
:
return
irq_remapping_enabled
;
return
(
irq_remapping_enabled
==
1
)
;
}
return
0
;
return
false
;
}
static
const
struct
iommu_ops
amd_iommu_ops
=
{
.
capable
=
amd_iommu_capable
,
.
domain_init
=
amd_iommu_domain_init
,
.
domain_destroy
=
amd_iommu_domain_destroy
,
.
attach_dev
=
amd_iommu_attach_device
,
...
...
@@ -3405,7 +3405,6 @@ static const struct iommu_ops amd_iommu_ops = {
.
map
=
amd_iommu_map
,
.
unmap
=
amd_iommu_unmap
,
.
iova_to_phys
=
amd_iommu_iova_to_phys
,
.
domain_has_cap
=
amd_iommu_domain_has_cap
,
.
pgsize_bitmap
=
AMD_IOMMU_PGSIZES
,
};
...
...
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