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 24#ifndef TCX_REGS_H 25#define TCX_REGS_H 26 27/* THC definitions */ 28#define TCX_THC_MISC_REV_SHIFT 16 29#define TCX_THC_MISC_REV_MASK 15 30#define TCX_THC_MISC_RESET (1 << 12) 31#define TCX_THC_MISC_VIDEO (1 << 10) 32#define TCX_THC_MISC_SYNC (1 << 9) 33#define TCX_THC_MISC_VSYNC (1 << 8) 34#define TCX_THC_MISC_SYNC_ENAB (1 << 7) 35#define TCX_THC_MISC_CURS_RES (1 << 6) 36#define TCX_THC_MISC_INT_ENAB (1 << 5) 37#define TCX_THC_MISC_INT (1 << 4) 38#define TCX_THC_MISC_INIT 0x9f 39 40typedef struct tcx_thc { 41 unsigned int thc_pad0[512]; 42 volatile unsigned int thc_hs; /* hsync timing */ 43 volatile unsigned int thc_hsdvs; 44 volatile unsigned int thc_hd; 45 volatile unsigned int thc_vs; /* vsync timing */ 46 volatile unsigned int thc_vd; 47 volatile unsigned int thc_refresh; 48 volatile unsigned int thc_misc; 49 unsigned int thc_pad1[56]; 50 volatile unsigned int thc_cursxy; /* cursor x,y position (16 bits each) */ 51 volatile unsigned int thc_cursmask[32];/* cursor mask bits */ 52 volatile unsigned int thc_cursbits[32];/* what to show where mask enabled */ 53} TcxThc, *TcxThcPtr; 54 55#endif /* TCX_REGS_H */ 56