diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pci.h | 2 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 1 | ||||
-rw-r--r-- | include/linux/vga_switcheroo.h | 6 |
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); | |||
1147 | void pci_d3cold_enable(struct pci_dev *dev); | 1147 | void pci_d3cold_enable(struct pci_dev *dev); |
1148 | void pci_d3cold_disable(struct pci_dev *dev); | 1148 | void pci_d3cold_disable(struct pci_dev *dev); |
1149 | bool pcie_relaxed_ordering_enabled(struct pci_dev *dev); | 1149 | bool pcie_relaxed_ordering_enabled(struct pci_dev *dev); |
1150 | void pci_wakeup_bus(struct pci_bus *bus); | ||
1151 | void pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state); | ||
1150 | 1152 | ||
1151 | /* PCI Virtual Channel */ | 1153 | /* PCI Virtual Channel */ |
1152 | int pci_save_vc_state(struct pci_dev *dev); | 1154 | int 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); | |||
168 | bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev); | 168 | bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev); |
169 | enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev); | 169 | enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev); |
170 | 170 | ||
171 | void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic); | ||
172 | |||
173 | int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain); | 171 | int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain); |
174 | void vga_switcheroo_fini_domain_pm_ops(struct device *dev); | 172 | void vga_switcheroo_fini_domain_pm_ops(struct device *dev); |
175 | int vga_switcheroo_init_domain_pm_optimus_hdmi_audio(struct device *dev, struct dev_pm_domain *domain); | ||
176 | #else | 173 | #else |
177 | 174 | ||
178 | static inline void vga_switcheroo_unregister_client(struct pci_dev *dev) {} | 175 | static 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; } | |||
192 | static inline bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev) { return false; } | 189 | static inline bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev) { return false; } |
193 | static inline enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev) { return VGA_SWITCHEROO_ON; } | 190 | static inline enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev) { return VGA_SWITCHEROO_ON; } |
194 | 191 | ||
195 | static inline void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic) {} | ||
196 | |||
197 | static inline int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; } | 192 | static inline int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; } |
198 | static inline void vga_switcheroo_fini_domain_pm_ops(struct device *dev) {} | 193 | static inline void vga_switcheroo_fini_domain_pm_ops(struct device *dev) {} |
199 | static 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_ */ |