diff options
Diffstat (limited to 'include/linux/vgaarb.h')
-rw-r--r-- | include/linux/vgaarb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/vgaarb.h b/include/linux/vgaarb.h index b572f80bdfd5..0ee42d9acdc0 100644 --- a/include/linux/vgaarb.h +++ b/include/linux/vgaarb.h | |||
@@ -31,6 +31,7 @@ | |||
31 | #ifndef LINUX_VGA_H | 31 | #ifndef LINUX_VGA_H |
32 | #define LINUX_VGA_H | 32 | #define LINUX_VGA_H |
33 | 33 | ||
34 | #include <video/vga.h> | ||
34 | 35 | ||
35 | /* Legacy VGA regions */ | 36 | /* Legacy VGA regions */ |
36 | #define VGA_RSRC_NONE 0x00 | 37 | #define VGA_RSRC_NONE 0x00 |
@@ -182,7 +183,13 @@ extern void vga_put(struct pci_dev *pdev, unsigned int rsrc); | |||
182 | */ | 183 | */ |
183 | 184 | ||
184 | #ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE | 185 | #ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE |
186 | #ifdef CONFIG_VGA_ARB | ||
185 | extern struct pci_dev *vga_default_device(void); | 187 | extern struct pci_dev *vga_default_device(void); |
188 | extern void vga_set_default_device(struct pci_dev *pdev); | ||
189 | #else | ||
190 | static inline struct pci_dev *vga_default_device(void) { return NULL; }; | ||
191 | static inline void vga_set_default_device(struct pci_dev *pdev) { }; | ||
192 | #endif | ||
186 | #endif | 193 | #endif |
187 | 194 | ||
188 | /** | 195 | /** |