summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/pme/pcie_pme.h
blob: b30d2b7c9775bf63b42e71fe378264cf249978e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * drivers/pci/pcie/pme/pcie_pme.h
 *
 * PCI Express Root Port PME signaling support
 *
 * Copyright (C) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
 */

#ifndef _PCIE_PME_H_
#define _PCIE_PME_H_

struct pcie_device;

#ifdef CONFIG_ACPI
extern int pcie_pme_acpi_setup(struct pcie_device *srv);

static inline int pcie_pme_platform_notify(struct pcie_device *srv)
{
	return pcie_pme_acpi_setup(srv);
}
#else /* !CONFIG_ACPI */
static inline int pcie_pme_platform_notify(struct pcie_device *srv)
{
	return 0;
}
#endif /* !CONFIG_ACPI */

#endif