2001-07-24 11:44:20 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2001 The FreeBSD Project, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY The FreeBSD Project, Inc. AND CONTRIBUTORS
|
|
|
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL The FreeBSD Project, Inc. OR
|
|
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
|
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* $FreeBSD$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* TTY subsystem XXX rewrite! */
|
|
|
|
int redirect0;
|
|
|
|
int redirect1;
|
|
|
|
int redirect2;
|
|
|
|
extern int kbd_fd;
|
2001-08-08 10:58:50 +00:00
|
|
|
extern const char *xfont;
|
2001-07-24 11:44:20 +00:00
|
|
|
|
2001-08-03 10:47:56 +00:00
|
|
|
int KbdEmpty(void);
|
2001-07-24 11:44:20 +00:00
|
|
|
u_short KbdPeek(void);
|
2001-08-03 10:47:56 +00:00
|
|
|
u_short KbdRead(void);
|
2001-07-24 11:44:20 +00:00
|
|
|
void KbdWrite(u_short);
|
|
|
|
|
2001-08-03 10:47:56 +00:00
|
|
|
void console_init(void);
|
2001-07-24 11:44:20 +00:00
|
|
|
void get_lines(void);
|
|
|
|
void get_ximage(void);
|
|
|
|
void init_window(void);
|
|
|
|
void init_ximage(int, int);
|
2001-08-03 10:47:56 +00:00
|
|
|
void int09(regcontext_t *);
|
|
|
|
void kbd_bios_init(void);
|
|
|
|
void kbd_init(void);
|
2001-07-24 11:44:20 +00:00
|
|
|
void load_font(void);
|
|
|
|
void resize_window(void);
|
2001-08-03 10:47:56 +00:00
|
|
|
int tty_char(int, int);
|
2001-07-24 11:44:20 +00:00
|
|
|
int tty_eread(REGISTERS, int, int);
|
|
|
|
int tty_estate(void);
|
2001-08-03 10:47:56 +00:00
|
|
|
void tty_flush(void);
|
2001-08-14 11:57:14 +00:00
|
|
|
void tty_index(int);
|
2001-07-24 11:44:20 +00:00
|
|
|
void tty_move(int, int);
|
|
|
|
int tty_read(regcontext_t *, int);
|
|
|
|
void tty_report(int *, int *);
|
2001-08-03 10:47:56 +00:00
|
|
|
void tty_pause(void);
|
2001-07-24 11:44:20 +00:00
|
|
|
int tty_peek(REGISTERS, int);
|
2001-08-03 10:47:56 +00:00
|
|
|
void tty_rwrite(int, int, int);
|
|
|
|
int tty_state(void);
|
2001-07-24 11:44:20 +00:00
|
|
|
void tty_scroll(int, int, int, int, int, int);
|
|
|
|
void tty_rscroll(int, int, int, int, int, int);
|
2001-08-03 10:47:56 +00:00
|
|
|
void tty_write(int, int);
|
|
|
|
void update_pixels(void);
|
2001-07-24 11:44:20 +00:00
|
|
|
void video_blink(int);
|
|
|
|
void video_setborder(int);
|
|
|
|
void video_update(regcontext_t *);
|