11 #include <linux/export.h>
16 #include <linux/pci.h>
23 if (ssb_chipco_available(&bus->
chipco)) {
27 if (ssb_extif_available(&bus->
extif)) {
41 if (ssb_chipco_available(&bus->
chipco))
43 else if (ssb_extif_available(&bus->
extif))
47 spin_unlock_irqrestore(&bus->gpio_lock, flags);
59 if (ssb_chipco_available(&bus->
chipco))
61 else if (ssb_extif_available(&bus->
extif))
65 spin_unlock_irqrestore(&bus->gpio_lock, flags);
77 if (ssb_chipco_available(&bus->
chipco))
79 else if (ssb_extif_available(&bus->
extif))
83 spin_unlock_irqrestore(&bus->gpio_lock, flags);
95 if (ssb_chipco_available(&bus->
chipco))
97 spin_unlock_irqrestore(&bus->gpio_lock, flags);
109 if (ssb_chipco_available(&bus->
chipco))
111 else if (ssb_extif_available(&bus->
extif))
115 spin_unlock_irqrestore(&bus->gpio_lock, flags);
127 if (ssb_chipco_available(&bus->
chipco))
129 else if (ssb_extif_available(&bus->
extif))
133 spin_unlock_irqrestore(&bus->gpio_lock, flags);
139 #ifdef CONFIG_SSB_DRIVER_GIGE
140 static int gige_pci_init_callback(
struct ssb_bus *
bus,
unsigned long data)
153 !device_is_registered(dev->
dev))
168 err = ssb_pcicore_plat_dev_init(dev);
171 #ifdef CONFIG_SSB_DRIVER_GIGE
181 #ifdef CONFIG_SSB_DRIVER_GIGE
182 static int gige_map_irq_callback(
struct ssb_bus *bus,
unsigned long data)
195 !device_is_registered(dev->
dev))
213 res = ssb_pcicore_pcibios_map_irq(dev, slot, pin);
216 #ifdef CONFIG_SSB_DRIVER_GIGE