pcie_pme.h 552 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * drivers/pci/pcie/pme/pcie_pme.h
  3. *
  4. * PCI Express Root Port PME signaling support
  5. *
  6. * Copyright (C) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
  7. */
  8. #ifndef _PCIE_PME_H_
  9. #define _PCIE_PME_H_
  10. struct pcie_device;
  11. #ifdef CONFIG_ACPI
  12. extern int pcie_pme_acpi_setup(struct pcie_device *srv);
  13. static inline int pcie_pme_platform_notify(struct pcie_device *srv)
  14. {
  15. return pcie_pme_acpi_setup(srv);
  16. }
  17. #else /* !CONFIG_ACPI */
  18. static inline int pcie_pme_platform_notify(struct pcie_device *srv)
  19. {
  20. return 0;
  21. }
  22. #endif /* !CONFIG_ACPI */
  23. #endif