/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
#ifndef _SYS_TEM_IMPL_H
#define _SYS_TEM_IMPL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/visual_io.h>
/*
* definitions for ANSI x3.64 terminal control language parser
*/
#define TEM_SCROLL_UP 0
#define TEM_SHIFT_LEFT 0
#define ANSI_COLOR_BLACK 0
#define TEM_TEXT_WHITE 0
#define A_STATE_START 0
/*
* Default number of rows and columns
*/
/*
* Default foreground/background color
*/
#ifdef _HAVE_TEM_FIRMWARE
#else /* _HAVE_TEM_FIRMWARE */
#endif
typedef struct tem_color {
unsigned short a_flags;
} tem_color_t;
struct tem_pix_pos {
screen_pos_t x;
screen_pos_t y;
};
struct tem_char_pos {
};
struct tem_size {
};
typedef struct {
} text_cmap_t;
extern text_cmap_t cmap4_to_24;
/*
* State structure for each virtual terminal emulator
*/
struct tem_vt_state {
int tvs_outbuf_size;
int tvs_pix_data_size;
int tvs_screen_buf_size;
int tvs_color_buf_size;
};
typedef struct tem_safe_callbacks {
screen_pos_t, screen_pos_t, unsigned char, unsigned char,
cred_t *, enum called_from);
enum called_from);
unsigned char, unsigned char);
/*
* common term soft state structure shared by all virtual terminal emulators
*/
typedef struct tem_state {
} tem_state_t;
extern tem_state_t tems;
/*
* tems_* fuctions mean that they just operate on the common soft state
* (tem_state_t), and tem_* functions mean that they operate on the
* per-tem structure (tem_vt_state). All "safe" interfaces are in tem_safe.c.
*/
enum called_from);
cred_t *, enum called_from);
int, screen_pos_t, screen_pos_t,
cred_t *, enum called_from);
void tem_safe_text_copy(struct tem_vt_state *,
cred_t *, enum called_from);
enum called_from);
void tem_safe_text_cls(struct tem_vt_state *,
int, screen_pos_t, screen_pos_t,
cred_t *, enum called_from);
void tem_safe_pix_copy(struct tem_vt_state *,
cred_t *, enum called_from);
enum called_from);
void tem_safe_pix_bit2pix(struct tem_vt_state *, unsigned char,
unsigned char, unsigned char);
cred_t *, enum called_from);
void tem_safe_pix_cls_range(struct tem_vt_state *,
screen_pos_t, int, int,
screen_pos_t, int, int,
void tem_safe_pix_clear_entire_screen(struct tem_vt_state *,
cred_t *, enum called_from);
text_color_t *, uint8_t);
enum called_from);
enum called_from);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_TEM_IMPL_H */