diff options
Diffstat (limited to 'include/linux/vgaarb.h')
-rw-r--r-- | include/linux/vgaarb.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/vgaarb.h b/include/linux/vgaarb.h index e81c64af80c1..2dfaa293ae8c 100644 --- a/include/linux/vgaarb.h +++ b/include/linux/vgaarb.h | |||
@@ -1,5 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * vgaarb.c | 2 | * The VGA aribiter manages VGA space routing and VGA resource decode to |
3 | * allow multiple VGA devices to be used in a system in a safe way. | ||
3 | * | 4 | * |
4 | * (C) Copyright 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> | 5 | * (C) Copyright 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> |
5 | * (C) Copyright 2007 Paulo R. Zanoni <przanoni@gmail.com> | 6 | * (C) Copyright 2007 Paulo R. Zanoni <przanoni@gmail.com> |
@@ -41,7 +42,7 @@ | |||
41 | * interrupts at any time. | 42 | * interrupts at any time. |
42 | */ | 43 | */ |
43 | extern void vga_set_legacy_decoding(struct pci_dev *pdev, | 44 | extern void vga_set_legacy_decoding(struct pci_dev *pdev, |
44 | unsigned int decodes); | 45 | unsigned int decodes); |
45 | 46 | ||
46 | /** | 47 | /** |
47 | * vga_get - acquire & locks VGA resources | 48 | * vga_get - acquire & locks VGA resources |
@@ -193,8 +194,17 @@ static inline int vga_conflicts(struct pci_dev *p1, struct pci_dev *p2) | |||
193 | * They driver will get a callback when VGA arbitration is first used | 194 | * They driver will get a callback when VGA arbitration is first used |
194 | * by userspace since we some older X servers have issues. | 195 | * by userspace since we some older X servers have issues. |
195 | */ | 196 | */ |
197 | #if defined(CONFIG_VGA_ARB) | ||
196 | int vga_client_register(struct pci_dev *pdev, void *cookie, | 198 | int vga_client_register(struct pci_dev *pdev, void *cookie, |
197 | void (*irq_set_state)(void *cookie, bool state), | 199 | void (*irq_set_state)(void *cookie, bool state), |
198 | unsigned int (*set_vga_decode)(void *cookie, bool state)); | 200 | unsigned int (*set_vga_decode)(void *cookie, bool state)); |
201 | #else | ||
202 | static inline int vga_client_register(struct pci_dev *pdev, void *cookie, | ||
203 | void (*irq_set_state)(void *cookie, bool state), | ||
204 | unsigned int (*set_vga_decode)(void *cookie, bool state)) | ||
205 | { | ||
206 | return 0; | ||
207 | } | ||
208 | #endif | ||
199 | 209 | ||
200 | #endif /* LINUX_VGA_H */ | 210 | #endif /* LINUX_VGA_H */ |