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
24278a24
Commit
24278a24
authored
Sep 05, 2014
by
Joerg Roedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iommu: Remove iommu_domain_has_cap() API function
Signed-off-by:
Joerg Roedel
<
jroedel@suse.de
>
parent
6f952710
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
drivers/iommu/iommu.c
drivers/iommu/iommu.c
+0
-13
include/linux/iommu.h
include/linux/iommu.h
+0
-11
No files found.
drivers/iommu/iommu.c
View file @
24278a24
...
...
@@ -956,19 +956,6 @@ phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova)
}
EXPORT_SYMBOL_GPL
(
iommu_iova_to_phys
);
int
iommu_domain_has_cap
(
struct
iommu_domain
*
domain
,
enum
iommu_cap
cap
)
{
if
(
domain
->
ops
->
domain_has_cap
!=
NULL
)
return
domain
->
ops
->
domain_has_cap
(
domain
,
cap
);
if
(
domain
->
ops
->
capable
!=
NULL
)
return
domain
->
ops
->
capable
(
cap
);
return
0
;
}
EXPORT_SYMBOL_GPL
(
iommu_domain_has_cap
);
static
size_t
iommu_pgsize
(
struct
iommu_domain
*
domain
,
unsigned
long
addr_merge
,
size_t
size
)
{
...
...
include/linux/iommu.h
View file @
24278a24
...
...
@@ -97,7 +97,6 @@ enum iommu_attr {
* @map: map a physically contiguous memory region to an iommu domain
* @unmap: unmap a physically contiguous memory region from an iommu domain
* @iova_to_phys: translate iova to physical address
* @domain_has_cap: domain capabilities query
* @add_device: add device to iommu grouping
* @remove_device: remove device from iommu grouping
* @domain_get_attr: Query domain attributes
...
...
@@ -115,8 +114,6 @@ struct iommu_ops {
size_t
(
*
unmap
)(
struct
iommu_domain
*
domain
,
unsigned
long
iova
,
size_t
size
);
phys_addr_t
(
*
iova_to_phys
)(
struct
iommu_domain
*
domain
,
dma_addr_t
iova
);
int
(
*
domain_has_cap
)(
struct
iommu_domain
*
domain
,
unsigned
long
cap
);
int
(
*
add_device
)(
struct
device
*
dev
);
void
(
*
remove_device
)(
struct
device
*
dev
);
int
(
*
device_group
)(
struct
device
*
dev
,
unsigned
int
*
groupid
);
...
...
@@ -159,8 +156,6 @@ extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
extern
size_t
iommu_unmap
(
struct
iommu_domain
*
domain
,
unsigned
long
iova
,
size_t
size
);
extern
phys_addr_t
iommu_iova_to_phys
(
struct
iommu_domain
*
domain
,
dma_addr_t
iova
);
extern
int
iommu_domain_has_cap
(
struct
iommu_domain
*
domain
,
enum
iommu_cap
cap
);
extern
void
iommu_set_fault_handler
(
struct
iommu_domain
*
domain
,
iommu_fault_handler_t
handler
,
void
*
token
);
...
...
@@ -314,12 +309,6 @@ static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_ad
return
0
;
}
static
inline
int
iommu_domain_has_cap
(
struct
iommu_domain
*
domain
,
enum
iommu_cap
cap
)
{
return
0
;
}
static
inline
void
iommu_set_fault_handler
(
struct
iommu_domain
*
domain
,
iommu_fault_handler_t
handler
,
void
*
token
)
{
...
...
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