Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * hvconsole.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright (C) 2004 Ryan S Arnold, IBM Corporation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * LPAR console support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #ifndef _PPC64_HVCONSOLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define _PPC64_HVCONSOLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifdef __KERNEL__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  * PSeries firmware will only send/recv up to 16 bytes of character data per
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * hcall.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define MAX_VIO_PUT_CHARS	16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define SIZE_VIO_GET_CHARS	16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * Vio firmware always attempts to fetch MAX_VIO_GET_CHARS chars.  The 'count'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * parm is included to conform to put_chars() function pointer template
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern int hvc_get_chars(uint32_t vtermno, char *buf, int count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif /* __KERNEL__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* _PPC64_HVCONSOLE_H */