XenevaOS
Loading...
Searching...
No Matches
vga_switcheroo.h
Go to the documentation of this file.
1/*
2 * DCL vga_switcheroo.h -- no discrete GPU to switch.
3 *
4 * drm_edid.c's switcheroo wrappers and drm_file.c's delayed-switch drain
5 * call these; every one returns the "nothing happened" answer, so the DDC
6 * lock/unlock pair around an adapter that does not exist is balanced.
7 */
8#ifndef _LINUX_VGA_SWITCHEROO_H
9#define _LINUX_VGA_SWITCHEROO_H
10
11struct pci_dev;
12
13static inline int vga_switcheroo_lock_ddc(struct pci_dev *pdev)
14{
15 (void)pdev;
16 return 0;
17}
18
19static inline int vga_switcheroo_unlock_ddc(struct pci_dev *pdev)
20{
21 (void)pdev;
22 return 0;
23}
24
25static inline void vga_switcheroo_process_delayed_switch(void) { }
26
27#endif /* _LINUX_VGA_SWITCHEROO_H */
Definition pci.h:102