xref: /onnv-gate/usr/src/uts/i86pc/boot/boot_vga.h (revision 5084:7d838c5c0eed)
13446Smrj /*
23446Smrj  * CDDL HEADER START
33446Smrj  *
43446Smrj  * The contents of this file are subject to the terms of the
53446Smrj  * Common Development and Distribution License (the "License").
63446Smrj  * You may not use this file except in compliance with the License.
73446Smrj  *
83446Smrj  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93446Smrj  * or http://www.opensolaris.org/os/licensing.
103446Smrj  * See the License for the specific language governing permissions
113446Smrj  * and limitations under the License.
123446Smrj  *
133446Smrj  * When distributing Covered Code, include this CDDL HEADER in each
143446Smrj  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153446Smrj  * If applicable, add the following below this CDDL HEADER, with the
163446Smrj  * fields enclosed by brackets "[]" replaced with your own identifying
173446Smrj  * information: Portions Copyright [yyyy] [name of copyright owner]
183446Smrj  *
193446Smrj  * CDDL HEADER END
203446Smrj  */
213446Smrj /*
223446Smrj  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
233446Smrj  * Use is subject to license terms.
243446Smrj  */
253446Smrj 
263446Smrj #ifndef _BOOT_VGA_H
273446Smrj #define	_BOOT_VGA_H
283446Smrj 
293446Smrj #pragma ident	"%Z%%M%	%I%	%E% SMI"
303446Smrj 
313446Smrj /*
323446Smrj  * Interface to the bootstrap's internal VGA driver.
333446Smrj  */
343446Smrj 
353446Smrj #ifdef __cplusplus
363446Smrj extern "C" {
373446Smrj #endif
383446Smrj 
393446Smrj #define	VGA_IO_WMR	0x3C8 /* vga io DAC write mode register */
403446Smrj #define	VGA_IO_DR	0x3C9 /* vga io DAC data register */
413446Smrj #define	VGA_IO_IS	0x3DA /* vga io input status register */
423446Smrj 
433446Smrj #define	VGA_TEXT_COLS		80
443446Smrj #define	VGA_TEXT_ROWS		25
453446Smrj 
463446Smrj extern void vga_setpos(int, int);
473446Smrj extern void vga_getpos(int *, int *);
483446Smrj extern void vga_clear(int);
493446Smrj extern void vga_scroll(int);
503446Smrj extern void vga_drawc(int, int);
51*5084Sjohnlev extern void vga_cursor_display(void);
523446Smrj 
533446Smrj #ifdef __cplusplus
543446Smrj }
553446Smrj #endif
563446Smrj 
573446Smrj #endif /* _BOOT_VGA_H */
58