aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2005-07-07 20:56:24 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:23:39 -0400
commitacad9559f1054487292eb10d7bb81f256e9d8f2d (patch)
tree9496b1c81c776ab5c8af37246697052226a345a6 /include
parentd5ee257c3342185ba8ab642d125d192eb99ea8f2 (diff)
[PATCH] hvc_console: Separate hvc_console and vio code 2
Remove all the vio device driver code from hvc_console.c This will allow us to separate hvsi, hvc, and allow hvc_console to be used without the ppc64 vio layer. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc64/hvconsole.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-ppc64/hvconsole.h b/include/asm-ppc64/hvconsole.h
index 91c2414ac00b..14667a78716d 100644
--- a/include/asm-ppc64/hvconsole.h
+++ b/include/asm-ppc64/hvconsole.h
@@ -29,9 +29,16 @@
29 */ 29 */
30#define MAX_NR_HVC_CONSOLES 16 30#define MAX_NR_HVC_CONSOLES 16
31 31
32/* implemented by a low level driver */
32extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); 33extern int hvc_get_chars(uint32_t vtermno, char *buf, int count);
33extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count); 34extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
34 35
35/* Register a vterm and a slot index for use as a console */ 36struct hvc_struct;
37
38/* Register a vterm and a slot index for use as a console (console_init) */
36extern int hvc_instantiate(uint32_t vtermno, int index); 39extern int hvc_instantiate(uint32_t vtermno, int index);
40/* register a vterm for hvc tty operation (module_init or hotplug add) */
41extern struct hvc_struct * __devinit hvc_alloc(uint32_t vtermno, int irq);
42/* remove a vterm from hvc tty operation (modele_exit or hotplug remove) */
43extern int __devexit hvc_remove(struct hvc_struct *hp);
37#endif /* _PPC64_HVCONSOLE_H */ 44#endif /* _PPC64_HVCONSOLE_H */