149f872b5Smrg/*
249f872b5Smrg * Copyright (c) 2009 Tiago Vignatti
349f872b5Smrg *
449f872b5Smrg * Permission is hereby granted, free of charge, to any person
549f872b5Smrg * obtaining a copy of this software and associated documentation
649f872b5Smrg * files (the "Software"), to deal in the Software without
749f872b5Smrg * restriction, including without limitation the rights to use,
849f872b5Smrg * copy, modify, merge, publish, distribute, sublicense, and/or sell
949f872b5Smrg * copies of the Software, and to permit persons to whom the
1049f872b5Smrg * Software is furnished to do so, subject to the following
1149f872b5Smrg * conditions:
1249f872b5Smrg *
1349f872b5Smrg * The above copyright notice and this permission notice shall be
1449f872b5Smrg * included in all copies or substantial portions of the Software.
1549f872b5Smrg *
1649f872b5Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1749f872b5Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
1849f872b5Smrg * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1949f872b5Smrg * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
2049f872b5Smrg * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
2149f872b5Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2249f872b5Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2349f872b5Smrg * OTHER DEALINGS IN THE SOFTWARE.
2449f872b5Smrg *
2549f872b5Smrg */
2649310723Smrg#ifdef HAVE_CONFIG_H
2749310723Smrg#include "config.h"
2849310723Smrg#endif
2949f872b5Smrg
3049f872b5Smrg#include <stdio.h>
3149f872b5Smrg#include "pciaccess.h"
3249f872b5Smrg
3349f872b5Smrgint
3449f872b5Smrgpci_device_vgaarb_init(void)
3549f872b5Smrg{
3649f872b5Smrg#ifdef DEBUG
3749f872b5Smrg    fprintf(stderr, "%s: You're using VGA arbiter stub functions!\n",
3849f872b5Smrg                                                            __FUNCTION__);
3949f872b5Smrg#endif
4049f872b5Smrg    return -1;
4149f872b5Smrg}
4249f872b5Smrg
4349f872b5Smrgvoid
4449f872b5Smrgpci_device_vgaarb_fini(void)
4549f872b5Smrg{
4649f872b5Smrg}
4749f872b5Smrg
4849f872b5Smrgint
4949f872b5Smrgpci_device_vgaarb_set_target(struct pci_device *dev)
5049f872b5Smrg{
5149f872b5Smrg    return -1;
5249f872b5Smrg}
5349f872b5Smrg
5449f872b5Smrgint
5549f872b5Smrgpci_device_vgaarb_decodes(int new_vga_rsrc)
5649f872b5Smrg{
5749f872b5Smrg    return -1;
5849f872b5Smrg}
5949f872b5Smrg
6049f872b5Smrgint
6149f872b5Smrgpci_device_vgaarb_lock(void)
6249f872b5Smrg{
6349f872b5Smrg    return -1;
6449f872b5Smrg}
6549f872b5Smrg
6649f872b5Smrgint
6749f872b5Smrgpci_device_vgaarb_trylock(void)
6849f872b5Smrg{
6949f872b5Smrg    return -1;
7049f872b5Smrg}
7149f872b5Smrg
7249f872b5Smrgint
7349f872b5Smrgpci_device_vgaarb_unlock(void)
7449f872b5Smrg{
7549f872b5Smrg    return 0;
7649f872b5Smrg}
7749f872b5Smrg
7849f872b5Smrgint pci_device_vgaarb_get_info(struct pci_device *dev, int *vga_count,
7949f872b5Smrg			       int *rsrc_decodes)
8049f872b5Smrg{
8149f872b5Smrg    return -1;
8249f872b5Smrg}
83