[PATCH] powerpc: hvc_console updates
These are some updates from both Ryan and Arnd for the hvc_console driver: The main point is to enable the inclusion of a console driver for rtas, which is currrently needed for the cell platform. Also shuffle around some data-type declarations and moves some functions out of include/asm-ppc64/hvconsole.h and into a new drivers/char/hvc_console.h file. Signed-off-by: "Ryan S. Arnold" <rsa@us.ibm.com> Signed-off-by: Arnd Bergmann <abergman@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
11089f08d9
commit
45d607ed92
@@ -62,6 +62,11 @@ int hvc_put_chars(uint32_t vtermno, const char *buf, int count)
|
||||
unsigned long *lbuf = (unsigned long *) buf;
|
||||
long ret;
|
||||
|
||||
|
||||
/* hcall will ret H_PARAMETER if 'count' exceeds firmware max.*/
|
||||
if (count > MAX_VIO_PUT_CHARS)
|
||||
count = MAX_VIO_PUT_CHARS;
|
||||
|
||||
ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, lbuf[0],
|
||||
lbuf[1]);
|
||||
if (ret == H_Success)
|
||||
|
Reference in New Issue
Block a user