summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-31 16:15:55 +1000
committerDave Airlie <airlied@redhat.com>2009-07-31 16:15:55 +1000
commite5127339c6c48ae6f63f9dc841a94fe960d11496 (patch)
tree839ac0e3274296c452813aaac15847edcda4755b /include
parent0596c559af5ca277a069b04a6402d21724464cda (diff)
vgaarb: change API to target taking a device + lock/unlock not taking one
working on the target device - a target device of NULL reselects the target that existed when we started. this is mainly to allow a udev posting tool to return to the state of what happened before it ran.
Diffstat (limited to 'include')
-rw-r--r--include/pciaccess.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/pciaccess.h b/include/pciaccess.h
index 9d68a08..71c831e 100644
--- a/include/pciaccess.h
+++ b/include/pciaccess.h
@@ -497,9 +497,10 @@ struct pci_pcmcia_bridge_info {
int pci_device_vgaarb_init (void);
void pci_device_vgaarb_fini (void);
int pci_device_vgaarb_set_target (struct pci_device *dev);
-int pci_device_vgaarb_decodes (struct pci_device *dev, int new_vga_rsrc);
-int pci_device_vgaarb_lock (struct pci_device *dev);
-int pci_device_vgaarb_trylock (struct pci_device *dev);
-int pci_device_vgaarb_unlock (struct pci_device *dev);
+/* use the targetted device */
+int pci_device_vgaarb_decodes (int new_vga_rsrc);
+int pci_device_vgaarb_lock (void);
+int pci_device_vgaarb_trylock (void);
+int pci_device_vgaarb_unlock (void);
#endif /* PCIACCESS_H */