diff options
author | Dave Airlie <airlied@redhat.com> | 2009-06-05 09:32:10 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-05 09:32:10 +1000 |
commit | 9ae22c87743c624bda593a1ef4bd4eca01c65655 (patch) | |
tree | 79e3338c68d20bbfa65c96fdaf8d71f2cc1bdc54 /include | |
parent | 9ae66143550a6aee25d9a9620c5bebf93fa196e5 (diff) |
vgaarb: fixup api and decode rsrc.
This fixes up the API and stores the vga arb fd in the sys_pci structure,
instead of hiding it in a random dev struct.
It also reads back after setting the target and works out the decodes.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/pciaccess.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/pciaccess.h b/include/pciaccess.h index fa6787f..2230b27 100644 --- a/include/pciaccess.h +++ b/include/pciaccess.h @@ -380,7 +380,6 @@ struct pci_device { * Used by the VGA arbiter. Type of resource decoded by the device and * the file descriptor (/dev/vga_arbiter). */ int vgaarb_rsrc; - int vgaarb_fd; }; @@ -493,8 +492,8 @@ struct pci_pcmcia_bridge_info { #define VGA_ARB_RSRC_NORMAL_IO 0x04 #define VGA_ARB_RSRC_NORMAL_MEM 0x08 -int pci_device_vgaarb_init (struct pci_device *dev); -void pci_device_vgaarb_fini (struct pci_device *dev); +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 pci_device_vgaarb_lock (struct pci_device *dev); |