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 2008 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 * Copyright 2026 RackTop Systems, Inc. 26 */ 27 28 #ifndef _SYS_TEM_H 29 #define _SYS_TEM_H 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 #ifdef _KERNEL 36 37 #include <sys/stream.h> 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 typedef struct __tem_vt_state *tem_vt_state_t; 46 47 boolean_t tem_initialized(tem_vt_state_t); 48 49 tem_vt_state_t tem_init(cred_t *); 50 51 void tem_destroy(tem_vt_state_t, cred_t *); 52 53 int tem_info_init(char *, cred_t *); 54 55 void tem_write(tem_vt_state_t, uchar_t *, ssize_t, cred_t *); 56 57 void tem_safe_polled_write(tem_vt_state_t, unsigned char *, int); 58 59 void tem_get_size(ushort_t *, ushort_t *, ushort_t *, ushort_t *); 60 61 void tem_register_modechg_cb(tem_modechg_cb_t, tem_modechg_cb_arg_t); 62 63 void tem_activate(tem_vt_state_t, boolean_t, cred_t *); 64 65 void tem_switch(tem_vt_state_t, tem_vt_state_t, cred_t *); 66 67 uchar_t tem_get_fbmode(tem_vt_state_t); 68 69 void tem_set_fbmode(tem_vt_state_t, uchar_t, cred_t *); 70 71 void tem_clean(tem_vt_state_t); 72 73 void tem_init_q(tem_vt_state_t, queue_t *); 74 75 #endif /* _KERNEL */ 76 77 #ifdef __cplusplus 78 } 79 #endif 80 81 #endif /* _SYS_TEM_H */ 82