diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-07-13 10:25:59 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-07-13 10:25:59 -0400 |
commit | 30beab1491f0b96b2f23d3fb68af01fd921a16d8 (patch) | |
tree | c580bdc0846269fbb10feeda901ecec1a48ee2ef /include/asm-ppc64/hvconsole.h | |
parent | 21af6c4f2aa5f63138871b4ddd77d7ebf2588c9d (diff) | |
parent | c32511e2718618f0b53479eb36e07439aa363a74 (diff) |
Merge with /shiny/git/linux-2.6/.git
Diffstat (limited to 'include/asm-ppc64/hvconsole.h')
-rw-r--r-- | include/asm-ppc64/hvconsole.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/asm-ppc64/hvconsole.h b/include/asm-ppc64/hvconsole.h index d89d94c91815..6da93ce74dc0 100644 --- a/include/asm-ppc64/hvconsole.h +++ b/include/asm-ppc64/hvconsole.h | |||
@@ -29,12 +29,21 @@ | |||
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 */ | ||
33 | struct hv_ops { | ||
34 | int (*get_chars)(uint32_t vtermno, char *buf, int count); | ||
35 | int (*put_chars)(uint32_t vtermno, const char *buf, int count); | ||
36 | }; | ||
32 | extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); | 37 | extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); |
33 | extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count); | 38 | extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count); |
34 | 39 | ||
35 | /* Early discovery of console adapters. */ | 40 | struct hvc_struct; |
36 | extern int hvc_find_vtys(void); | ||
37 | 41 | ||
38 | /* Implemented by a console driver */ | 42 | /* Register a vterm and a slot index for use as a console (console_init) */ |
39 | extern int hvc_instantiate(uint32_t vtermno, int index); | 43 | extern int hvc_instantiate(uint32_t vtermno, int index, struct hv_ops *ops); |
44 | /* register a vterm for hvc tty operation (module_init or hotplug add) */ | ||
45 | extern struct hvc_struct * __devinit hvc_alloc(uint32_t vtermno, int irq, | ||
46 | struct hv_ops *ops); | ||
47 | /* remove a vterm from hvc tty operation (modele_exit or hotplug remove) */ | ||
48 | extern int __devexit hvc_remove(struct hvc_struct *hp); | ||
40 | #endif /* _PPC64_HVCONSOLE_H */ | 49 | #endif /* _PPC64_HVCONSOLE_H */ |