aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-12 02:24:30 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:12:28 -0500
commit1a7a242c898dd131f2df005c492e9b44fb8900e0 (patch)
tree5f00961b9c6539951adda7bfaafda030cea39c38
parent02fead75055246d01af56a45a9d1b311d506da3e (diff)
[SPARC64]: Recognize "virtual-console" as input and output console device.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc64/kernel/setup.c5
-rw-r--r--arch/sparc64/prom/console.c6
-rw-r--r--include/asm-sparc/oplib.h2
-rw-r--r--include/asm-sparc64/oplib.h2
4 files changed, 15 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c
index ca75f3b26a37..4f253a0755b0 100644
--- a/arch/sparc64/kernel/setup.c
+++ b/arch/sparc64/kernel/setup.c
@@ -405,6 +405,11 @@ static int __init set_preferred_console(void)
405 serial_console = 2; 405 serial_console = 2;
406 } else if (idev == PROMDEV_IRSC && odev == PROMDEV_ORSC) { 406 } else if (idev == PROMDEV_IRSC && odev == PROMDEV_ORSC) {
407 serial_console = 3; 407 serial_console = 3;
408 } else if (idev == PROMDEV_IVCONS && odev == PROMDEV_OVCONS) {
409 /* sunhv_console_init() doesn't check the serial_console
410 * value anyways...
411 */
412 serial_console = 4;
408 } else { 413 } else {
409 prom_printf("Inconsistent console: " 414 prom_printf("Inconsistent console: "
410 "input %d, output %d\n", 415 "input %d, output %d\n",
diff --git a/arch/sparc64/prom/console.c b/arch/sparc64/prom/console.c
index ac6d035dd150..7c25c54cefdc 100644
--- a/arch/sparc64/prom/console.c
+++ b/arch/sparc64/prom/console.c
@@ -102,6 +102,9 @@ prom_query_input_device(void)
102 if (!strncmp (propb, "rsc", 3)) 102 if (!strncmp (propb, "rsc", 3))
103 return PROMDEV_IRSC; 103 return PROMDEV_IRSC;
104 104
105 if (!strncmp (propb, "virtual-console", 3))
106 return PROMDEV_IVCONS;
107
105 if (strncmp (propb, "tty", 3) || !propb[3]) 108 if (strncmp (propb, "tty", 3) || !propb[3])
106 return PROMDEV_I_UNK; 109 return PROMDEV_I_UNK;
107 110
@@ -143,6 +146,9 @@ prom_query_output_device(void)
143 if (!strncmp (propb, "rsc", 3)) 146 if (!strncmp (propb, "rsc", 3))
144 return PROMDEV_ORSC; 147 return PROMDEV_ORSC;
145 148
149 if (!strncmp (propb, "virtual-console", 3))
150 return PROMDEV_OVCONS;
151
146 if (strncmp (propb, "tty", 3) || !propb[3]) 152 if (strncmp (propb, "tty", 3) || !propb[3])
147 return PROMDEV_O_UNK; 153 return PROMDEV_O_UNK;
148 154
diff --git a/include/asm-sparc/oplib.h b/include/asm-sparc/oplib.h
index d0d76b30eb4c..f283f8aaf6a9 100644
--- a/include/asm-sparc/oplib.h
+++ b/include/asm-sparc/oplib.h
@@ -165,6 +165,7 @@ enum prom_input_device {
165 PROMDEV_ITTYA, /* input from ttya */ 165 PROMDEV_ITTYA, /* input from ttya */
166 PROMDEV_ITTYB, /* input from ttyb */ 166 PROMDEV_ITTYB, /* input from ttyb */
167 PROMDEV_IRSC, /* input from rsc */ 167 PROMDEV_IRSC, /* input from rsc */
168 PROMDEV_IVCONS, /* input from virtual-console */
168 PROMDEV_I_UNK, 169 PROMDEV_I_UNK,
169}; 170};
170 171
@@ -177,6 +178,7 @@ enum prom_output_device {
177 PROMDEV_OTTYA, /* to ttya */ 178 PROMDEV_OTTYA, /* to ttya */
178 PROMDEV_OTTYB, /* to ttyb */ 179 PROMDEV_OTTYB, /* to ttyb */
179 PROMDEV_ORSC, /* to rsc */ 180 PROMDEV_ORSC, /* to rsc */
181 PROMDEV_OVCONS, /* to virtual-console */
180 PROMDEV_O_UNK, 182 PROMDEV_O_UNK,
181}; 183};
182 184
diff --git a/include/asm-sparc64/oplib.h b/include/asm-sparc64/oplib.h
index ce5066ef2dd0..0631d13475f2 100644
--- a/include/asm-sparc64/oplib.h
+++ b/include/asm-sparc64/oplib.h
@@ -167,6 +167,7 @@ enum prom_input_device {
167 PROMDEV_ITTYA, /* input from ttya */ 167 PROMDEV_ITTYA, /* input from ttya */
168 PROMDEV_ITTYB, /* input from ttyb */ 168 PROMDEV_ITTYB, /* input from ttyb */
169 PROMDEV_IRSC, /* input from rsc */ 169 PROMDEV_IRSC, /* input from rsc */
170 PROMDEV_IVCONS, /* input from virtual-console */
170 PROMDEV_I_UNK, 171 PROMDEV_I_UNK,
171}; 172};
172 173
@@ -179,6 +180,7 @@ enum prom_output_device {
179 PROMDEV_OTTYA, /* to ttya */ 180 PROMDEV_OTTYA, /* to ttya */
180 PROMDEV_OTTYB, /* to ttyb */ 181 PROMDEV_OTTYB, /* to ttyb */
181 PROMDEV_ORSC, /* to rsc */ 182 PROMDEV_ORSC, /* to rsc */
183 PROMDEV_OVCONS, /* to virtual-console */
182 PROMDEV_O_UNK, 184 PROMDEV_O_UNK,
183}; 185};
184 186