Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * hvconsole.h
0004  * Copyright (C) 2004 Ryan S Arnold, IBM Corporation
0005  *
0006  * LPAR console support.
0007  */
0008 
0009 #ifndef _PPC64_HVCONSOLE_H
0010 #define _PPC64_HVCONSOLE_H
0011 #ifdef __KERNEL__
0012 
0013 /*
0014  * PSeries firmware will only send/recv up to 16 bytes of character data per
0015  * hcall.
0016  */
0017 #define MAX_VIO_PUT_CHARS   16
0018 #define SIZE_VIO_GET_CHARS  16
0019 
0020 /*
0021  * Vio firmware always attempts to fetch MAX_VIO_GET_CHARS chars.  The 'count'
0022  * parm is included to conform to put_chars() function pointer template
0023  */
0024 extern int hvc_get_chars(uint32_t vtermno, char *buf, int count);
0025 extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
0026 
0027 /* Provided by HVC VIO */
0028 void hvc_vio_init_early(void);
0029 
0030 #endif /* __KERNEL__ */
0031 #endif /* _PPC64_HVCONSOLE_H */