xref: /illumos-gate/usr/src/uts/common/sys/tem.h (revision 5c22bad5)
1fea9cb91Slq /*
2fea9cb91Slq  * CDDL HEADER START
3fea9cb91Slq  *
4fea9cb91Slq  * The contents of this file are subject to the terms of the
5fea9cb91Slq  * Common Development and Distribution License (the "License").
6fea9cb91Slq  * You may not use this file except in compliance with the License.
7fea9cb91Slq  *
8fea9cb91Slq  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fea9cb91Slq  * or http://www.opensolaris.org/os/licensing.
10fea9cb91Slq  * See the License for the specific language governing permissions
11fea9cb91Slq  * and limitations under the License.
12fea9cb91Slq  *
13fea9cb91Slq  * When distributing Covered Code, include this CDDL HEADER in each
14fea9cb91Slq  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fea9cb91Slq  * If applicable, add the following below this CDDL HEADER, with the
16fea9cb91Slq  * fields enclosed by brackets "[]" replaced with your own identifying
17fea9cb91Slq  * information: Portions Copyright [yyyy] [name of copyright owner]
18fea9cb91Slq  *
19fea9cb91Slq  * CDDL HEADER END
20fea9cb91Slq  */
21fea9cb91Slq 
22fea9cb91Slq /*
23aecfc01dSrui zang - Sun Microsystems - Beijing China  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24fea9cb91Slq  * Use is subject to license terms.
25fea9cb91Slq  */
26fea9cb91Slq 
27fea9cb91Slq #ifndef	_SYS_TEM_H
28fea9cb91Slq #define	_SYS_TEM_H
29fea9cb91Slq 
30fea9cb91Slq #ifdef __cplusplus
31fea9cb91Slq extern "C" {
32fea9cb91Slq #endif
33fea9cb91Slq 
34fea9cb91Slq #ifdef _KERNEL
35fea9cb91Slq 
36*5c22bad5SToomas Soome #include <sys/stream.h>
37fea9cb91Slq #include <sys/visual_io.h>
38fea9cb91Slq #include <sys/cred.h>
39fea9cb91Slq #include <sys/beep.h>
40fea9cb91Slq 
41fea9cb91Slq typedef struct __tem_modechg_cb_arg *tem_modechg_cb_arg_t;
42fea9cb91Slq typedef void (*tem_modechg_cb_t) (tem_modechg_cb_arg_t arg);
43fea9cb91Slq 
44aecfc01dSrui zang - Sun Microsystems - Beijing China typedef	struct __tem_vt_state *tem_vt_state_t;
45aecfc01dSrui zang - Sun Microsystems - Beijing China 
46cbc8e155SToomas Soome boolean_t tem_initialized(tem_vt_state_t);
47aecfc01dSrui zang - Sun Microsystems - Beijing China 
48*5c22bad5SToomas Soome tem_vt_state_t tem_init(cred_t *, queue_t *);
49aecfc01dSrui zang - Sun Microsystems - Beijing China 
50aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_destroy(tem_vt_state_t, cred_t *);
51aecfc01dSrui zang - Sun Microsystems - Beijing China 
52aecfc01dSrui zang - Sun Microsystems - Beijing China int	tem_info_init(char *, cred_t *);
53aecfc01dSrui zang - Sun Microsystems - Beijing China 
54aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_write(tem_vt_state_t, uchar_t *, ssize_t, cred_t *);
55aecfc01dSrui zang - Sun Microsystems - Beijing China 
56aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_safe_polled_write(tem_vt_state_t, unsigned char *, int);
57aecfc01dSrui zang - Sun Microsystems - Beijing China 
58aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_get_size(ushort_t *, ushort_t *, ushort_t *, ushort_t *);
59aecfc01dSrui zang - Sun Microsystems - Beijing China 
60aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_register_modechg_cb(tem_modechg_cb_t, tem_modechg_cb_arg_t);
61aecfc01dSrui zang - Sun Microsystems - Beijing China 
62aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_activate(tem_vt_state_t, boolean_t, cred_t *);
63aecfc01dSrui zang - Sun Microsystems - Beijing China 
64aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_switch(tem_vt_state_t, tem_vt_state_t, cred_t *);
65aecfc01dSrui zang - Sun Microsystems - Beijing China 
66aecfc01dSrui zang - Sun Microsystems - Beijing China uchar_t	tem_get_fbmode(tem_vt_state_t);
67aecfc01dSrui zang - Sun Microsystems - Beijing China 
68aecfc01dSrui zang - Sun Microsystems - Beijing China void	tem_set_fbmode(tem_vt_state_t, uchar_t, cred_t *);
69fea9cb91Slq 
70fea9cb91Slq #endif /* _KERNEL */
71fea9cb91Slq 
72fea9cb91Slq #ifdef __cplusplus
73fea9cb91Slq }
74fea9cb91Slq #endif
75fea9cb91Slq 
76fea9cb91Slq #endif /* _SYS_TEM_H */
77