Deleted Added
full compact
syscons.h (51394) syscons.h (51404)
1/*-
2 * Copyright (c) 1995-1998 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1995-1998 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/dev/syscons/syscons.h 51394 1999-09-19 08:07:46Z yokota $
28 * $FreeBSD: head/sys/dev/syscons/syscons.h 51404 1999-09-19 08:58:53Z yokota $
29 */
30
31#ifndef _DEV_SYSCONS_SYSCONS_H_
32#define _DEV_SYSCONS_SYSCONS_H_
33
34/* machine-dependent part of the header */
35
36#ifdef PC98

--- 22 unchanged lines hidden (view full) ---

59#ifndef SC_DEBUG_LEVEL
60#define SC_DEBUG_LEVEL 0
61#endif
62
63#define DPRINTF(l, p) if (SC_DEBUG_LEVEL >= (l)) printf p
64
65#define SC_DRIVER_NAME "sc"
66#define SC_VTY(dev) minor(dev)
29 */
30
31#ifndef _DEV_SYSCONS_SYSCONS_H_
32#define _DEV_SYSCONS_SYSCONS_H_
33
34/* machine-dependent part of the header */
35
36#ifdef PC98

--- 22 unchanged lines hidden (view full) ---

59#ifndef SC_DEBUG_LEVEL
60#define SC_DEBUG_LEVEL 0
61#endif
62
63#define DPRINTF(l, p) if (SC_DEBUG_LEVEL >= (l)) printf p
64
65#define SC_DRIVER_NAME "sc"
66#define SC_VTY(dev) minor(dev)
67#define SC_DEV(sc, vty) ((sc)->dev[(vty) - (sc)->first_vty])
68#define SC_STAT(dev) ((scr_stat *)(dev)->si_drv1)
67
68/* printable chars */
69#ifndef PRINTABLE
70#define PRINTABLE(ch) ((ch) > 0x1b || ((ch) > 0x0d && (ch) < 0x1b) \
71 || (ch) < 0x07)
72#endif
73
74/* macros for "intelligent" screen update */

--- 120 unchanged lines hidden (view full) ---

195 struct keyboard *kbd;
196
197 int adapter;
198 struct video_adapter *adp;
199 int initial_mode; /* initial video mode */
200
201 int first_vty;
202 int vtys;
69
70/* printable chars */
71#ifndef PRINTABLE
72#define PRINTABLE(ch) ((ch) > 0x1b || ((ch) > 0x0d && (ch) < 0x1b) \
73 || (ch) < 0x07)
74#endif
75
76/* macros for "intelligent" screen update */

--- 120 unchanged lines hidden (view full) ---

197 struct keyboard *kbd;
198
199 int adapter;
200 struct video_adapter *adp;
201 int initial_mode; /* initial video mode */
202
203 int first_vty;
204 int vtys;
203 struct tty *tty;
204 struct scr_stat **console;
205 dev_t *dev;
205 struct scr_stat *cur_scp;
206 struct scr_stat *new_scp;
207 struct scr_stat *old_scp;
208 int delayed_next_scr;
209
210 char font_loading_in_progress;
211 char switch_in_progress;
212 char videoio_in_progress;

--- 189 unchanged lines hidden (view full) ---

402extern int (*sc_user_ioctl)(dev_t dev, u_long cmd, caddr_t data,
403 int flag, struct proc *p);
404
405int sc_probe_unit(int unit, int flags);
406int sc_attach_unit(int unit, int flags);
407int sc_resume_unit(int unit);
408
409int set_mode(scr_stat *scp);
206 struct scr_stat *cur_scp;
207 struct scr_stat *new_scp;
208 struct scr_stat *old_scp;
209 int delayed_next_scr;
210
211 char font_loading_in_progress;
212 char switch_in_progress;
213 char videoio_in_progress;

--- 189 unchanged lines hidden (view full) ---

403extern int (*sc_user_ioctl)(dev_t dev, u_long cmd, caddr_t data,
404 int flag, struct proc *p);
405
406int sc_probe_unit(int unit, int flags);
407int sc_attach_unit(int unit, int flags);
408int sc_resume_unit(int unit);
409
410int set_mode(scr_stat *scp);
410scr_stat *sc_get_scr_stat(dev_t dev);
411
412void copy_font(scr_stat *scp, int operation, int font_size,
413 u_char *font_image);
414void set_border(scr_stat *scp, int color);
415
416void sc_touch_scrn_saver(void);
417void sc_clear_screen(scr_stat *scp);
418void sc_set_cursor_image(scr_stat *scp);

--- 94 unchanged lines hidden ---
411
412void copy_font(scr_stat *scp, int operation, int font_size,
413 u_char *font_image);
414void set_border(scr_stat *scp, int color);
415
416void sc_touch_scrn_saver(void);
417void sc_clear_screen(scr_stat *scp);
418void sc_set_cursor_image(scr_stat *scp);

--- 94 unchanged lines hidden ---