cg6thc.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 1989, Sun Microsystems, Inc.
*/
#ifndef _SYS_CG6THC_H
#define _SYS_CG6THC_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* TEC Hardware Configuration registers.
*
* Hardware register offsets from base address. These offsets are
* intended to be added to a pointer-to-integer whose value is the
* base address of the CG6 memory mapped register area.
*/
/* hardware configuration registers */
#define THC_HCMISC_REV_SHIFT 16
#define THC_HCMISC_REV_MASK 15
#define THC_HCMISC_RESET 0x1000
#define THC_HCMISC_VIDEO 0x0400
#define THC_HCMISC_SYNC 0x0200
#define THC_HCMISC_VSYNC 0x0100
#define THC_HCMISC_SYNCEN 0x0080
#define THC_HCMISC_CURSOR_RES 0x0040
#define THC_HCMISC_INTEN 0x0020
#define THC_HCMISC_INT 0x0010
#define THC_HCMISC_INIT 0x009f
#define THC_HCMISC_CLEAR_VBLANK_IRQ 0x008f
((thc)->l_thc_hcmisc = \
((on) ? THC_HCMISC_VIDEO : 0))
#define thc_get_video(thc) \
#define thc_int_enable(thc) \
#define thc_int_disable(thc) \
((thc)->l_thc_hcmisc = \
#define thc_int_pending(thc) \
/* cursor address register */
/* cursor data registers, plane A */
/* cursor data registers, plane B */
/*
* THC Cursor ADDRESS register bits.
*/
struct l_thc_cursor {
};
/*
* THC Video Timing registers bits.
*/
struct l_thc_hchs {
};
struct l_thc_hchsdvs {
};
struct l_thc_hchd {
};
struct l_thc_hcvs {
};
struct l_thc_hcvd {
};
struct l_thc_hcr {
};
/*
* THC HCMISC register bits.
*/
typedef enum {
typedef enum {
struct l_thc_hcmisc {
};
/*
* define THC registers as a structure.
*/
struct thc {
#ifdef structures
#else
#endif
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_CG6THC_H */