libefi: import efichar.c for ucs2 support
[unleashed.git] / include / sys / console.h
blob9f607640923736d97db6d6b022d1aee0c323eca2
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_CONSOLE_H
28 #define _SYS_CONSOLE_H
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
35 * Sun private interface for cn driver
37 #define _CNIOC (('C'<<24)|('N'<<16))
38 #define _CNIOC_MASK (~0xffff)
39 #define CONS_GETTERM (_CNIOC | 0)
41 #define MAX_TERM_TYPE_LEN 10
43 struct cons_getterm {
44 uint_t cn_term_len;
45 char *cn_term_type;
48 #ifdef _KERNEL
50 #include <sys/vnode.h>
51 #include <sys/taskq.h>
52 #include <sys/varargs.h>
54 #ifdef _SYSCALL32
55 struct cons_getterm32 {
56 uint32_t cn_term_len;
57 caddr32_t cn_term_type;
59 #endif /* _SYSCALL32 */
61 extern void console_get_size(ushort_t *r, ushort_t *c,
62 ushort_t *x, ushort_t *y);
63 /*PRINTFLIKE1*/
64 extern void console_printf(const char *, ...) __KPRINTFLIKE(1);
65 extern void console_vprintf(const char *, va_list) __KVPRINTFLIKE(1);
67 extern void console_puts(const char *, size_t);
69 extern void console_gets(char *, size_t);
70 extern int console_getc(void);
72 extern int console_enter(int);
73 extern void console_exit(int, int);
75 extern vnode_t *console_vnode;
76 extern taskq_t *console_taskq;
78 #endif /* _KERNEL */
80 #ifdef __cplusplus
82 #endif
84 #endif /* _SYS_CONSOLE_H */