1 /* 2 * Copyright 2014 SHS SERVICES GmbH 3 * Copyright 2006-2009 Luc Verhaegen. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the "Software"), 7 * to deal in the Software without restriction, including without limitation 8 * the rights to use, copy, modify, merge, publish, distribute, sub license, 9 * and/or sell copies of the Software, and to permit persons to whom the 10 * Software is furnished to do so, subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice (including the 13 * next paragraph) shall be included in all copies or substantial portions 14 * 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 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 * DEALINGS IN THE SOFTWARE. 23 */ 24 25 #ifndef _VIA_VT1632_H_ 26 #define _VIA_VT1632_H_ 1 27 28 #define VIA_VT1632_VEN 0x20 29 #define VIA_VT1632_HEN 0x10 30 #define VIA_VT1632_DSEL 0x08 31 #define VIA_VT1632_BSEL 0x04 32 #define VIA_VT1632_EDGE 0x02 33 #define VIA_VT1632_PDB 0x01 34 35 typedef struct _viaVT1632Rec { 36 I2CDevPtr VT1632I2CDev; 37 38 int DotclockMin; 39 int DotclockMax; 40 CARD8 Register08; 41 CARD8 Register09; 42 CARD8 Register0A; 43 CARD8 Register0C; 44 } viaVT1632Rec, *viaVT1632RecPtr; 45 46 47 extern const xf86OutputFuncsRec via_vt1632_funcs; 48 49 Bool viaVT1632Init(ScrnInfoPtr pScrn, I2CBusPtr pI2CBus); 50 51 #endif /* _VIA_VT1632_H_ */ 52