X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-ppc64%2Fhvconsole.h;h=d89d94c918158095e8e98bfb685ca0e995257072;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=17154864fcaa836db515f83c386e9bb59266fd09;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/asm-ppc64/hvconsole.h b/include/asm-ppc64/hvconsole.h index 17154864f..d89d94c91 100644 --- a/include/asm-ppc64/hvconsole.h +++ b/include/asm-ppc64/hvconsole.h @@ -22,9 +22,19 @@ #ifndef _PPC64_HVCONSOLE_H #define _PPC64_HVCONSOLE_H -extern int hvc_get_chars(int index, char *buf, int count); -extern int hvc_put_chars(int index, const char *buf, int count); -extern int hvc_count(int *start_termno); +/* + * This is the max number of console adapters that can/will be found as + * console devices on first stage console init. Any number beyond this range + * can't be used as a console device but is still a valid tty device. + */ +#define MAX_NR_HVC_CONSOLES 16 -#endif /* _PPC64_HVCONSOLE_H */ +extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); +extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count); +/* Early discovery of console adapters. */ +extern int hvc_find_vtys(void); + +/* Implemented by a console driver */ +extern int hvc_instantiate(uint32_t vtermno, int index); +#endif /* _PPC64_HVCONSOLE_H */