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