17e6fb56fSmrg/* 27e6fb56fSmrg * Copyright 2004-2005 The Unichrome Project [unichrome.sf.net] 37e6fb56fSmrg * 47e6fb56fSmrg * Permission is hereby granted, free of charge, to any person obtaining a 57e6fb56fSmrg * copy of this software and associated documentation files (the "Software"), 67e6fb56fSmrg * to deal in the Software without restriction, including without limitation 77e6fb56fSmrg * the rights to use, copy, modify, merge, publish, distribute, sub license, 87e6fb56fSmrg * and/or sell copies of the Software, and to permit persons to whom the 97e6fb56fSmrg * Software is furnished to do so, subject to the following conditions: 107e6fb56fSmrg * 117e6fb56fSmrg * The above copyright notice and this permission notice (including the 127e6fb56fSmrg * next paragraph) shall be included in all copies or substantial portions 137e6fb56fSmrg * of the Software. 147e6fb56fSmrg * 157e6fb56fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 167e6fb56fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 177e6fb56fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 187e6fb56fSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 197e6fb56fSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 207e6fb56fSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 217e6fb56fSmrg * DEALINGS IN THE SOFTWARE. 227e6fb56fSmrg */ 237e6fb56fSmrg#ifndef _VIA_VGAHW_H_ 247e6fb56fSmrg#define _VIA_VGAHW_H_ 257e6fb56fSmrg 267e6fb56fSmrg#include "vgaHW.h" 277e6fb56fSmrg 287e6fb56fSmrgCARD8 ViaVgahwIn(vgaHWPtr hwp, int address); 297e6fb56fSmrgvoid ViaVgahwWrite(vgaHWPtr hwp, int indexaddress, CARD8 index, 307e6fb56fSmrg int valueaddress, CARD8 value); 317e6fb56fSmrg 327e6fb56fSmrgvoid ViaVgahwMask(vgaHWPtr hwp, int indexaddress, CARD8 index, 337e6fb56fSmrg int valueaddress, CARD8 value, CARD8 mask); 347e6fb56fSmrg 357e6fb56fSmrgvoid ViaCrtcMask(vgaHWPtr hwp, CARD8 index, CARD8 value, CARD8 mask); 367e6fb56fSmrgvoid ViaSeqMask(vgaHWPtr hwp, CARD8 index, CARD8 value, CARD8 mask); 377e6fb56fSmrgvoid ViaGrMask(vgaHWPtr hwp, CARD8 index, CARD8 value, CARD8 mask); 387e6fb56fSmrg 397e6fb56fSmrg#ifdef HAVE_DEBUG 407e6fb56fSmrgvoid ViaVgahwPrint(vgaHWPtr hwp); 417e6fb56fSmrg#endif /* HAVE_DEBUG */ 427e6fb56fSmrg 437e6fb56fSmrg#endif /* _VIA_VGAHW_H_ */ 44