diff options
Diffstat (limited to 'drivers/ssb/ssb_private.h')
-rw-r--r-- | drivers/ssb/ssb_private.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/ssb/ssb_private.h b/drivers/ssb/ssb_private.h index 25433565dfda..0331139a726f 100644 --- a/drivers/ssb/ssb_private.h +++ b/drivers/ssb/ssb_private.h | |||
@@ -176,19 +176,27 @@ extern const struct ssb_sprom *ssb_get_fallback_sprom(void); | |||
176 | 176 | ||
177 | /* core.c */ | 177 | /* core.c */ |
178 | extern u32 ssb_calc_clock_rate(u32 plltype, u32 n, u32 m); | 178 | extern u32 ssb_calc_clock_rate(u32 plltype, u32 n, u32 m); |
179 | extern int ssb_devices_freeze(struct ssb_bus *bus); | ||
180 | extern int ssb_devices_thaw(struct ssb_bus *bus); | ||
181 | extern struct ssb_bus *ssb_pci_dev_to_bus(struct pci_dev *pdev); | 179 | extern struct ssb_bus *ssb_pci_dev_to_bus(struct pci_dev *pdev); |
182 | int ssb_for_each_bus_call(unsigned long data, | 180 | int ssb_for_each_bus_call(unsigned long data, |
183 | int (*func)(struct ssb_bus *bus, unsigned long data)); | 181 | int (*func)(struct ssb_bus *bus, unsigned long data)); |
184 | extern struct ssb_bus *ssb_pcmcia_dev_to_bus(struct pcmcia_device *pdev); | 182 | extern struct ssb_bus *ssb_pcmcia_dev_to_bus(struct pcmcia_device *pdev); |
185 | 183 | ||
184 | struct ssb_freeze_context { | ||
185 | /* Pointer to the bus */ | ||
186 | struct ssb_bus *bus; | ||
187 | /* Boolean list to indicate whether a device is frozen on this bus. */ | ||
188 | bool device_frozen[SSB_MAX_NR_CORES]; | ||
189 | }; | ||
190 | extern int ssb_devices_freeze(struct ssb_bus *bus, struct ssb_freeze_context *ctx); | ||
191 | extern int ssb_devices_thaw(struct ssb_freeze_context *ctx); | ||
192 | |||
193 | |||
186 | 194 | ||
187 | /* b43_pci_bridge.c */ | 195 | /* b43_pci_bridge.c */ |
188 | #ifdef CONFIG_SSB_B43_PCI_BRIDGE | 196 | #ifdef CONFIG_SSB_B43_PCI_BRIDGE |
189 | extern int __init b43_pci_ssb_bridge_init(void); | 197 | extern int __init b43_pci_ssb_bridge_init(void); |
190 | extern void __exit b43_pci_ssb_bridge_exit(void); | 198 | extern void __exit b43_pci_ssb_bridge_exit(void); |
191 | #else /* CONFIG_SSB_B43_PCI_BRIDGR */ | 199 | #else /* CONFIG_SSB_B43_PCI_BRIDGE */ |
192 | static inline int b43_pci_ssb_bridge_init(void) | 200 | static inline int b43_pci_ssb_bridge_init(void) |
193 | { | 201 | { |
194 | return 0; | 202 | return 0; |
@@ -196,6 +204,6 @@ static inline int b43_pci_ssb_bridge_init(void) | |||
196 | static inline void b43_pci_ssb_bridge_exit(void) | 204 | static inline void b43_pci_ssb_bridge_exit(void) |
197 | { | 205 | { |
198 | } | 206 | } |
199 | #endif /* CONFIG_SSB_PCIHOST */ | 207 | #endif /* CONFIG_SSB_B43_PCI_BRIDGE */ |
200 | 208 | ||
201 | #endif /* LINUX_SSB_PRIVATE_H_ */ | 209 | #endif /* LINUX_SSB_PRIVATE_H_ */ |