1 /* Public domain. */ 2 3 #ifndef _LINUX_VGA_SWITCHEROO_H 4 #define _LINUX_VGA_SWITCHEROO_H 5 6 #include <linux/fb.h> 7 8 #define VGA_SWITCHEROO_CAN_SWITCH_DDC 1 9 10 struct pci_dev; 11 struct dev_pm_domain; 12 13 struct vga_switcheroo_client_ops { 14 }; 15 16 static inline int vga_switcheroo_register_client(struct pci_dev * pdev,const struct vga_switcheroo_client_ops * ops,bool x)17vga_switcheroo_register_client(struct pci_dev *pdev, 18 const struct vga_switcheroo_client_ops *ops, bool x) 19 { 20 return 0; 21 } 22 23 static inline void vga_switcheroo_unregister_client(struct pci_dev * pdev)24vga_switcheroo_unregister_client(struct pci_dev *pdev) 25 { 26 } 27 28 static inline void vga_switcheroo_process_delayed_switch(void)29vga_switcheroo_process_delayed_switch(void) 30 { 31 } 32 33 static inline void vga_switcheroo_fini_domain_pm_ops(struct device * dev)34vga_switcheroo_fini_domain_pm_ops(struct device *dev) 35 { 36 } 37 38 static inline int vga_switcheroo_handler_flags(void)39vga_switcheroo_handler_flags(void) 40 { 41 return 0; 42 } 43 44 static inline void vga_switcheroo_client_fb_set(struct pci_dev * pdev,struct fb_info * fbi)45vga_switcheroo_client_fb_set(struct pci_dev *pdev, struct fb_info *fbi) 46 { 47 } 48 49 static inline void vga_switcheroo_init_domain_pm_ops(struct device * dev,struct dev_pm_domain * dom)50vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *dom) 51 { 52 } 53 54 static inline int vga_switcheroo_lock_ddc(struct pci_dev * pdev)55vga_switcheroo_lock_ddc(struct pci_dev *pdev) 56 { 57 return -ENOSYS; 58 } 59 60 static inline int vga_switcheroo_unlock_ddc(struct pci_dev * pdev)61vga_switcheroo_unlock_ddc(struct pci_dev *pdev) 62 { 63 return -ENOSYS; 64 } 65 66 static inline bool vga_switcheroo_client_probe_defer(struct pci_dev * pdev)67vga_switcheroo_client_probe_defer(struct pci_dev *pdev) 68 { 69 return false; 70 } 71 72 #endif 73