]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Recognize "virtual-console" as input and output console device.
authorDavid S. Miller <davem@sunset.davemloft.net>
Sun, 12 Feb 2006 07:24:30 +0000 (23:24 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:12:28 +0000 (01:12 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/setup.c
arch/sparc64/prom/console.c
include/asm-sparc/oplib.h
include/asm-sparc64/oplib.h

index ca75f3b26a3715ecff3ac4cfc6986c3fb728801c..4f253a0755b0b1bfe83b19c5ef30d8fdbe51e2aa 100644 (file)
@@ -405,6 +405,11 @@ static int __init set_preferred_console(void)
                serial_console = 2;
        } else if (idev == PROMDEV_IRSC && odev == PROMDEV_ORSC) {
                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 {
                prom_printf("Inconsistent console: "
                            "input %d, output %d\n",
index ac6d035dd150e6c8cbe2f7747c2e6873dc886fe6..7c25c54cefdc77e04ef4ea2470bff043195654fa 100644 (file)
@@ -102,6 +102,9 @@ prom_query_input_device(void)
        if (!strncmp (propb, "rsc", 3))
                return PROMDEV_IRSC;
 
+       if (!strncmp (propb, "virtual-console", 3))
+               return PROMDEV_IVCONS;
+
        if (strncmp (propb, "tty", 3) || !propb[3])
                return PROMDEV_I_UNK;
 
@@ -143,6 +146,9 @@ prom_query_output_device(void)
        if (!strncmp (propb, "rsc", 3))
                return PROMDEV_ORSC;
 
+       if (!strncmp (propb, "virtual-console", 3))
+               return PROMDEV_OVCONS;
+
        if (strncmp (propb, "tty", 3) || !propb[3])
                return PROMDEV_O_UNK;
 
index d0d76b30eb4cc993a1aa39e313bebe90fffef2fc..f283f8aaf6a95eb230f0c675441ac35d8e57daef 100644 (file)
@@ -165,6 +165,7 @@ enum prom_input_device {
        PROMDEV_ITTYA,                  /* input from ttya */
        PROMDEV_ITTYB,                  /* input from ttyb */
        PROMDEV_IRSC,                   /* input from rsc */
+       PROMDEV_IVCONS,                 /* input from virtual-console */
        PROMDEV_I_UNK,
 };
 
@@ -177,6 +178,7 @@ enum prom_output_device {
        PROMDEV_OTTYA,                  /* to ttya */
        PROMDEV_OTTYB,                  /* to ttyb */
        PROMDEV_ORSC,                   /* to rsc */
+       PROMDEV_OVCONS,                 /* to virtual-console */
        PROMDEV_O_UNK,
 };
 
index ce5066ef2dd0eb38ae3110840d67e6a9680ef573..0631d13475f2dfc3e56a438252dd5e27c40eed71 100644 (file)
@@ -167,6 +167,7 @@ enum prom_input_device {
        PROMDEV_ITTYA,                  /* input from ttya */
        PROMDEV_ITTYB,                  /* input from ttyb */
        PROMDEV_IRSC,                   /* input from rsc */
+       PROMDEV_IVCONS,                 /* input from virtual-console */
        PROMDEV_I_UNK,
 };
 
@@ -179,6 +180,7 @@ enum prom_output_device {
        PROMDEV_OTTYA,                  /* to ttya */
        PROMDEV_OTTYB,                  /* to ttyb */
        PROMDEV_ORSC,                   /* to rsc */
+       PROMDEV_OVCONS,                 /* to virtual-console */
        PROMDEV_O_UNK,
 };