|
|
1.1 root 1: /*
2: * Copyright (C) 2006-2009, 2011 Free Software Foundation
3: *
4: * This program is free software ; you can redistribute it and/or modify
5: * it under the terms of the GNU General Public License as published by
6: * the Free Software Foundation ; either version 2 of the License, or
7: * (at your option) any later version.
8: *
9: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY ; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with the program ; if not, write to the Free Software
16: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17: */
18:
19: #ifndef XEN_CONSOLE_H
20: #define XEN_CONSOLE_H
21: #include <machine/xen.h>
22: #include <string.h>
23:
24: #include <device/cons.h>
25:
26: #define hyp_console_write(str, len) hyp_console_io (CONSOLEIO_write, (len), kvtolin(str))
27:
28: #define hyp_console_put(str) ({ \
29: const char *__str = (void*) (str); \
30: hyp_console_write (__str, strlen (__str)); \
31: })
32:
33: extern void hyp_console_init(void);
34:
35: extern int hypcnputc(dev_t dev, int c);
36: extern int hypcngetc(dev_t dev, int wait);
37: extern int hypcnprobe(struct consdev *cp);
38: extern int hypcninit(struct consdev *cp);
39:
40: #endif /* XEN_CONSOLE_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.