fea9cb91bd8e12d84069b4dab1268363668b4bfflq/*
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * CDDL HEADER START
fea9cb91bd8e12d84069b4dab1268363668b4bfflq *
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * The contents of this file are subject to the terms of the
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * Common Development and Distribution License (the "License").
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * You may not use this file except in compliance with the License.
fea9cb91bd8e12d84069b4dab1268363668b4bfflq *
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * or http://www.opensolaris.org/os/licensing.
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * See the License for the specific language governing permissions
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * and limitations under the License.
fea9cb91bd8e12d84069b4dab1268363668b4bfflq *
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * When distributing Covered Code, include this CDDL HEADER in each
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * If applicable, add the following below this CDDL HEADER, with the
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * fields enclosed by brackets "[]" replaced with your own identifying
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * information: Portions Copyright [yyyy] [name of copyright owner]
fea9cb91bd8e12d84069b4dab1268363668b4bfflq *
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * CDDL HEADER END
fea9cb91bd8e12d84069b4dab1268363668b4bfflq */
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq/*
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fea9cb91bd8e12d84069b4dab1268363668b4bfflq * Use is subject to license terms.
fea9cb91bd8e12d84069b4dab1268363668b4bfflq */
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#ifndef _SYS_TEM_H
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#define _SYS_TEM_H
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#ifdef __cplusplus
fea9cb91bd8e12d84069b4dab1268363668b4bfflqextern "C" {
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#endif
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#ifdef _KERNEL
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#include <sys/visual_io.h>
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#include <sys/cred.h>
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#include <sys/beep.h>
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflqtypedef struct __tem_modechg_cb_arg *tem_modechg_cb_arg_t;
fea9cb91bd8e12d84069b4dab1268363668b4bfflqtypedef void (*tem_modechg_cb_t) (tem_modechg_cb_arg_t arg);
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinatypedef struct __tem_vt_state *tem_vt_state_t;
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinaint tem_initialized(tem_vt_state_t);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinatem_vt_state_t tem_init(cred_t *);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_destroy(tem_vt_state_t, cred_t *);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinaint tem_info_init(char *, cred_t *);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_write(tem_vt_state_t, uchar_t *, ssize_t, cred_t *);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_safe_polled_write(tem_vt_state_t, unsigned char *, int);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_get_size(ushort_t *, ushort_t *, ushort_t *, ushort_t *);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_register_modechg_cb(tem_modechg_cb_t, tem_modechg_cb_arg_t);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_activate(tem_vt_state_t, boolean_t, cred_t *);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_switch(tem_vt_state_t, tem_vt_state_t, cred_t *);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinauchar_t tem_get_fbmode(tem_vt_state_t);
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing China
aecfc01d1bad84e66649703f7fc2926ef70b34barui zang - Sun Microsystems - Beijing Chinavoid tem_set_fbmode(tem_vt_state_t, uchar_t, cred_t *);
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#endif /* _KERNEL */
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#ifdef __cplusplus
fea9cb91bd8e12d84069b4dab1268363668b4bfflq}
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#endif
fea9cb91bd8e12d84069b4dab1268363668b4bfflq
fea9cb91bd8e12d84069b4dab1268363668b4bfflq#endif /* _SYS_TEM_H */