1999-01-09 02:44:50 +00:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
|
|
|
|
* 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 as
|
|
|
|
* the first lines of this file unmodified.
|
|
|
|
* 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 AUTHOR ``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 AUTHOR 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.
|
|
|
|
*
|
1999-08-28 01:08:13 +00:00
|
|
|
* $FreeBSD$
|
1999-01-09 02:44:50 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DEV_FB_FBREG_H_
|
|
|
|
#define _DEV_FB_FBREG_H_
|
|
|
|
|
1999-12-29 04:46:21 +00:00
|
|
|
#ifdef _KERNEL
|
1999-01-09 02:44:50 +00:00
|
|
|
|
|
|
|
#define V_MAX_ADAPTERS 8 /* XXX */
|
|
|
|
|
|
|
|
/* some macros */
|
|
|
|
#ifdef __i386__
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
#define bcopy_io(s, d, c) generic_bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bcopy_toio(s, d, c) generic_bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bcopy_fromio(s, d, c) generic_bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bzero_io(d, c) generic_bzero((void *)(d), (c))
|
|
|
|
#define fill_io(p, d, c) fill((p), (void *)(d), (c))
|
|
|
|
#define fillw_io(p, d, c) fillw((p), (void *)(d), (c))
|
1999-01-09 02:44:50 +00:00
|
|
|
void generic_bcopy(const void *s, void *d, size_t c);
|
|
|
|
void generic_bzero(void *d, size_t c);
|
2003-05-01 04:21:05 +00:00
|
|
|
#elif __amd64__
|
|
|
|
#define bcopy_io(s, d, c) bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bcopy_toio(s, d, c) bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bcopy_fromio(s, d, c) bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bzero_io(d, c) bzero((void *)(d), (c))
|
|
|
|
#define fill_io(p, d, c) fill((p), (void *)(d), (c))
|
|
|
|
#define fillw_io(p, d, c) fillw((p), (void *)(d), (c))
|
2003-04-29 07:06:44 +00:00
|
|
|
#elif __ia64__
|
|
|
|
#include <machine/bus.h>
|
|
|
|
#define bcopy_fromio(s, d, c) \
|
|
|
|
bus_space_read_region_1(IA64_BUS_SPACE_MEM, s, 0, (void*)(d), c)
|
|
|
|
#define bcopy_io(s, d, c) \
|
|
|
|
bus_space_copy_region_1(IA64_BUS_SPACE_MEM, s, 0, d, 0, c)
|
|
|
|
#define bcopy_toio(s, d, c) \
|
|
|
|
bus_space_write_region_1(IA64_BUS_SPACE_MEM, d, 0, (void*)(s), c)
|
|
|
|
#define bzero_io(d, c) \
|
2003-08-23 08:52:52 +00:00
|
|
|
bus_space_set_region_1(IA64_BUS_SPACE_MEM, (intptr_t)(d), 0, 0, c)
|
2003-04-29 07:06:44 +00:00
|
|
|
#define fill_io(p, d, c) \
|
2003-08-23 08:52:52 +00:00
|
|
|
bus_space_set_region_1(IA64_BUS_SPACE_MEM, (intptr_t)(d), 0, p, c)
|
2003-04-29 07:06:44 +00:00
|
|
|
#define fillw_io(p, d, c) \
|
2003-08-23 08:52:52 +00:00
|
|
|
bus_space_set_region_2(IA64_BUS_SPACE_MEM, (intptr_t)(d), 0, p, c)
|
|
|
|
#define readb(a) bus_space_read_1(IA64_BUS_SPACE_MEM, a, 0)
|
|
|
|
#define readw(a) bus_space_read_2(IA64_BUS_SPACE_MEM, a, 0)
|
|
|
|
#define writeb(a, v) bus_space_write_1(IA64_BUS_SPACE_MEM, a, 0, v)
|
|
|
|
#define writew(a, v) bus_space_write_2(IA64_BUS_SPACE_MEM, a, 0, v)
|
|
|
|
#define writel(a, v) bus_space_write_4(IA64_BUS_SPACE_MEM, a, 0, v)
|
2003-04-29 07:06:44 +00:00
|
|
|
static __inline void
|
|
|
|
fillw(int val, uint16_t *buf, size_t size)
|
|
|
|
{
|
|
|
|
while (size--)
|
|
|
|
*buf++ = val;
|
|
|
|
}
|
2004-01-21 05:08:51 +00:00
|
|
|
#elif __powerpc__
|
|
|
|
|
|
|
|
#define bcopy_io(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bcopy_toio(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bcopy_fromio(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c))
|
|
|
|
#define bzero_io(d, c) ofwfb_bzero((void *)(d), (c))
|
|
|
|
#define fillw(p, d, c) ofwfb_fillw((p), (void *)(d), (c))
|
|
|
|
#define fillw_io(p, d, c) ofwfb_fillw((p), (void *)(d), (c))
|
|
|
|
#define readw(a) ofwfb_readw((u_int16_t *)(a))
|
|
|
|
#define writew(a, v) ofwfb_writew((u_int16_t *)(a), (v))
|
|
|
|
void ofwfb_bcopy(const void *s, void *d, size_t c);
|
|
|
|
void ofwfb_bzero(void *d, size_t c);
|
|
|
|
void ofwfb_fillw(int pat, void *base, size_t cnt);
|
|
|
|
u_int16_t ofwfb_readw(u_int16_t *addr);
|
|
|
|
void ofwfb_writew(u_int16_t *addr, u_int16_t val);
|
|
|
|
|
|
|
|
#else /* !__i386__ && !__ia64__ && !__amd64__ && !__powerpc__ */
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
#define bcopy_io(s, d, c) memcpy_io((d), (s), (c))
|
|
|
|
#define bcopy_toio(s, d, c) memcpy_toio((d), (void *)(s), (c))
|
|
|
|
#define bcopy_fromio(s, d, c) memcpy_fromio((void *)(d), (s), (c))
|
|
|
|
#define bzero_io(d, c) memset_io((d), 0, (c))
|
|
|
|
#define fill_io(p, d, c) memset_io((d), (p), (c))
|
|
|
|
#define fillw(p, d, c) memsetw((d), (p), (c))
|
|
|
|
#define fillw_io(p, d, c) memsetw_io((d), (p), (c))
|
1999-01-09 02:44:50 +00:00
|
|
|
#endif /* !__i386__ */
|
|
|
|
|
|
|
|
/* video function table */
|
|
|
|
typedef int vi_probe_t(int unit, video_adapter_t **adpp, void *arg, int flags);
|
|
|
|
typedef int vi_init_t(int unit, video_adapter_t *adp, int flags);
|
|
|
|
typedef int vi_get_info_t(video_adapter_t *adp, int mode, video_info_t *info);
|
|
|
|
typedef int vi_query_mode_t(video_adapter_t *adp, video_info_t *info);
|
|
|
|
typedef int vi_set_mode_t(video_adapter_t *adp, int mode);
|
|
|
|
typedef int vi_save_font_t(video_adapter_t *adp, int page, int size,
|
|
|
|
u_char *data, int c, int count);
|
|
|
|
typedef int vi_load_font_t(video_adapter_t *adp, int page, int size,
|
|
|
|
u_char *data, int c, int count);
|
|
|
|
typedef int vi_show_font_t(video_adapter_t *adp, int page);
|
|
|
|
typedef int vi_save_palette_t(video_adapter_t *adp, u_char *palette);
|
|
|
|
typedef int vi_load_palette_t(video_adapter_t *adp, u_char *palette);
|
|
|
|
typedef int vi_set_border_t(video_adapter_t *adp, int border);
|
|
|
|
typedef int vi_save_state_t(video_adapter_t *adp, void *p, size_t size);
|
|
|
|
typedef int vi_load_state_t(video_adapter_t *adp, void *p);
|
|
|
|
typedef int vi_set_win_org_t(video_adapter_t *adp, off_t offset);
|
|
|
|
typedef int vi_read_hw_cursor_t(video_adapter_t *adp, int *col, int *row);
|
|
|
|
typedef int vi_set_hw_cursor_t(video_adapter_t *adp, int col, int row);
|
|
|
|
typedef int vi_set_hw_cursor_shape_t(video_adapter_t *adp, int base,
|
|
|
|
int height, int celsize, int blink);
|
|
|
|
typedef int vi_blank_display_t(video_adapter_t *adp, int mode);
|
2001-08-02 11:17:38 +00:00
|
|
|
/* defined in sys/fbio.h
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
#define V_DISPLAY_ON 0
|
|
|
|
#define V_DISPLAY_BLANK 1
|
|
|
|
#define V_DISPLAY_STAND_BY 2
|
|
|
|
#define V_DISPLAY_SUSPEND 3
|
2001-08-02 11:17:38 +00:00
|
|
|
*/
|
2003-02-25 03:21:22 +00:00
|
|
|
typedef int vi_mmap_t(video_adapter_t *adp, vm_offset_t offset,
|
2003-03-25 00:07:06 +00:00
|
|
|
vm_paddr_t *paddr, int prot);
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
typedef int vi_ioctl_t(video_adapter_t *adp, u_long cmd, caddr_t data);
|
|
|
|
typedef int vi_clear_t(video_adapter_t *adp);
|
|
|
|
typedef int vi_fill_rect_t(video_adapter_t *adp, int val, int x, int y,
|
|
|
|
int cx, int cy);
|
2002-04-13 22:34:16 +00:00
|
|
|
typedef int vi_bitblt_t(video_adapter_t *adp, ...);
|
1999-01-09 02:44:50 +00:00
|
|
|
typedef int vi_diag_t(video_adapter_t *adp, int level);
|
2002-04-13 22:34:16 +00:00
|
|
|
typedef int vi_save_cursor_palette_t(video_adapter_t *adp, u_char *palette);
|
|
|
|
typedef int vi_load_cursor_palette_t(video_adapter_t *adp, u_char *palette);
|
|
|
|
typedef int vi_copy_t(video_adapter_t *adp, vm_offset_t src, vm_offset_t dst,
|
|
|
|
int n);
|
|
|
|
typedef int vi_putp_t(video_adapter_t *adp, vm_offset_t off, u_int32_t p,
|
|
|
|
u_int32_t a, int size, int bpp, int bit_ltor,
|
|
|
|
int byte_ltor);
|
|
|
|
typedef int vi_putc_t(video_adapter_t *adp, vm_offset_t off, u_int8_t c,
|
|
|
|
u_int8_t a);
|
|
|
|
typedef int vi_puts_t(video_adapter_t *adp, vm_offset_t off, u_int16_t *s,
|
|
|
|
int len);
|
|
|
|
typedef int vi_putm_t(video_adapter_t *adp, int x, int y,
|
|
|
|
u_int8_t *pixel_image, u_int32_t pixel_mask, int size);
|
1999-01-09 02:44:50 +00:00
|
|
|
|
|
|
|
typedef struct video_switch {
|
|
|
|
vi_probe_t *probe;
|
|
|
|
vi_init_t *init;
|
|
|
|
vi_get_info_t *get_info;
|
|
|
|
vi_query_mode_t *query_mode;
|
|
|
|
vi_set_mode_t *set_mode;
|
|
|
|
vi_save_font_t *save_font;
|
|
|
|
vi_load_font_t *load_font;
|
|
|
|
vi_show_font_t *show_font;
|
|
|
|
vi_save_palette_t *save_palette;
|
|
|
|
vi_load_palette_t *load_palette;
|
|
|
|
vi_set_border_t *set_border;
|
|
|
|
vi_save_state_t *save_state;
|
|
|
|
vi_load_state_t *load_state;
|
|
|
|
vi_set_win_org_t *set_win_org;
|
|
|
|
vi_read_hw_cursor_t *read_hw_cursor;
|
|
|
|
vi_set_hw_cursor_t *set_hw_cursor;
|
|
|
|
vi_set_hw_cursor_shape_t *set_hw_cursor_shape;
|
|
|
|
vi_blank_display_t *blank_display;
|
|
|
|
vi_mmap_t *mmap;
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
vi_ioctl_t *ioctl;
|
|
|
|
vi_clear_t *clear;
|
|
|
|
vi_fill_rect_t *fill_rect;
|
|
|
|
vi_bitblt_t *bitblt;
|
|
|
|
int (*reserved1)(void);
|
|
|
|
int (*reserved2)(void);
|
1999-01-09 02:44:50 +00:00
|
|
|
vi_diag_t *diag;
|
2002-04-13 22:34:16 +00:00
|
|
|
vi_save_cursor_palette_t *save_cursor_palette;
|
|
|
|
vi_load_cursor_palette_t *load_cursor_palette;
|
|
|
|
vi_copy_t *copy;
|
|
|
|
vi_putp_t *putp;
|
|
|
|
vi_putc_t *putc;
|
|
|
|
vi_puts_t *puts;
|
|
|
|
vi_putm_t *putm;
|
1999-01-09 02:44:50 +00:00
|
|
|
} video_switch_t;
|
|
|
|
|
1999-04-12 13:34:58 +00:00
|
|
|
#define save_palette(adp, pal) \
|
|
|
|
(*vidsw[(adp)->va_index]->save_palette)((adp), (pal))
|
|
|
|
#define load_palette(adp, pal) \
|
|
|
|
(*vidsw[(adp)->va_index]->load_palette)((adp), (pal))
|
|
|
|
#define get_mode_info(adp, mode, buf) \
|
|
|
|
(*vidsw[(adp)->va_index]->get_info)((adp), (mode), (buf))
|
|
|
|
#define set_video_mode(adp, mode) \
|
|
|
|
(*vidsw[(adp)->va_index]->set_mode)((adp), (mode))
|
|
|
|
#define set_border(adp, border) \
|
|
|
|
(*vidsw[(adp)->va_index]->set_border)((adp), (border))
|
|
|
|
#define set_origin(adp, o) \
|
|
|
|
(*vidsw[(adp)->va_index]->set_win_org)(adp, o)
|
|
|
|
|
|
|
|
/* XXX - add more macros */
|
|
|
|
|
1999-01-09 02:44:50 +00:00
|
|
|
/* video driver */
|
|
|
|
typedef struct video_driver {
|
|
|
|
char *name;
|
|
|
|
video_switch_t *vidsw;
|
|
|
|
int (*configure)(int); /* backdoor for the console driver */
|
|
|
|
} video_driver_t;
|
|
|
|
|
|
|
|
#define VIDEO_DRIVER(name, sw, config) \
|
|
|
|
static struct video_driver name##_driver = { \
|
|
|
|
#name, &sw, config \
|
|
|
|
}; \
|
|
|
|
DATA_SET(videodriver_set, name##_driver);
|
|
|
|
|
|
|
|
/* global variables */
|
|
|
|
extern struct video_switch **vidsw;
|
|
|
|
|
|
|
|
/* functions for the video card driver */
|
|
|
|
int vid_register(video_adapter_t *adp);
|
|
|
|
int vid_unregister(video_adapter_t *adp);
|
|
|
|
video_switch_t *vid_get_switch(char *name);
|
|
|
|
void vid_init_struct(video_adapter_t *adp, char *name, int type,
|
|
|
|
int unit);
|
|
|
|
|
|
|
|
/* functions for the video card client */
|
|
|
|
int vid_allocate(char *driver, int unit, void *id);
|
|
|
|
int vid_release(video_adapter_t *adp, void *id);
|
|
|
|
int vid_find_adapter(char *driver, int unit);
|
|
|
|
video_adapter_t *vid_get_adapter(int index);
|
|
|
|
|
|
|
|
/* a backdoor for the console driver to tickle the video driver XXX */
|
|
|
|
int vid_configure(int flags);
|
|
|
|
#define VIO_PROBE_ONLY (1 << 0) /* probe only, don't initialize */
|
|
|
|
|
|
|
|
#ifdef FB_INSTALL_CDEV
|
|
|
|
|
|
|
|
/* virtual frame buffer driver functions */
|
2003-09-26 10:41:44 +00:00
|
|
|
int fb_attach(int unit, video_adapter_t *adp,
|
1999-01-09 02:44:50 +00:00
|
|
|
struct cdevsw *cdevsw);
|
2003-09-26 10:41:44 +00:00
|
|
|
int fb_detach(int unit, video_adapter_t *adp,
|
1999-01-09 02:44:50 +00:00
|
|
|
struct cdevsw *cdevsw);
|
|
|
|
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
/* generic frame buffer cdev driver functions */
|
|
|
|
|
|
|
|
typedef struct genfb_softc {
|
|
|
|
int gfb_flags; /* flag/status bits */
|
|
|
|
#define FB_OPEN (1 << 0)
|
|
|
|
} genfb_softc_t;
|
|
|
|
|
|
|
|
int genfbopen(genfb_softc_t *sc, video_adapter_t *adp,
|
2001-09-12 08:38:13 +00:00
|
|
|
int flag, int mode, struct thread *td);
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
int genfbclose(genfb_softc_t *sc, video_adapter_t *adp,
|
2001-09-12 08:38:13 +00:00
|
|
|
int flag, int mode, struct thread *td);
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
int genfbread(genfb_softc_t *sc, video_adapter_t *adp,
|
|
|
|
struct uio *uio, int flag);
|
|
|
|
int genfbwrite(genfb_softc_t *sc, video_adapter_t *adp,
|
|
|
|
struct uio *uio, int flag);
|
|
|
|
int genfbioctl(genfb_softc_t *sc, video_adapter_t *adp,
|
2001-09-12 08:38:13 +00:00
|
|
|
u_long cmd, caddr_t arg, int flag, struct thread *td);
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
int genfbmmap(genfb_softc_t *sc, video_adapter_t *adp,
|
2003-02-25 03:21:22 +00:00
|
|
|
vm_offset_t offset, vm_offset_t *paddr, int prot);
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
|
1999-01-09 02:44:50 +00:00
|
|
|
#endif /* FB_INSTALL_CDEV */
|
|
|
|
|
|
|
|
/* generic low-level driver functions */
|
|
|
|
|
|
|
|
void fb_dump_adp_info(char *driver, video_adapter_t *adp, int level);
|
|
|
|
void fb_dump_mode_info(char *driver, video_adapter_t *adp,
|
|
|
|
video_info_t *info, int level);
|
The second phase of syscons reorganization.
- Split syscons source code into manageable chunks and reorganize
some of complicated functions.
- Many static variables are moved to the softc structure.
- Added a new key function, PREV. When this key is pressed, the vty
immediately before the current vty will become foreground. Analogue
to PREV, which is usually assigned to the PrntScrn key.
PR: kern/10113
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
- Modified the kernel console input function sccngetc() so that it
handles function keys properly.
- Reorganized the screen update routine.
- VT switching code is reorganized. It now should be slightly more
robust than before.
- Added the DEVICE_RESUME function so that syscons no longer hooks the
APM resume event directly.
- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
SC_NO_HISTORY and SC_NO_SYSMOUSE.
Various parts of syscons can be omitted so that the kernel size is
reduced.
SC_PIXEL_MODE
Made the VESA 800x600 mode an option, rather than a standard part of
syscons.
SC_DISABLE_DDBKEY
Disables the `debug' key combination.
SC_ALT_MOUSE_IMAGE
Inverse the character cell at the mouse cursor position in the text
console, rather than drawing an arrow on the screen.
Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)
SC_DFLT_FONT
makeoptions "SC_DFLT_FONT=_font_name_"
Include the named font as the default font of syscons. 16-line,
14-line and 8-line font data will be compiled in. This option replaces
the existing STD8X16FONT option, which loads 16-line font data only.
- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.
- The video driver provides a set of ioctl commands to manipulate the
frame buffer.
- New kernel configuration option: VGA_WIDTH90
Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These
modes are mot always supported by the video card.
PR: i386/7510
Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.
- The header file machine/console.h is reorganized; its contents is now
split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
(another new file). machine/console.h is still maintained for
compatibility reasons.
- Kernel console selection/installation routines are fixed and
slightly rebumped so that it should now be possible to switch between
the interanl kernel console (sc or vt) and a remote kernel console
(sio) again, as it was in 2.x, 3.0 and 3.1.
- Screen savers and splash screen decoders
Because of the header file reorganization described above, screen
savers and splash screen decoders are slightly modified. After this
update, /sys/modules/syscons/saver.h is no longer necessary and is
removed.
1999-06-22 14:14:06 +00:00
|
|
|
int fb_type(int adp_type);
|
|
|
|
int fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg);
|
1999-01-09 02:44:50 +00:00
|
|
|
|
1999-12-29 04:46:21 +00:00
|
|
|
#endif /* _KERNEL */
|
1999-01-09 02:44:50 +00:00
|
|
|
|
|
|
|
#endif /* !_DEV_FB_FBREG_H_ */
|