* we have to call the PCI routines directly.
*/
+#ifdef CONFIG_PCI
/**
* pci_pme_capable - check the capability of PCI device to generate PME#
* @dev: PCI device to handle.
return !!(pme_support & (1 << state));
}
EXPORT_SYMBOL_GPL(pci_pme_capable);
+#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
/**
#endif /* CONFIG_USB */
#endif
+#ifdef CONFIG_PCI
void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
{
/*
pci_resource_len(pdev, bar));
}
EXPORT_SYMBOL_GPL(pci_ioremap_bar);
+#endif
static unsigned long round_jiffies_common(unsigned long j, int cpu,
bool force_up)
}
EXPORT_SYMBOL_GPL(n_tty_ioctl_helper);
+#ifdef CONFIG_PCI
/**
* pci_wake_from_d3 - enable/disable device to wake up from D3_hot or D3_cold
* @dev: PCI device to prepare
pci_enable_wake(dev, PCI_D3hot, enable);
}
EXPORT_SYMBOL_GPL(pci_wake_from_d3);
+#endif
}
EXPORT_SYMBOL_GPL(mod_delayed_work);
+#ifdef CONFIG_PCI
/*
* Kernels >= 3.7 get their PCI-E Capabilities Register cached
* via the pci_dev->pcie_flags_reg so for older kernels we have
return ret;
}
EXPORT_SYMBOL_GPL(pcie_capability_clear_and_set_dword);
+#endif
#ifdef KERNEL_HAS_OF_SUPPORT
#ifdef CONFIG_OF