/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_VGAREG_H
#define _SYS_VGAREG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* VGA frame buffer hardware definitions.
*/
/*
* General VGA registers
* These are relative to their register set, which
* the 3c0-3df set.
*/
/*
* Attribute controller index bits
*/
/*
* Miscellaneous output bits
*/
/*
* CRT Controller registers
*/
#define VGA_CRTC_E_H_BLNK_PUT_EHB(n) \
((n)&0x1f)
#define VGA_CRTC_E_H_SY_P_PUT_EHB(n) \
#define VGA_CRTC_E_H_SY_P_PUT_EHS(n) \
((n)&0x1f)
#define VGA_CRTC_OVFL_REG_VT8 0
#define VGA_CRTC_OVFL_REG_PUT_VT(n) \
#define VGA_CRTC_OVFL_REG_PUT_VDE(n) \
#define VGA_CRTC_OVFL_REG_PUT_VRS(n) \
#define VGA_CRTC_OVFL_REG_PUT_LCM(n) \
#define VGA_CRTC_OVFL_REG_PUT_SVB(n) \
#define VGA_CRTC_MAX_S_LN_PUT_SVB(n) \
#define VGA_CRTC_MAX_S_LN_PUT_LCM(n) \
#define VGA_CRTC_VRE_PUT_VRE(n) \
((n)&0x0f)
/*
* Sequencer registers
*/
/*
* Graphics Controller
*/
/*
* Attribute controller registers
*/
/*
* Low-memory frame buffer definitions. These are relative to the
* A0000 register set.
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_VGAREG_H */