|
@@ -21,6 +21,7 @@
|
|
|
#include <asm/machvec.h>
|
|
|
#include <asm/pgtable.h>
|
|
|
#include <asm/sal.h>
|
|
|
+#include <asm/hpsim.h>
|
|
|
|
|
|
#include "hpsim_ssc.h"
|
|
|
|
|
@@ -28,7 +29,7 @@ static int simcons_init (struct console *, char *);
|
|
|
static void simcons_write (struct console *, const char *, unsigned);
|
|
|
static struct tty_driver *simcons_console_device (struct console *, int *);
|
|
|
|
|
|
-struct console hpsim_cons = {
|
|
|
+static struct console hpsim_cons = {
|
|
|
.name = "simcons",
|
|
|
.write = simcons_write,
|
|
|
.device = simcons_console_device,
|
|
@@ -62,3 +63,15 @@ static struct tty_driver *simcons_console_device (struct console *c, int *index)
|
|
|
*index = c->index;
|
|
|
return hp_simserial_driver;
|
|
|
}
|
|
|
+
|
|
|
+int simcons_register(void)
|
|
|
+{
|
|
|
+ if (!ia64_platform_is("hpsim"))
|
|
|
+ return 1;
|
|
|
+
|
|
|
+ if (hpsim_cons.flags & CON_ENABLED)
|
|
|
+ return 1;
|
|
|
+
|
|
|
+ register_console(&hpsim_cons);
|
|
|
+ return 0;
|
|
|
+}
|