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