Lines Matching +full:sw +full:- +full:mode

1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 1995-1998 Søren Schmidt
56 /* Always load font data if the pixel (raster text) mode is to be used. */
62 * If font data is not available, the `arrow'-shaped mouse cursor cannot
90 #define SC_VTY(dev) (((sc_ttysoftc *)tty_softc(tp))->st_index)
91 #define SC_DEV(sc, vty) ((sc)->dev[(vty) - (sc)->first_vty])
92 #define SC_STAT(tp) (*((scr_stat **)&((sc_ttysoftc *)tty_softc(tp))->st_stat))
102 if ((x) < scp->start) scp->start = (x);\
103 else if ((x) > scp->end) scp->end = (x);\
106 scp->start = 0;\
107 scp->end = scp->xsize * scp->ysize - 1;\
110 /* vty status flags (scp->status) */
111 #define UNKNOWN_MODE 0x00010 /* unknown video mode */
119 #define GRAPHICS_MODE 0x08000 /* vty is in a graphics mode */
120 #define PIXEL_MODE 0x10000 /* vty is in a raster text mode */
131 The following #defines are hard-coded for a maximum text
214 int initial_mode; /* initial video mode */
289 int xoff; /* X offset in pixel mode */
290 int yoff; /* Y offset in pixel mode */
303 int kbd_mode; /* keyboard I/O mode */
330 int mode; /* mode */ member
333 struct vt_mode smode; /* switch mode */
339 int splash_save_mode; /* saved mode for splash screen */
410 #define SCTERM_MODULE(name, sw) \ argument
411 DATA_SET(scterm_set, sw); \
417 return sc_term_add(&sw); \
419 if (sw.te_refcount > 0) \
421 return sc_term_remove(&sw); \
429 "scterm-" #name, \
462 int mode; member
467 #define RENDERER(name, mode, sw, set) \ argument
468 static struct sc_renderer scrndr_##name##_##mode = { \
469 #name, mode, &sw \
471 DATA_SET(scrndr_set, scrndr_##name##_##mode); \
472 DATA_SET(set, scrndr_##name##_##mode)
503 "scrndr-" #name, \
516 #define ISTEXTSC(scp) (!((scp)->status \
518 #define ISGRAPHSC(scp) (((scp)->status \
520 #define ISPIXELSC(scp) (((scp)->status \
523 #define ISUNKNOWNSC(scp) ((scp)->status & UNKNOWN_MODE)
532 mtx_init(&(sc)->video_mtx, "syscons video lock", NULL, \
537 mtx_lock_spin(&(sc)->video_mtx); \
542 mtx_unlock_spin(&(sc)->video_mtx); \
583 sc_vtb_append(&(scp)->vtb, (from), (scp)->history, (scp)->xsize)
619 int sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode,
622 int sc_set_graphics_mode(scr_stat *scp, struct tty *tp, int mode);
631 sc_rndr_sw_t *sc_render_match(scr_stat *scp, char *name, int mode);
647 #define sc_vtb_tail(vtb) ((vtb)->vtb_tail)
648 #define sc_vtb_rows(vtb) ((vtb)->vtb_rows)
649 #define sc_vtb_cols(vtb) ((vtb)->vtb_cols)
667 int sc_term_add(sc_term_sw_t *sw);
668 int sc_term_remove(sc_term_sw_t *sw);