diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-24 10:52:10 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-24 10:52:10 +0100 |
commit | 70f46c304582d9671ca3e5f6843e8edbd662fee8 (patch) | |
tree | 55acc8264e265f4d374078254cf257e9ee8370fa /extras/mini-os/include/console.h | |
parent | c7b965a01c79f34586562d1e2b8eda2c00449bb2 (diff) | |
download | xen-70f46c304582d9671ca3e5f6843e8edbd662fee8.tar.gz xen-70f46c304582d9671ca3e5f6843e8edbd662fee8.tar.bz2 xen-70f46c304582d9671ca3e5f6843e8edbd662fee8.zip |
The patch removes old Xenbus files, fixes 0 length mmu_updates table bug
(bugfix by Melvin Anderson) and adds missing console.h header file
(again spotted by Melvin).
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Diffstat (limited to 'extras/mini-os/include/console.h')
-rw-r--r-- | extras/mini-os/include/console.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/extras/mini-os/include/console.h b/extras/mini-os/include/console.h new file mode 100644 index 0000000000..d43a2c408c --- /dev/null +++ b/extras/mini-os/include/console.h @@ -0,0 +1,49 @@ +/* + **************************************************************************** + * (C) 2006 - Grzegorz Milos - Cambridge University + **************************************************************************** + * + * File: console.h + * Author: Grzegorz Milos + * Changes: + * + * Date: Mar 2006 + * + * Environment: Xen Minimal OS + * Description: Console interface. + * + * Handles console I/O. Defines printk. + * + **************************************************************************** + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ +#ifndef _LIB_CONSOLE_H_ +#define _LIB_CONSOLE_H_ + +#include<traps.h> + +void printk(const char *fmt, ...); +void xprintk(const char *fmt, ...); + +void xencons_rx(char *buf, unsigned len, struct pt_regs *regs); +void xencons_tx(void); + +void init_console(void); + +#endif /* _LIB_CONSOLE_H_ */ |