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
1a7a242c
Commit
1a7a242c
authored
Feb 11, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Recognize "virtual-console" as input and output console device.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
02fead75
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
arch/sparc64/kernel/setup.c
arch/sparc64/kernel/setup.c
+5
-0
arch/sparc64/prom/console.c
arch/sparc64/prom/console.c
+6
-0
include/asm-sparc/oplib.h
include/asm-sparc/oplib.h
+2
-0
include/asm-sparc64/oplib.h
include/asm-sparc64/oplib.h
+2
-0
No files found.
arch/sparc64/kernel/setup.c
View file @
1a7a242c
...
@@ -405,6 +405,11 @@ static int __init set_preferred_console(void)
...
@@ -405,6 +405,11 @@ static int __init set_preferred_console(void)
serial_console
=
2
;
serial_console
=
2
;
}
else
if
(
idev
==
PROMDEV_IRSC
&&
odev
==
PROMDEV_ORSC
)
{
}
else
if
(
idev
==
PROMDEV_IRSC
&&
odev
==
PROMDEV_ORSC
)
{
serial_console
=
3
;
serial_console
=
3
;
}
else
if
(
idev
==
PROMDEV_IVCONS
&&
odev
==
PROMDEV_OVCONS
)
{
/* sunhv_console_init() doesn't check the serial_console
* value anyways...
*/
serial_console
=
4
;
}
else
{
}
else
{
prom_printf
(
"Inconsistent console: "
prom_printf
(
"Inconsistent console: "
"input %d, output %d
\n
"
,
"input %d, output %d
\n
"
,
...
...
arch/sparc64/prom/console.c
View file @
1a7a242c
...
@@ -102,6 +102,9 @@ prom_query_input_device(void)
...
@@ -102,6 +102,9 @@ prom_query_input_device(void)
if
(
!
strncmp
(
propb
,
"rsc"
,
3
))
if
(
!
strncmp
(
propb
,
"rsc"
,
3
))
return
PROMDEV_IRSC
;
return
PROMDEV_IRSC
;
if
(
!
strncmp
(
propb
,
"virtual-console"
,
3
))
return
PROMDEV_IVCONS
;
if
(
strncmp
(
propb
,
"tty"
,
3
)
||
!
propb
[
3
])
if
(
strncmp
(
propb
,
"tty"
,
3
)
||
!
propb
[
3
])
return
PROMDEV_I_UNK
;
return
PROMDEV_I_UNK
;
...
@@ -143,6 +146,9 @@ prom_query_output_device(void)
...
@@ -143,6 +146,9 @@ prom_query_output_device(void)
if
(
!
strncmp
(
propb
,
"rsc"
,
3
))
if
(
!
strncmp
(
propb
,
"rsc"
,
3
))
return
PROMDEV_ORSC
;
return
PROMDEV_ORSC
;
if
(
!
strncmp
(
propb
,
"virtual-console"
,
3
))
return
PROMDEV_OVCONS
;
if
(
strncmp
(
propb
,
"tty"
,
3
)
||
!
propb
[
3
])
if
(
strncmp
(
propb
,
"tty"
,
3
)
||
!
propb
[
3
])
return
PROMDEV_O_UNK
;
return
PROMDEV_O_UNK
;
...
...
include/asm-sparc/oplib.h
View file @
1a7a242c
...
@@ -165,6 +165,7 @@ enum prom_input_device {
...
@@ -165,6 +165,7 @@ enum prom_input_device {
PROMDEV_ITTYA
,
/* input from ttya */
PROMDEV_ITTYA
,
/* input from ttya */
PROMDEV_ITTYB
,
/* input from ttyb */
PROMDEV_ITTYB
,
/* input from ttyb */
PROMDEV_IRSC
,
/* input from rsc */
PROMDEV_IRSC
,
/* input from rsc */
PROMDEV_IVCONS
,
/* input from virtual-console */
PROMDEV_I_UNK
,
PROMDEV_I_UNK
,
};
};
...
@@ -177,6 +178,7 @@ enum prom_output_device {
...
@@ -177,6 +178,7 @@ enum prom_output_device {
PROMDEV_OTTYA
,
/* to ttya */
PROMDEV_OTTYA
,
/* to ttya */
PROMDEV_OTTYB
,
/* to ttyb */
PROMDEV_OTTYB
,
/* to ttyb */
PROMDEV_ORSC
,
/* to rsc */
PROMDEV_ORSC
,
/* to rsc */
PROMDEV_OVCONS
,
/* to virtual-console */
PROMDEV_O_UNK
,
PROMDEV_O_UNK
,
};
};
...
...
include/asm-sparc64/oplib.h
View file @
1a7a242c
...
@@ -167,6 +167,7 @@ enum prom_input_device {
...
@@ -167,6 +167,7 @@ enum prom_input_device {
PROMDEV_ITTYA
,
/* input from ttya */
PROMDEV_ITTYA
,
/* input from ttya */
PROMDEV_ITTYB
,
/* input from ttyb */
PROMDEV_ITTYB
,
/* input from ttyb */
PROMDEV_IRSC
,
/* input from rsc */
PROMDEV_IRSC
,
/* input from rsc */
PROMDEV_IVCONS
,
/* input from virtual-console */
PROMDEV_I_UNK
,
PROMDEV_I_UNK
,
};
};
...
@@ -179,6 +180,7 @@ enum prom_output_device {
...
@@ -179,6 +180,7 @@ enum prom_output_device {
PROMDEV_OTTYA
,
/* to ttya */
PROMDEV_OTTYA
,
/* to ttya */
PROMDEV_OTTYB
,
/* to ttyb */
PROMDEV_OTTYB
,
/* to ttyb */
PROMDEV_ORSC
,
/* to rsc */
PROMDEV_ORSC
,
/* to rsc */
PROMDEV_OVCONS
,
/* to virtual-console */
PROMDEV_O_UNK
,
PROMDEV_O_UNK
,
};
};
...
...
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