2019-05-27 13:55:05 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* hvconsole.h
|
|
|
|
* Copyright (C) 2004 Ryan S Arnold, IBM Corporation
|
|
|
|
*
|
|
|
|
* LPAR console support.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PPC64_HVCONSOLE_H
|
|
|
|
#define _PPC64_HVCONSOLE_H
|
2005-12-17 04:43:46 +07:00
|
|
|
#ifdef __KERNEL__
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/*
|
2006-03-28 02:25:16 +07:00
|
|
|
* PSeries firmware will only send/recv up to 16 bytes of character data per
|
|
|
|
* hcall.
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
2006-03-28 02:25:16 +07:00
|
|
|
#define MAX_VIO_PUT_CHARS 16
|
|
|
|
#define SIZE_VIO_GET_CHARS 16
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2006-03-28 02:25:16 +07:00
|
|
|
/*
|
|
|
|
* Vio firmware always attempts to fetch MAX_VIO_GET_CHARS chars. The 'count'
|
|
|
|
* parm is included to conform to put_chars() function pointer template
|
|
|
|
*/
|
2005-04-17 05:20:36 +07:00
|
|
|
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);
|
|
|
|
|
2005-12-17 04:43:46 +07:00
|
|
|
#endif /* __KERNEL__ */
|
2005-04-17 05:20:36 +07:00
|
|
|
#endif /* _PPC64_HVCONSOLE_H */
|