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