xref: /titanic_44/usr/src/uts/common/sys/tem.h (revision 4a634bb80136cc001d14ab96addd9915105e5223)
1 /*
2  * CDDL HEADER START
3  *
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.
7  *
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.
12  *
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]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_SYS_TEM_H
28 #define	_SYS_TEM_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #ifdef _KERNEL
37 
38 #include <sys/visual_io.h>
39 #include <sys/cred.h>
40 #include <sys/beep.h>
41 
42 typedef struct __tem_modechg_cb_arg *tem_modechg_cb_arg_t;
43 typedef void (*tem_modechg_cb_t) (tem_modechg_cb_arg_t arg);
44 
45 struct tem;
46 int	tem_init(struct tem **,
47 			char *, cred_t *);
48 void	tem_write(struct tem *,
49 			uchar_t *, ssize_t, cred_t *);
50 void	tem_polled_write(struct tem *,
51 			unsigned char *, int);
52 void	tem_get_size(struct tem *, ushort_t *, ushort_t *,
53 			ushort_t *, ushort_t *);
54 int	tem_fini(struct tem *);
55 
56 void	tem_register_modechg_cb(struct tem *, tem_modechg_cb_t,
57 					tem_modechg_cb_arg_t);
58 
59 #endif /* _KERNEL */
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* _SYS_TEM_H */
66