tcx_regs.h revision e4da13ee
1/*
2 * TCX framebuffer - hardware registers.
3 *
4 * Copyright (C) 2000 Jakub Jelinek (jakub@redhat.com)
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19 * JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/suntcx/tcx_regs.h,v 1.1 2000/06/30 17:15:17 dawes Exp $ */
24
25#ifndef TCX_REGS_H
26#define TCX_REGS_H
27
28/* THC definitions */
29#define TCX_THC_MISC_REV_SHIFT       16
30#define TCX_THC_MISC_REV_MASK        15
31#define TCX_THC_MISC_RESET           (1 << 12)
32#define TCX_THC_MISC_VIDEO           (1 << 10)
33#define TCX_THC_MISC_SYNC            (1 << 9)
34#define TCX_THC_MISC_VSYNC           (1 << 8)
35#define TCX_THC_MISC_SYNC_ENAB       (1 << 7)
36#define TCX_THC_MISC_CURS_RES        (1 << 6)
37#define TCX_THC_MISC_INT_ENAB        (1 << 5)
38#define TCX_THC_MISC_INT             (1 << 4)
39#define TCX_THC_MISC_INIT            0x9f
40
41typedef struct tcx_thc {
42        unsigned int		thc_pad0[512];
43	volatile unsigned int	thc_hs;		/* hsync timing */
44	volatile unsigned int	thc_hsdvs;
45	volatile unsigned int	thc_hd;
46	volatile unsigned int	thc_vs;		/* vsync timing */
47	volatile unsigned int	thc_vd;
48	volatile unsigned int	thc_refresh;
49	volatile unsigned int	thc_misc;
50	unsigned int		thc_pad1[56];
51	volatile unsigned int	thc_cursxy;	/* cursor x,y position (16 bits each) */
52	volatile unsigned int	thc_cursmask[32];/* cursor mask bits */
53	volatile unsigned int	thc_cursbits[32];/* what to show where mask enabled */
54} TcxThc, *TcxThcPtr;
55
56#endif /* TCX_REGS_H */
57