45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 2009 Tiago Vignatti
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person
45e9809aff7304721fddb95654901b32195c9c7avboxsync * obtaining a copy of this software and associated documentation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * files (the "Software"), to deal in the Software without
45e9809aff7304721fddb95654901b32195c9c7avboxsync * restriction, including without limitation the rights to use,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy, modify, merge, publish, distribute, sublicense, and/or sell
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following
45e9809aff7304721fddb95654901b32195c9c7avboxsync * conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be
45e9809aff7304721fddb95654901b32195c9c7avboxsync * included in all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
45e9809aff7304721fddb95654901b32195c9c7avboxsync * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
45e9809aff7304721fddb95654901b32195c9c7avboxsync * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef __XF86VGAARBITER_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define __XF86VGAARBITER_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "screenint.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "misc.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Functions */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86VGAarbiterInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86VGAarbiterFini(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86VGAarbiterScrnInit(ScrnInfoPtr pScrn);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86VGAarbiterWrapFunctions(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86VGAarbiterLock(ScrnInfoPtr pScrn);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86VGAarbiterUnlock(ScrnInfoPtr pScrn);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* allow a driver to remove itself from arbiter - really should be
45e9809aff7304721fddb95654901b32195c9c7avboxsync * done in the kernel though */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86VGAarbiterDeviceDecodes(ScrnInfoPtr pScrn);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* DRI and arbiter are really not possible together,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * you really want to remove the card from arbitration if you can */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86VGAarbiterAllowDRI(ScreenPtr pScreen);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* __XF86VGAARBITER_H */