loader: remove shouting from ORB's variable name
[hvf.git] / cp / include / console.h
blob6ad83df361480565f138ed8da214523478ad25f4
1 /*
2 * (C) Copyright 2007-2011 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
5 * details.
6 */
8 #ifndef __CONSOLE_H
9 #define __CONSOLE_H
11 #include <device.h>
12 #include <io.h>
13 #include <spinlock.h>
15 #define CONSOLE_LINE_LEN 160
17 extern int console_interrupt(struct device *dev, struct irb *irb);
18 extern struct console* start_oper_console(void);
19 extern void* console_enable(struct device *dev);
20 extern int con_read_pending(struct console *con);
21 extern int con_read(struct console *con, u8 *buf, int size);
22 extern int con_write(struct console *con, u8 *buf, int len);
23 extern void for_each_console(void (*f)(struct console *con));
24 extern struct console* find_console(struct device *dev);
26 #endif