diff options
Diffstat (limited to 'include/linux/bcma')
| -rw-r--r-- | include/linux/bcma/bcma.h | 9 | ||||
| -rw-r--r-- | include/linux/bcma/bcma_driver_pci.h | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h index 44057b45ed32..e34f906647d3 100644 --- a/include/linux/bcma/bcma.h +++ b/include/linux/bcma/bcma.h | |||
| @@ -437,6 +437,8 @@ static inline struct bcma_device *bcma_find_core(struct bcma_bus *bus, | |||
| 437 | #ifdef CONFIG_BCMA_HOST_PCI | 437 | #ifdef CONFIG_BCMA_HOST_PCI |
| 438 | extern void bcma_host_pci_up(struct bcma_bus *bus); | 438 | extern void bcma_host_pci_up(struct bcma_bus *bus); |
| 439 | extern void bcma_host_pci_down(struct bcma_bus *bus); | 439 | extern void bcma_host_pci_down(struct bcma_bus *bus); |
| 440 | extern int bcma_host_pci_irq_ctl(struct bcma_bus *bus, | ||
| 441 | struct bcma_device *core, bool enable); | ||
| 440 | #else | 442 | #else |
| 441 | static inline void bcma_host_pci_up(struct bcma_bus *bus) | 443 | static inline void bcma_host_pci_up(struct bcma_bus *bus) |
| 442 | { | 444 | { |
| @@ -444,6 +446,13 @@ static inline void bcma_host_pci_up(struct bcma_bus *bus) | |||
| 444 | static inline void bcma_host_pci_down(struct bcma_bus *bus) | 446 | static inline void bcma_host_pci_down(struct bcma_bus *bus) |
| 445 | { | 447 | { |
| 446 | } | 448 | } |
| 449 | static inline int bcma_host_pci_irq_ctl(struct bcma_bus *bus, | ||
| 450 | struct bcma_device *core, bool enable) | ||
| 451 | { | ||
| 452 | if (bus->hosttype == BCMA_HOSTTYPE_PCI) | ||
| 453 | return -ENOTSUPP; | ||
| 454 | return 0; | ||
| 455 | } | ||
| 447 | #endif | 456 | #endif |
| 448 | 457 | ||
| 449 | extern bool bcma_core_is_enabled(struct bcma_device *core); | 458 | extern bool bcma_core_is_enabled(struct bcma_device *core); |
diff --git a/include/linux/bcma/bcma_driver_pci.h b/include/linux/bcma/bcma_driver_pci.h index 8e90004fdfd7..5ba6918ca20b 100644 --- a/include/linux/bcma/bcma_driver_pci.h +++ b/include/linux/bcma/bcma_driver_pci.h | |||
| @@ -238,9 +238,13 @@ struct bcma_drv_pci { | |||
| 238 | #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) | 238 | #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) |
| 239 | #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) | 239 | #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) |
| 240 | 240 | ||
| 241 | extern int bcma_core_pci_irq_ctl(struct bcma_bus *bus, | 241 | #ifdef CONFIG_BCMA_DRIVER_PCI |
| 242 | struct bcma_device *core, bool enable); | ||
| 243 | extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up); | 242 | extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up); |
| 243 | #else | ||
| 244 | static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) | ||
| 245 | { | ||
| 246 | } | ||
| 247 | #endif | ||
| 244 | 248 | ||
| 245 | extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); | 249 | extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); |
| 246 | extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); | 250 | extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); |
