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
Kirill Smelkov
linux
Commits
8aef7278
Commit
8aef7278
authored
Sep 01, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pci_sun4v: Use of_get_property().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
463801b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
arch/sparc64/kernel/pci_sun4v.c
arch/sparc64/kernel/pci_sun4v.c
+7
-14
No files found.
arch/sparc64/kernel/pci_sun4v.c
View file @
8aef7278
...
@@ -587,22 +587,15 @@ static unsigned long __init probe_existing_entries(struct pci_pbm_info *pbm,
...
@@ -587,22 +587,15 @@ static unsigned long __init probe_existing_entries(struct pci_pbm_info *pbm,
static
int
__init
pci_sun4v_iommu_init
(
struct
pci_pbm_info
*
pbm
)
static
int
__init
pci_sun4v_iommu_init
(
struct
pci_pbm_info
*
pbm
)
{
{
static
const
u32
vdma_default
[]
=
{
0x80000000
,
0x80000000
};
struct
iommu
*
iommu
=
pbm
->
iommu
;
struct
iommu
*
iommu
=
pbm
->
iommu
;
struct
property
*
prop
;
unsigned
long
num_tsb_entries
,
sz
,
tsbsize
;
unsigned
long
num_tsb_entries
,
sz
,
tsbsize
;
u32
vdma
[
2
],
dma_mask
,
dma_offset
;
u32
dma_mask
,
dma_offset
;
const
u32
*
vdma
;
prop
=
of_find_property
(
pbm
->
prom_node
,
"virtual-dma"
,
NULL
);
if
(
prop
)
{
vdma
=
of_get_property
(
pbm
->
prom_node
,
"virtual-dma"
,
NULL
);
u32
*
val
=
prop
->
value
;
if
(
!
vdma
)
vdma
=
vdma_default
;
vdma
[
0
]
=
val
[
0
];
vdma
[
1
]
=
val
[
1
];
}
else
{
/* No property, use default values. */
vdma
[
0
]
=
0x80000000
;
vdma
[
1
]
=
0x80000000
;
}
if
((
vdma
[
0
]
|
vdma
[
1
])
&
~
IO_PAGE_MASK
)
{
if
((
vdma
[
0
]
|
vdma
[
1
])
&
~
IO_PAGE_MASK
)
{
printk
(
KERN_ERR
PFX
"Strange virtual-dma[%08x:%08x].
\n
"
,
printk
(
KERN_ERR
PFX
"Strange virtual-dma[%08x:%08x].
\n
"
,
...
...
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