2 * Copyright (c) 1995-1998 Søren Schmidt
5 * This code is derived from software contributed to The DragonFly Project
6 * by Sascha Wildner <saw@online.de>
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer,
13 * without modification, immediately at the beginning of the file.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. The name of the author may not be used to endorse or promote products
18 * derived from this software without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 * $FreeBSD: src/sys/dev/syscons/syscons.h,v 1.60.2.6 2002/09/15 22:30:45 dd Exp $
34 #ifndef _DEV_SYSCONS_SYSCONS_H_
35 #define _DEV_SYSCONS_SYSCONS_H_
37 #include <sys/malloc.h>
39 MALLOC_DECLARE(M_SYSCONS
);
41 /* default values for configuration options */
44 #define MAXCONS 16 /* power of 2 */
49 #define SC_NO_CUTPASTE 1
52 #ifdef SC_NO_MODE_CHANGE
56 /* Always load font data if the pixel (raster text) mode is to be used. */
58 #undef SC_NO_FONT_LOADING
62 * If font data is not available, the `arrow'-shaped mouse cursor cannot
63 * be drawn. Use the alternative drawing method.
65 #ifdef SC_NO_FONT_LOADING
66 #undef SC_ALT_MOUSE_IMAGE
67 #define SC_ALT_MOUSE_IMAGE 1
70 #ifndef SC_CURSOR_CHAR
71 #define SC_CURSOR_CHAR (0x07)
75 #define SC_MOUSE_CHAR (0xd0)
78 #if SC_MOUSE_CHAR <= SC_CURSOR_CHAR && SC_CURSOR_CHAR < (SC_MOUSE_CHAR + 4)
80 #define SC_CURSOR_CHAR (SC_MOUSE_CHAR + 4)
83 #ifndef SC_DEBUG_LEVEL
84 #define SC_DEBUG_LEVEL 0
87 #define DPRINTF(l, p) if (SC_DEBUG_LEVEL >= (l)) kprintf p
89 #define SC_DRIVER_NAME "sc"
90 #define SC_VTY(dev) minor(dev)
91 #define SC_DEV(sc, vty) ((sc)->dev ? (sc)->dev[(vty) - (sc)->first_vty] : NULL)
92 #define SC_STAT(dev) ((scr_stat *)(dev)->si_drv1)
96 #define PRINTABLE(ch) ((ch) > 0x1b || ((ch) > 0x0d && (ch) < 0x1b) \
100 /* macros for "intelligent" screen update */
101 #define mark_for_update(scp, x) {\
102 if ((x) < scp->start) scp->start = (x);\
103 else if ((x) > scp->end) scp->end = (x);\
105 #define mark_all(scp) {\
107 scp->end = scp->xsize * scp->ysize - 1;\
110 /* macro for calculating the drawing position in video memory */
112 #define VIDEO_MEMORY_POS(scp, pos, x) \
113 ((scp)->sc->adp->va_window + \
114 (x) * (scp)->xoff + \
115 (scp)->yoff * (scp)->font_height * (scp)->sc->adp->va_line_width +\
116 (x) * ((pos) % (scp)->xsize) + \
117 (scp)->font_height * (scp)->sc->adp->va_line_width * \
118 (pos / (scp)->xsize))
121 /* vty status flags (scp->status) */
122 #define UNKNOWN_MODE 0x00010 /* unknown video mode */
123 #define SWITCH_WAIT_REL 0x00080 /* waiting for vty release */
124 #define SWITCH_WAIT_ACQ 0x00100 /* waiting for vty ack */
125 #define BUFFER_SAVED 0x00200 /* vty buffer is saved */
126 #define CURSOR_ENABLED 0x00400 /* text cursor is enabled */
127 #define MOUSE_MOVED 0x01000 /* mouse cursor has moved */
128 #define MOUSE_CUTTING 0x02000 /* mouse cursor is cutting text */
129 #define MOUSE_VISIBLE 0x04000 /* mouse cursor is showing */
130 #define GRAPHICS_MODE 0x08000 /* vty is in a graphics mode */
131 #define PIXEL_MODE 0x10000 /* vty is in a raster text mode */
132 #define SAVER_RUNNING 0x20000 /* screen saver is running */
133 #define VR_CURSOR_BLINK 0x40000 /* blinking text cursor */
134 #define VR_CURSOR_ON 0x80000 /* text cursor is on */
135 #define MOUSE_HIDDEN 0x100000 /* mouse cursor is temporarily hidden */
144 #ifndef BELL_DURATION
145 #define BELL_DURATION ((5 * hz + 99) / 100)
146 #define BELL_PITCH 800
149 /* virtual terminal buffer */
150 typedef struct sc_vtb
{
152 #define VTB_VALID (1 << 0)
153 #define VTB_ALLOCED (1 << 1)
155 #define VTB_INVALID 0
157 #define VTB_FRAMEBUFFER 2
158 #define VTB_RINGBUFFER 3
162 uint16_t *vtb_buffer
;
163 int vtb_tail
; /* valid for VTB_RINGBUFFER only */
169 struct video_adapter
;
172 struct dev_ioctl_args
;
174 typedef struct sc_softc
{
175 int unit
; /* unit # */
176 int config
; /* configuration flags */
177 #define SC_AUTODETECT_KBD (1 << 8)
178 #define SC_KERNEL_CONSOLE (1 << 9)
179 #define SC_EFI_FB (1 << 10)
181 int flags
; /* status flags */
182 #define SC_VISUAL_BELL (1 << 0)
183 #define SC_QUIET_BELL (1 << 1)
184 #define SC_BLINK_CURSOR (1 << 2)
185 #define SC_CHAR_CURSOR (1 << 3)
186 #define SC_MOUSE_ENABLED (1 << 4)
187 #define SC_SCRN_IDLE (1 << 5)
188 #define SC_SCRN_BLANKED (1 << 6)
189 #define SC_SAVER_FAILED (1 << 7)
190 #define SC_SCRN_VTYLOCK (1 << 8)
192 #define SC_INIT_DONE (1 << 16)
193 #define SC_SPLASH_SCRN (1 << 17)
195 int keyboard
; /* -1 if unavailable */
196 struct keyboard
*kbd
;
199 struct video_adapter
*adp
;
200 int initial_mode
; /* initial video mode */
202 uint64_t fbi_generation
; /* increment on fbi update */
204 struct fb_info
*dummy_fb_info
;
205 struct task
*fb_set_par_task
;
210 struct scr_stat
*console_scp
;
211 struct scr_stat
*cur_scp
;
212 struct scr_stat
*new_scp
;
213 struct scr_stat
*old_scp
;
214 int delayed_next_scr
;
215 int videoio_in_progress
;
217 char font_loading_in_progress
;
218 char switch_in_progress
;
219 char write_in_progress
;
220 char blink_in_progress
;
222 long scrn_time_stamp
;
223 struct callout scrn_timer_ch
;
229 u_char scr_rmap
[256];
231 #ifdef _SC_MD_SOFTC_DECLARED_
232 sc_md_softc_t md
; /* machine dependent vars */
235 #ifndef SC_NO_PALETTE_LOADING
236 u_char palette
[256*3];
239 #ifndef SC_NO_FONT_LOADING
255 typedef struct scr_stat
{
256 int index
; /* index of this vty */
257 struct sc_softc
*sc
; /* pointer to softc */
258 struct sc_rndr_sw
*rndr
; /* renderer */
261 uint64_t fbi_generation
; /* track fb_info updates */
263 int xpos
; /* current X position */
264 int ypos
; /* current Y position */
265 int xsize
; /* X text size */
266 int ysize
; /* Y text size */
267 int xpixel
; /* X graphics size */
268 int ypixel
; /* Y graphics size */
269 int xoff
; /* X offset in pixel mode */
270 int yoff
; /* Y offset in pixel mode */
272 u_char
*font
; /* current font */
273 int font_height
; /* font source Y pixels */
274 int font_width
; /* font source X pixels */
275 int blk_height
; /* fbtarget Y pixels */
276 int blk_width
; /* fbtarget X pixels */
278 int start
; /* modified area start */
279 int end
; /* modified area end */
280 int show_cursor
; /* used by async scrn_update */
282 struct sc_term_sw
*tsw
;
285 int status
; /* status (bitfield) */
286 int kbd_mode
; /* keyboard I/O mode */
288 int cursor_pos
; /* cursor buffer position */
289 int cursor_oldpos
; /* cursor old buffer position */
290 u_short cursor_saveunder_char
; /* saved char under cursor */
291 u_short cursor_saveunder_attr
; /* saved attr under cursor */
292 char cursor_base
; /* cursor base line # */
293 char cursor_height
; /* cursor height */
295 int mouse_pos
; /* mouse buffer position */
296 int mouse_oldpos
; /* mouse old buffer position */
297 short mouse_xpos
; /* mouse x coordinate */
298 short mouse_ypos
; /* mouse y coordinate */
299 short mouse_oldxpos
; /* mouse previous x coordinate */
300 short mouse_oldypos
; /* mouse previous y coordinate */
301 short mouse_buttons
; /* mouse buttons */
302 int mouse_cut_start
; /* mouse cut start pos */
303 int mouse_cut_end
; /* mouse cut end pos */
304 struct proc
*mouse_proc
; /* proc* of controlling proc */
305 pid_t mouse_pid
; /* pid of controlling proc */
306 int mouse_signal
; /* signal # to report with */
308 u_short bell_duration
;
311 struct callout blink_screen_ch
;
313 uint32_t ega_palette
[16]; /* ega palette */
314 u_char border
; /* border color */
316 int model
; /* memory model */
317 pid_t pid
; /* pid of controlling proc */
318 struct proc
*proc
; /* proc* of controlling proc */
319 struct vt_mode smode
; /* switch mode */
321 sc_vtb_t
*history
; /* circular history buffer */
322 int history_pos
; /* position shown on screen */
323 int history_size
; /* size of history buffer */
325 int splash_save_mode
; /* saved mode for splash scr */
326 int splash_save_status
; /* saved status for splash scr*/
328 struct thread
*asynctd
;
329 #ifdef _SCR_MD_STAT_DECLARED_
330 scr_md_stat_t md
; /* machine dependent vars */
335 #define SC_NORM_ATTR (FG_LIGHTGREY | BG_BLACK)
337 #ifndef SC_NORM_REV_ATTR
338 #define SC_NORM_REV_ATTR (FG_BLACK | BG_LIGHTGREY)
340 #ifndef SC_KERNEL_CONS_ATTR
341 #define SC_KERNEL_CONS_ATTR (FG_WHITE | BG_BLACK)
343 #ifndef SC_KERNEL_CONS_REV_ATTR
344 #define SC_KERNEL_CONS_REV_ATTR (FG_BLACK | BG_LIGHTGREY)
346 #ifndef SC_BORDER_COLOR
347 #define SC_BORDER_COLOR FG_BLACK
350 /* terminal emulator */
353 #define SC_DFLT_TERM "*" /* any */
356 typedef int sc_term_init_t(scr_stat
*scp
, void **tcp
, int code
);
357 #define SC_TE_COLD_INIT 0
358 #define SC_TE_WARM_INIT 1
359 typedef int sc_term_term_t(scr_stat
*scp
, void **tcp
);
360 typedef void sc_term_puts_t(scr_stat
*scp
, u_char
*buf
, int len
);
361 typedef int sc_term_ioctl_t(scr_stat
*scp
, struct tty
*tp
, u_long cmd
,
362 caddr_t data
, int flag
);
363 typedef int sc_term_reset_t(scr_stat
*scp
, int code
);
364 #define SC_TE_HARD_RESET 0
365 #define SC_TE_SOFT_RESET 1
366 typedef void sc_term_default_attr_t(scr_stat
*scp
, int norm
, int rev
);
367 typedef void sc_term_clear_t(scr_stat
*scp
);
368 typedef void sc_term_notify_t(scr_stat
*scp
, int event
);
369 #define SC_TE_NOTIFY_VTSWITCH_IN 0
370 #define SC_TE_NOTIFY_VTSWITCH_OUT 1
371 typedef int sc_term_input_t(scr_stat
*scp
, int c
, struct tty
*tp
);
373 typedef struct sc_term_sw
{
374 LIST_ENTRY(sc_term_sw
) link
;
375 char *te_name
; /* name of the emulator */
376 char *te_desc
; /* description */
377 char *te_renderer
; /* matching renderer */
378 size_t te_size
; /* size of internal buffer */
379 int te_refcount
; /* reference counter */
380 sc_term_init_t
*te_init
;
381 sc_term_term_t
*te_term
;
382 sc_term_puts_t
*te_puts
;
383 sc_term_ioctl_t
*te_ioctl
;
384 sc_term_reset_t
*te_reset
;
385 sc_term_default_attr_t
*te_default_attr
;
386 sc_term_clear_t
*te_clear
;
387 sc_term_notify_t
*te_notify
;
388 sc_term_input_t
*te_input
;
391 extern struct linker_set scterm_set
;
393 #define SCTERM_MODULE(name, sw) \
394 DATA_SET(scterm_set, sw); \
396 scterm_##name##_event(module_t mod, int type, void *data) \
400 return sc_term_add(&sw); \
402 if (sw.te_refcount > 0) \
404 return sc_term_remove(&sw); \
410 static moduledata_t scterm_##name##_mod = { \
412 scterm_##name##_event, \
415 DECLARE_MODULE(scterm_##name, scterm_##name##_mod, \
416 SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
418 /* renderer function table */
419 typedef void vr_draw_border_t(scr_stat
*scp
, int color
);
420 typedef void vr_draw_t(scr_stat
*scp
, int from
, int count
, int flip
);
421 typedef void vr_set_cursor_t(scr_stat
*scp
, int base
, int height
, int blink
);
422 typedef void vr_draw_cursor_t(scr_stat
*scp
, int at
, int blink
,
424 typedef void vr_blink_cursor_t(scr_stat
*scp
, int at
, int flip
);
425 typedef void vr_set_mouse_t(scr_stat
*scp
);
426 typedef void vr_draw_mouse_t(scr_stat
*scp
, int x
, int y
, int on
);
428 typedef struct sc_rndr_sw
{
429 vr_draw_border_t
*draw_border
;
431 vr_set_cursor_t
*set_cursor
;
432 vr_draw_cursor_t
*draw_cursor
;
433 vr_blink_cursor_t
*blink_cursor
;
434 vr_draw_mouse_t
*draw_mouse
;
437 typedef struct sc_renderer
{
440 sc_rndr_sw_t
*rndrsw
;
441 LIST_ENTRY(sc_renderer
) link
;
444 extern struct linker_set scrndr_set
;
446 #define RENDERER(name, model, sw, set) \
447 static struct sc_renderer scrndr_##name##_##model = { \
450 DATA_SET(scrndr_set, scrndr_##name##_##model); \
451 DATA_SET(set, scrndr_##name##_##model)
453 #define RENDERER_MODULE(name, set) \
454 SET_DECLARE(set, sc_renderer_t); \
456 scrndr_##name##_event(module_t mod, int type, void *data) \
458 sc_renderer_t **list; \
462 SET_FOREACH(list, set) { \
463 error = sc_render_add(*list); \
469 SET_FOREACH(list, set) { \
470 error = sc_render_remove(*list); \
480 static moduledata_t scrndr_##name##_mod = { \
482 scrndr_##name##_event, \
485 DECLARE_MODULE(scrndr_##name, scrndr_##name##_mod, \
486 SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
496 #define ISTEXTSC(scp) (!((scp)->status \
497 & (UNKNOWN_MODE | GRAPHICS_MODE | PIXEL_MODE)))
498 #define ISGRAPHSC(scp) (((scp)->status \
499 & (UNKNOWN_MODE | GRAPHICS_MODE)))
500 #define ISPIXELSC(scp) (((scp)->status \
501 & (UNKNOWN_MODE | GRAPHICS_MODE | PIXEL_MODE))\
503 #define ISUNKNOWNSC(scp) ((scp)->status & UNKNOWN_MODE)
505 #define ISMOUSEAVAIL(af) ((af) & V_ADP_FONT)
506 #define ISFONTAVAIL(af) ((af) & V_ADP_FONT)
507 #define ISPALAVAIL(af) ((af) & V_ADP_PALETTE)
509 #define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
512 int sc_probe_unit(int unit
, int flags
);
513 int sc_attach_unit(int unit
, int flags
);
515 int set_mode(scr_stat
*scp
);
516 void refresh_ega_palette(scr_stat
*scp
);
518 void sc_set_border(scr_stat
*scp
, int color
);
519 void sc_load_font(scr_stat
*scp
, int page
, int size
, u_char
*font
,
520 int base
, int count
);
521 void sc_save_font(scr_stat
*scp
, int page
, int size
, u_char
*font
,
522 int base
, int count
);
523 void sc_show_font(scr_stat
*scp
, int page
);
525 void sc_touch_scrn_saver(void);
526 void sc_draw_cursor_image(scr_stat
*scp
);
527 void sc_remove_cursor_image(scr_stat
*scp
);
528 void sc_set_cursor_image(scr_stat
*scp
);
529 int sc_clean_up(scr_stat
*scp
);
530 int sc_switch_scr(sc_softc_t
*sc
, u_int next_scr
);
531 void sc_alloc_scr_buffer(scr_stat
*scp
, int wait
, int discard
);
532 int sc_init_emulator(scr_stat
*scp
, char *name
);
533 void sc_paste(scr_stat
*scp
, u_char
*p
, int count
);
534 void sc_bell(scr_stat
*scp
, int pitch
, int duration
);
535 void sc_font_scale(scr_stat
*scp
, int max_cols
, int max_rows
);
538 #ifndef SC_NO_HISTORY
539 int sc_alloc_history_buffer(scr_stat
*scp
, int lines
,
540 int prev_ysize
, int wait
);
541 void sc_free_history_buffer(scr_stat
*scp
, int prev_ysize
);
542 void sc_hist_save(scr_stat
*scp
);
543 #define sc_hist_save_one_line(scp, from) \
544 sc_vtb_append(&(scp)->vtb, (from), (scp)->history, (scp)->xsize)
545 int sc_hist_restore(scr_stat
*scp
);
546 void sc_hist_home(scr_stat
*scp
);
547 void sc_hist_getback(scr_stat
*scp
, int old_ysize
);
548 void sc_hist_end(scr_stat
*scp
);
549 int sc_hist_up_line(scr_stat
*scp
);
550 int sc_hist_down_line(scr_stat
*scp
);
551 int sc_hist_ioctl(struct tty
*tp
, u_long cmd
, caddr_t data
,
553 #endif /* SC_NO_HISTORY */
556 #ifndef SC_NO_CUTPASTE
557 void sc_alloc_cut_buffer(scr_stat
*scp
, int wait
);
558 void sc_draw_mouse_image(scr_stat
*scp
);
559 void sc_remove_mouse_image(scr_stat
*scp
);
560 int sc_inside_cutmark(scr_stat
*scp
, int pos
);
561 void sc_remove_cutmarking(scr_stat
*scp
);
562 void sc_remove_all_cutmarkings(sc_softc_t
*scp
);
563 void sc_remove_all_mouse(sc_softc_t
*scp
);
565 #define sc_draw_mouse_image(scp)
566 #define sc_remove_mouse_image(scp)
567 #define sc_inside_cutmark(scp, pos) FALSE
568 #define sc_remove_cutmarking(scp)
569 #define sc_remove_all_cutmarkings(scp)
570 #define sc_remove_all_mouse(scp)
571 #endif /* SC_NO_CUTPASTE */
572 #ifndef SC_NO_SYSMOUSE
573 void sc_mouse_move(scr_stat
*scp
, int x
, int y
);
574 int sc_mouse_ioctl(struct tty
*tp
, u_long cmd
, caddr_t data
,
576 #endif /* SC_NO_SYSMOUSE */
579 int sc_set_text_mode(scr_stat
*scp
, struct tty
*tp
, int mode
,
580 int xsize
, int ysize
, int fontsize
);
581 int sc_set_graphics_mode(scr_stat
*scp
, struct tty
*tp
, int mode
);
582 int sc_set_pixel_mode(scr_stat
*scp
, struct tty
*tp
,
583 int xsize
, int ysize
, int fontsize
);
584 int sc_vid_ioctl(struct tty
*tp
, u_long cmd
, caddr_t data
,
587 int sc_render_add(sc_renderer_t
*rndr
);
588 int sc_render_remove(sc_renderer_t
*rndr
);
589 sc_rndr_sw_t
*sc_render_match(scr_stat
*scp
, char *name
, int model
);
590 void sc_update_render(scr_stat
*scp
);
593 void sc_vtb_init(sc_vtb_t
*vtb
, int type
, int cols
, int rows
,
594 void *buffer
, int wait
);
595 void sc_vtb_destroy(sc_vtb_t
*vtb
);
596 size_t sc_vtb_size(int cols
, int rows
);
597 void sc_vtb_clear(sc_vtb_t
*vtb
, int c
, int attr
);
599 int sc_vtb_getc(sc_vtb_t
*vtb
, int at
);
600 int sc_vtb_geta(sc_vtb_t
*vtb
, int at
);
601 void sc_vtb_putc(sc_vtb_t
*vtb
, int at
, int c
, int a
);
602 uint16_t *sc_vtb_putchar(sc_vtb_t
*vtb
, uint16_t *p
, int c
, int a
);
603 int sc_vtb_pos(sc_vtb_t
*vtb
, int pos
, int offset
);
605 #define sc_vtb_tail(vtb) ((vtb)->vtb_tail)
606 #define sc_vtb_rows(vtb) ((vtb)->vtb_rows)
607 #define sc_vtb_cols(vtb) ((vtb)->vtb_cols)
609 void sc_vtb_copy(sc_vtb_t
*vtb1
, int from
, sc_vtb_t
*vtb2
, int to
,
611 void sc_vtb_append(sc_vtb_t
*vtb1
, int from
, sc_vtb_t
*vtb2
,
613 void sc_vtb_seek(sc_vtb_t
*vtb
, int pos
);
614 void sc_vtb_erase(sc_vtb_t
*vtb
, int at
, int count
, int c
, int attr
);
615 void sc_vtb_move(sc_vtb_t
*vtb
, int from
, int to
, int count
);
616 void sc_vtb_delete(sc_vtb_t
*vtb
, int at
, int count
, int c
, int attr
);
617 void sc_vtb_ins(sc_vtb_t
*vtb
, int at
, int count
, int c
, int attr
);
620 int sysmouse_event(mouse_info_t
*info
);
623 void sc_move_cursor(scr_stat
*scp
, int x
, int y
);
624 void sc_clear_screen(scr_stat
*scp
);
625 int sc_term_add(sc_term_sw_t
*sw
);
626 int sc_term_remove(sc_term_sw_t
*sw
);
627 sc_term_sw_t
*sc_term_match(char *name
);
628 sc_term_sw_t
*sc_term_match_by_number(int index
);
630 /* machine dependent functions */
631 int sc_max_unit(void);
632 sc_softc_t
*sc_get_softc(int unit
, int flags
);
633 sc_softc_t
*sc_find_softc(struct video_adapter
*adp
, struct keyboard
*kbd
);
634 int sc_get_cons_priority(int *unit
, int *flags
);
635 void sc_get_bios_values(bios_values_t
*values
);
636 int sc_tone(int hertz
);
638 #endif /* !_DEV_SYSCONS_SYSCONS_H_ */