mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
Switch character types to u8 and sizes to size_t. To conform to characters/sizes in the rest of the tty layer. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: Amit Shah <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Albert Ou <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
32 lines
800 B
C
32 lines
800 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* hvconsole.h
|
|
* Copyright (C) 2004 Ryan S Arnold, IBM Corporation
|
|
*
|
|
* LPAR console support.
|
|
*/
|
|
|
|
#ifndef _PPC64_HVCONSOLE_H
|
|
#define _PPC64_HVCONSOLE_H
|
|
#ifdef __KERNEL__
|
|
|
|
/*
|
|
* PSeries firmware will only send/recv up to 16 bytes of character data per
|
|
* hcall.
|
|
*/
|
|
#define MAX_VIO_PUT_CHARS 16
|
|
#define SIZE_VIO_GET_CHARS 16
|
|
|
|
/*
|
|
* Vio firmware always attempts to fetch MAX_VIO_GET_CHARS chars. The 'count'
|
|
* parm is included to conform to put_chars() function pointer template
|
|
*/
|
|
extern ssize_t hvc_get_chars(uint32_t vtermno, u8 *buf, size_t count);
|
|
extern ssize_t hvc_put_chars(uint32_t vtermno, const u8 *buf, size_t count);
|
|
|
|
/* Provided by HVC VIO */
|
|
void hvc_vio_init_early(void);
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* _PPC64_HVCONSOLE_H */
|