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]
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
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
50 #include <sys/vnode.h>
51 #include <sys/taskq.h>
52 #include <sys/varargs.h>
55 struct cons_getterm32
{
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
);
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
;
84 #endif /* _SYS_CONSOLE_H */