memfb.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 (c) 1988,1997-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYS_SBUSDEV_MEMFB_H
#define _SYS_SBUSDEV_MEMFB_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Sbus memory frame buffer definitions
*/
/* frame buffer address offsets */
#define MFB_OFF_ID 0 /* ID register/ROM */
#define MFB_ID_MASK 0xFFFFFFF0
#define MFB_ID_VALUE 0xFE010100
/* colormap (Bt458) */
struct mfb_cmap {
};
/* number of colormap entries */
#define MFB_CMAP_ENTRIES 256
/* video registers */
struct mfb_reg {
};
/* control register bits (read-write) */
/* status register bits (read-only, write to clear interrupt) */
#define MFB_SR_1024_768 0x10
#define MFB_SR_1152_900 0x30
#define MFB_SR_1280_1024 0x40
#define MFB_SR_1600_1280 0x50
#define MFB_SR_ID_COLOR 0x01
#define MFB_SR_ID_MONO 0x02
#define MFB_SR_ID_MONO_ECL 0x03
/* set video enable */
((on) ? MFB_CR_VIDEO : 0))
/* get video enable */
/* interrupt enable */
/* interrupt disable */
#define mfb_int_disable(mp) \
/* is interrupt pending? */
/* mmap offset for registers (superuser only) */
#define MFB_REG_MMAP_OFFSET 0x10000000
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SBUSDEV_MEMFB_H */