From e5127339c6c48ae6f63f9dc841a94fe960d11496 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 31 Jul 2009 16:15:55 +1000 Subject: 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. --- include/pciaccess.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.1