summaryrefslogtreecommitdiff
path: root/xen
diff options
context:
space:
mode:
Diffstat (limited to 'xen')
-rw-r--r--xen/console.c3
-rw-r--r--xen/console.h7
2 files changed, 7 insertions, 3 deletions
diff --git a/xen/console.c b/xen/console.c
index 9798ec0..0f8b828 100644
--- a/xen/console.c
+++ b/xen/console.c
@@ -216,9 +216,6 @@ int hypcnclose(int dev, int flag)
int hypcnprobe(struct consdev *cp)
{
- struct xencons_interface *my_console;
- my_console = (void*) mfn_to_kv(boot_info.console_mfn);
-
cp->cn_dev = makedev(0, 0);
cp->cn_pri = CN_INTERNAL;
return 0;
diff --git a/xen/console.h b/xen/console.h
index fa13dc0..172abb8 100644
--- a/xen/console.h
+++ b/xen/console.h
@@ -21,6 +21,8 @@
#include <machine/xen.h>
#include <string.h>
+#include <device/cons.h>
+
#define hyp_console_write(str, len) hyp_console_io (CONSOLEIO_write, (len), kvtolin(str))
#define hyp_console_put(str) ({ \
@@ -30,4 +32,9 @@
extern void hyp_console_init(void);
+extern int hypcnputc(dev_t dev, int c);
+extern int hypcngetc(dev_t dev, int wait);
+extern int hypcnprobe(struct consdev *cp);
+extern int hypcninit(struct consdev *cp);
+
#endif /* XEN_CONSOLE_H */