Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a8bcbb0d
Commit
a8bcbb0d
authored
Dec 03, 2008
by
Joerg Roedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VT-d: register functions for the IOMMU API
Signed-off-by:
Joerg Roedel
<
joerg.roedel@amd.com
>
parent
d14d6577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/pci/intel-iommu.c
drivers/pci/intel-iommu.c
+15
-0
No files found.
drivers/pci/intel-iommu.c
View file @
a8bcbb0d
...
...
@@ -277,6 +277,8 @@ static int intel_iommu_strict;
static
DEFINE_SPINLOCK
(
device_domain_lock
);
static
LIST_HEAD
(
device_domain_list
);
static
struct
iommu_ops
intel_iommu_ops
;
static
int
__init
intel_iommu_setup
(
char
*
str
)
{
if
(
!
str
)
...
...
@@ -2729,6 +2731,9 @@ int __init intel_iommu_init(void)
init_timer
(
&
unmap_timer
);
force_iommu
=
1
;
dma_ops
=
&
intel_dma_ops
;
register_iommu
(
&
intel_iommu_ops
);
return
0
;
}
...
...
@@ -3119,3 +3124,13 @@ static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain,
return
phys
;
}
static
struct
iommu_ops
intel_iommu_ops
=
{
.
domain_init
=
intel_iommu_domain_init
,
.
domain_destroy
=
intel_iommu_domain_destroy
,
.
attach_dev
=
intel_iommu_attach_device
,
.
detach_dev
=
intel_iommu_detach_device
,
.
map
=
intel_iommu_map_range
,
.
unmap
=
intel_iommu_unmap_range
,
.
iova_to_phys
=
intel_iommu_iova_to_phys
,
};
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