1963d66acSmrg/* 2963d66acSmrg * Copyright 2014 SHS SERVICES GmbH 3983b4bf2Smrg * Copyright 2006-2009 Luc Verhaegen. 4963d66acSmrg * 5963d66acSmrg * Permission is hereby granted, free of charge, to any person obtaining a 6963d66acSmrg * copy of this software and associated documentation files (the "Software"), 7963d66acSmrg * to deal in the Software without restriction, including without limitation 8963d66acSmrg * the rights to use, copy, modify, merge, publish, distribute, sub license, 9963d66acSmrg * and/or sell copies of the Software, and to permit persons to whom the 10963d66acSmrg * Software is furnished to do so, subject to the following conditions: 11963d66acSmrg * 12963d66acSmrg * The above copyright notice and this permission notice (including the 13963d66acSmrg * next paragraph) shall be included in all copies or substantial portions 14963d66acSmrg * of the Software. 15963d66acSmrg * 16963d66acSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17963d66acSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18963d66acSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19963d66acSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20963d66acSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21963d66acSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22963d66acSmrg * DEALINGS IN THE SOFTWARE. 23963d66acSmrg */ 24963d66acSmrg 25963d66acSmrg#ifndef _VIA_VT1632_H_ 26963d66acSmrg#define _VIA_VT1632_H_ 1 27963d66acSmrg 28963d66acSmrg#define VIA_VT1632_VEN 0x20 29963d66acSmrg#define VIA_VT1632_HEN 0x10 30963d66acSmrg#define VIA_VT1632_DSEL 0x08 31963d66acSmrg#define VIA_VT1632_BSEL 0x04 32963d66acSmrg#define VIA_VT1632_EDGE 0x02 33963d66acSmrg#define VIA_VT1632_PDB 0x01 34963d66acSmrg 35983b4bf2Smrgtypedef struct _viaVT1632Rec { 36963d66acSmrg I2CDevPtr VT1632I2CDev; 37963d66acSmrg 38963d66acSmrg int DotclockMin; 39963d66acSmrg int DotclockMax; 40963d66acSmrg CARD8 Register08; 41963d66acSmrg CARD8 Register09; 42963d66acSmrg CARD8 Register0A; 43963d66acSmrg CARD8 Register0C; 44983b4bf2Smrg} viaVT1632Rec, *viaVT1632RecPtr; 45983b4bf2Smrg 46983b4bf2Smrg 47ad01e365Sjoergextern const xf86OutputFuncsRec via_vt1632_funcs; 48983b4bf2Smrg 49983b4bf2SmrgBool viaVT1632Init(ScrnInfoPtr pScrn, I2CBusPtr pI2CBus); 50963d66acSmrg 51963d66acSmrg#endif /* _VIA_VT1632_H_ */ 52