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
6f64af39
Commit
6f64af39
authored
Jan 13, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Need some more SPARC32 ifdeffing in here.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
b12d2df8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/sbus/sbus.c
drivers/sbus/sbus.c
+5
-3
No files found.
drivers/sbus/sbus.c
View file @
6f64af39
...
...
@@ -231,18 +231,20 @@ static void __init sbus_bus_ranges_init(int parent_node, struct sbus_bus *sbus)
return
;
}
sbus
->
num_sbus_ranges
=
len
/
sizeof
(
struct
linux_prom_ranges
);
#ifdef CONFIG_SPARC32
if
(
sparc_cpu_model
==
sun4d
)
{
struct
linux_prom_ranges
iounit_ranges
[
PROMREG_MAX
];
int
num_iounit_ranges
;
len
=
prom_getproperty
(
parent_node
,
"ranges"
,
(
char
*
)
iounit_ranges
,
sizeof
(
iounit_ranges
));
len
=
prom_getproperty
(
parent_node
,
"ranges"
,
(
char
*
)
iounit_ranges
,
sizeof
(
iounit_ranges
));
if
(
len
!=
-
1
)
{
num_iounit_ranges
=
(
len
/
sizeof
(
struct
linux_prom_ranges
));
prom_adjust_ranges
(
sbus
->
sbus_ranges
,
sbus
->
num_sbus_ranges
,
iounit_ranges
,
num_iounit_ranges
);
}
}
#endif
}
static
void
__init
__apply_ranges_to_regs
(
struct
linux_prom_ranges
*
ranges
,
...
...
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