aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h2
-rw-r--r--include/linux/pci_ids.h1
-rw-r--r--include/linux/vga_switcheroo.h6
3 files changed, 3 insertions, 6 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 024a1beda008..ae42289662df 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1147,6 +1147,8 @@ void pci_pme_wakeup_bus(struct pci_bus *bus);
1147void pci_d3cold_enable(struct pci_dev *dev); 1147void pci_d3cold_enable(struct pci_dev *dev);
1148void pci_d3cold_disable(struct pci_dev *dev); 1148void pci_d3cold_disable(struct pci_dev *dev);
1149bool pcie_relaxed_ordering_enabled(struct pci_dev *dev); 1149bool pcie_relaxed_ordering_enabled(struct pci_dev *dev);
1150void pci_wakeup_bus(struct pci_bus *bus);
1151void pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state);
1150 1152
1151/* PCI Virtual Channel */ 1153/* PCI Virtual Channel */
1152int pci_save_vc_state(struct pci_dev *dev); 1154int pci_save_vc_state(struct pci_dev *dev);
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index a6b30667a331..a637a7d8ce5b 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -45,6 +45,7 @@
45#define PCI_CLASS_MULTIMEDIA_VIDEO 0x0400 45#define PCI_CLASS_MULTIMEDIA_VIDEO 0x0400
46#define PCI_CLASS_MULTIMEDIA_AUDIO 0x0401 46#define PCI_CLASS_MULTIMEDIA_AUDIO 0x0401
47#define PCI_CLASS_MULTIMEDIA_PHONE 0x0402 47#define PCI_CLASS_MULTIMEDIA_PHONE 0x0402
48#define PCI_CLASS_MULTIMEDIA_HD_AUDIO 0x0403
48#define PCI_CLASS_MULTIMEDIA_OTHER 0x0480 49#define PCI_CLASS_MULTIMEDIA_OTHER 0x0480
49 50
50#define PCI_BASE_CLASS_MEMORY 0x05 51#define PCI_BASE_CLASS_MEMORY 0x05
diff --git a/include/linux/vga_switcheroo.h b/include/linux/vga_switcheroo.h
index 960bedbdec87..77f0f0af3a71 100644
--- a/include/linux/vga_switcheroo.h
+++ b/include/linux/vga_switcheroo.h
@@ -168,11 +168,8 @@ int vga_switcheroo_process_delayed_switch(void);
168bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev); 168bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev);
169enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev); 169enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev);
170 170
171void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic);
172
173int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain); 171int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain);
174void vga_switcheroo_fini_domain_pm_ops(struct device *dev); 172void vga_switcheroo_fini_domain_pm_ops(struct device *dev);
175int vga_switcheroo_init_domain_pm_optimus_hdmi_audio(struct device *dev, struct dev_pm_domain *domain);
176#else 173#else
177 174
178static inline void vga_switcheroo_unregister_client(struct pci_dev *dev) {} 175static inline void vga_switcheroo_unregister_client(struct pci_dev *dev) {}
@@ -192,11 +189,8 @@ static inline int vga_switcheroo_process_delayed_switch(void) { return 0; }
192static inline bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev) { return false; } 189static inline bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev) { return false; }
193static inline enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev) { return VGA_SWITCHEROO_ON; } 190static inline enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev) { return VGA_SWITCHEROO_ON; }
194 191
195static inline void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic) {}
196
197static inline int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; } 192static inline int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; }
198static inline void vga_switcheroo_fini_domain_pm_ops(struct device *dev) {} 193static inline void vga_switcheroo_fini_domain_pm_ops(struct device *dev) {}
199static inline int vga_switcheroo_init_domain_pm_optimus_hdmi_audio(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; }
200 194
201#endif 195#endif
202#endif /* _LINUX_VGA_SWITCHEROO_H_ */ 196#endif /* _LINUX_VGA_SWITCHEROO_H_ */