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
cd8d109f
Commit
cd8d109f
authored
Jan 07, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SUNZILOG]: Adapt sun4u get_zs for Peters new scanning scheme.
parent
060c05b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
78 deletions
+56
-78
drivers/serial/sunzilog.c
drivers/serial/sunzilog.c
+56
-78
No files found.
drivers/serial/sunzilog.c
View file @
cd8d109f
...
...
@@ -1036,22 +1036,10 @@ static void __init sunzilog_alloc_tables(void)
/* We used to attempt to use the address property of the Zilog device node
* but that totally is not necessary on sparc64.
*/
static
struct
zilog_layout
*
__init
get_zs_sun4u
(
int
chip
,
int
node
)
static
struct
zilog_layout
*
__init
get_zs_sun4u
(
int
chip
,
int
zs
node
)
{
unsigned
long
mapped_addr
=
0xdeadbeefUL
;
unsigned
long
mapped_addr
;
unsigned
int
sun4u_ino
;
int
zsnode
,
seen
;
zsnode
=
node
;
seen
=
0
;
while
(
zsnode
)
{
int
slave
;
zsnode
=
prom_searchsiblings
(
zsnode
,
"zs"
);
if
(
zsnode
==
0
||
zsnode
==
-
1
)
break
;
slave
=
prom_getintdefault
(
zsnode
,
"slave"
,
-
1
);
if
((
slave
==
chip
)
||
(
seen
==
chip
))
{
struct
sbus_bus
*
sbus
=
NULL
;
struct
sbus_dev
*
sdev
=
NULL
;
int
err
;
...
...
@@ -1111,16 +1099,6 @@ static struct zilog_layout * __init get_zs_sun4u(int chip, int node)
zilog_irq
=
sbus_build_irq
(
sbus_root
,
sun4u_ino
);
}
}
break
;
}
zsnode
=
prom_getsibling
(
zsnode
);
seen
++
;
}
if
(
zsnode
==
0
||
zsnode
==
-
1
)
{
prom_printf
(
"SunZilog: Cannot find Zilog %d in get_zs_sun4u.
\n
"
,
chip
);
prom_halt
();
}
return
(
struct
zilog_layout
*
)
mapped_addr
;
}
...
...
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