summaryrefslogtreecommitdiff
path: root/src/common_vgaarb_stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common_vgaarb_stub.c')
-rw-r--r--src/common_vgaarb_stub.c28
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;
+}