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