1ae115bc7Smrj /* 2ae115bc7Smrj * CDDL HEADER START 3ae115bc7Smrj * 4ae115bc7Smrj * The contents of this file are subject to the terms of the 5ae115bc7Smrj * Common Development and Distribution License (the "License"). 6ae115bc7Smrj * You may not use this file except in compliance with the License. 7ae115bc7Smrj * 8ae115bc7Smrj * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9ae115bc7Smrj * or http://www.opensolaris.org/os/licensing. 10ae115bc7Smrj * See the License for the specific language governing permissions 11ae115bc7Smrj * and limitations under the License. 12ae115bc7Smrj * 13ae115bc7Smrj * When distributing Covered Code, include this CDDL HEADER in each 14ae115bc7Smrj * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15ae115bc7Smrj * If applicable, add the following below this CDDL HEADER, with the 16ae115bc7Smrj * fields enclosed by brackets "[]" replaced with your own identifying 17ae115bc7Smrj * information: Portions Copyright [yyyy] [name of copyright owner] 18ae115bc7Smrj * 19ae115bc7Smrj * CDDL HEADER END 20ae115bc7Smrj */ 21ae115bc7Smrj /* 22ae115bc7Smrj * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23ae115bc7Smrj * Use is subject to license terms. 24ae115bc7Smrj */ 25ae115bc7Smrj 26ae115bc7Smrj #ifndef _BOOT_VGA_H 27ae115bc7Smrj #define _BOOT_VGA_H 28ae115bc7Smrj 29ae115bc7Smrj #pragma ident "%Z%%M% %I% %E% SMI" 30ae115bc7Smrj 31ae115bc7Smrj /* 32ae115bc7Smrj * Interface to the bootstrap's internal VGA driver. 33ae115bc7Smrj */ 34ae115bc7Smrj 35ae115bc7Smrj #ifdef __cplusplus 36ae115bc7Smrj extern "C" { 37ae115bc7Smrj #endif 38ae115bc7Smrj 39ae115bc7Smrj #define VGA_IO_WMR 0x3C8 /* vga io DAC write mode register */ 40ae115bc7Smrj #define VGA_IO_DR 0x3C9 /* vga io DAC data register */ 41ae115bc7Smrj #define VGA_IO_IS 0x3DA /* vga io input status register */ 42ae115bc7Smrj 43ae115bc7Smrj #define VGA_TEXT_COLS 80 44ae115bc7Smrj #define VGA_TEXT_ROWS 25 45ae115bc7Smrj 46ae115bc7Smrj extern void vga_setpos(int, int); 47ae115bc7Smrj extern void vga_getpos(int *, int *); 48ae115bc7Smrj extern void vga_clear(int); 49ae115bc7Smrj extern void vga_scroll(int); 50ae115bc7Smrj extern void vga_drawc(int, int); 51*843e1988Sjohnlev extern void vga_cursor_display(void); 52ae115bc7Smrj 53ae115bc7Smrj #ifdef __cplusplus 54ae115bc7Smrj } 55ae115bc7Smrj #endif 56ae115bc7Smrj 57ae115bc7Smrj #endif /* _BOOT_VGA_H */ 58