diff options
author | Dave Airlie <airlied@redhat.com> | 2009-08-28 11:24:53 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-28 11:24:53 +1000 |
commit | 2f997f90c8d0b54baab85285703550e8df28325e (patch) | |
tree | 46fdcf117ada8be25c4a2d3ca6fe124305fcb17b /src/common_vgaarb_stub.c | |
parent | b229acdfd10fd61f46d8e711910b5c1bdb727857 (diff) | |
download | libpciaccess-2f997f90c8d0b54baab85285703550e8df28325e.tar.gz libpciaccess-2f997f90c8d0b54baab85285703550e8df28325e.tar.bz2 libpciaccess-2f997f90c8d0b54baab85285703550e8df28325e.zip |
vgaarb: update stub interface
Diffstat (limited to 'src/common_vgaarb_stub.c')
-rw-r--r-- | src/common_vgaarb_stub.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/common_vgaarb_stub.c b/src/common_vgaarb_stub.c index 5fc5dfe..764733b 100644 --- a/src/common_vgaarb_stub.c +++ b/src/common_vgaarb_stub.c @@ -28,46 +28,52 @@ #include "pciaccess.h" int -pci_device_vgaarb_init(struct pci_device *dev) +pci_device_vgaarb_init(void) { #ifdef DEBUG fprintf(stderr, "%s: You're using VGA arbiter stub functions!\n", __FUNCTION__); #endif - return 0; + return -1; } void -pci_device_vgaarb_fini(struct pci_device *dev) +pci_device_vgaarb_fini(void) { } int pci_device_vgaarb_set_target(struct pci_device *dev) { - return 0; + return -1; } int -pci_device_vgaarb_decodes(struct pci_device *dev) +pci_device_vgaarb_decodes(int new_vga_rsrc) { - return 0; + return -1; } int -pci_device_vgaarb_lock(struct pci_device *dev) +pci_device_vgaarb_lock(void) { - return 0; + return -1; } int -pci_device_vgaarb_trylock(struct pci_device *dev) +pci_device_vgaarb_trylock(void) { - return 0; + return -1; } int -pci_device_vgaarb_unlock(struct pci_device *dev) +pci_device_vgaarb_unlock(void); { return 0; } + +int pci_device_vgaarb_get_info(struct pci_device *dev, int *vga_count, + int *rsrc_decodes) +{ + return -1; +} |