16747b715Smrg/* 26747b715Smrg * Copyright (c) 2009 Tiago Vignatti 36747b715Smrg * 46747b715Smrg * Permission is hereby granted, free of charge, to any person 56747b715Smrg * obtaining a copy of this software and associated documentation 66747b715Smrg * files (the "Software"), to deal in the Software without 76747b715Smrg * restriction, including without limitation the rights to use, 86747b715Smrg * copy, modify, merge, publish, distribute, sublicense, and/or sell 96747b715Smrg * copies of the Software, and to permit persons to whom the 106747b715Smrg * Software is furnished to do so, subject to the following 116747b715Smrg * conditions: 126747b715Smrg * 136747b715Smrg * The above copyright notice and this permission notice shall be 146747b715Smrg * included in all copies or substantial portions of the Software. 156747b715Smrg * 166747b715Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 176747b715Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 186747b715Smrg * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 196747b715Smrg * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 206747b715Smrg * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 216747b715Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 226747b715Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 236747b715Smrg * OTHER DEALINGS IN THE SOFTWARE. 246747b715Smrg */ 256747b715Smrg 266747b715Smrg#ifndef __XF86VGAARBITER_H 276747b715Smrg#define __XF86VGAARBITER_H 286747b715Smrg 296747b715Smrg#include "screenint.h" 306747b715Smrg#include "misc.h" 316747b715Smrg#include "xf86.h" 326747b715Smrg 336747b715Smrg/* Functions */ 346747b715Smrgextern void xf86VGAarbiterInit(void); 356747b715Smrgextern void xf86VGAarbiterFini(void); 366747b715Smrgvoid xf86VGAarbiterScrnInit(ScrnInfoPtr pScrn); 376747b715Smrgextern Bool xf86VGAarbiterWrapFunctions(void); 386747b715Smrgextern void xf86VGAarbiterLock(ScrnInfoPtr pScrn); 396747b715Smrgextern void xf86VGAarbiterUnlock(ScrnInfoPtr pScrn); 406747b715Smrg 416747b715Smrg/* allow a driver to remove itself from arbiter - really should be 426747b715Smrg * done in the kernel though */ 439ace9065Smrgextern _X_EXPORT void xf86VGAarbiterDeviceDecodes(ScrnInfoPtr pScrn, int rsrc); 4435c4bbdfSmrg 456747b715Smrg/* DRI and arbiter are really not possible together, 466747b715Smrg * you really want to remove the card from arbitration if you can */ 476747b715Smrgextern _X_EXPORT Bool xf86VGAarbiterAllowDRI(ScreenPtr pScreen); 486747b715Smrg 4935c4bbdfSmrg#endif /* __XF86VGAARBITER_H */ 50