pci-aspm.h was introduced in kernel 2.6.25 and is used by the ath5k driver. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- include/linux/pci-aspm.h | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) create mode 100644 include/linux/pci-aspm.h diff --git a/include/linux/pci-aspm.h b/include/linux/pci-aspm.h new file mode 100644 index 0000000..c791d00 --- /dev/null +++ b/include/linux/pci-aspm.h @@ -0,0 +1,55 @@ +#ifndef _COMPAT_LINUX_ASPM_H +#define _COMPAT_LINUX_ASPM_H + +#include <linux/version.h> + +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) +#include_next <linux/pci-aspm.h> +#else + +/* + * aspm.h + * + * PCI Express ASPM defines and function prototypes + * + * Copyright (C) 2007 Intel Corp. + * Zhang Yanmin (yanmin.zhang@xxxxxxxxx) + * Shaohua Li (shaohua.li@xxxxxxxxx) + * + * For more information, please consult the following manuals (look at + * http://www.pcisig.com/ for how to get them): + * + * PCI Express Specification + */ + +#include <linux/pci.h> + +#define PCIE_LINK_STATE_L0S 1 +#define PCIE_LINK_STATE_L1 2 +#define PCIE_LINK_STATE_CLKPM 4 + +static inline void pcie_aspm_init_link_state(struct pci_dev *pdev) +{ +} +static inline void pcie_aspm_exit_link_state(struct pci_dev *pdev) +{ +} +static inline void pcie_aspm_pm_state_change(struct pci_dev *pdev) +{ +} +static inline void pci_disable_link_state(struct pci_dev *pdev, int state) +{ +} +static inline void pcie_no_aspm(void) +{ +} +static inline void pcie_aspm_create_sysfs_dev_files(struct pci_dev *pdev) +{ +} +static inline void pcie_aspm_remove_sysfs_dev_files(struct pci_dev *pdev) +{ +} + +#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */ + +#endif /* _COMPAT_LINUX_ASPM_H */ -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html