diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-09-07 19:21:58 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-09-07 19:21:58 +0000 |
commit | 3e3ba5e5a288a24670663a576b086752354d390b (patch) | |
tree | 8fc8de8bd5486c3467206c09ec4553c7faf8d1c3 /sys/arch/amd64/pci | |
parent | 90ae9ec4cbcf80e0d45f065e0427b770d5d78537 (diff) |
Implement pci_min_powerstate().
Diffstat (limited to 'sys/arch/amd64/pci')
-rw-r--r-- | sys/arch/amd64/pci/pci_machdep.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c index 43733045833..6ca81512f95 100644 --- a/sys/arch/amd64/pci/pci_machdep.c +++ b/sys/arch/amd64/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.53 2011/10/29 19:17:30 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.54 2012/09/07 19:21:57 kettenis Exp $ */ /* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */ /*- @@ -666,3 +666,17 @@ pci_dev_postattach(struct device *dev, struct pci_attach_args *pa) acpi_pci_match(dev, pa); #endif } + +#if NACPI > 0 +pcireg_t acpi_pci_min_powerstate(pci_chipset_tag_t, pcitag_t); +#endif + +pcireg_t +pci_min_powerstate(pci_chipset_tag_t pc, pcitag_t tag) +{ +#if NACPI > 0 + return acpi_pci_min_powerstate(pc, tag); +#else + return PCI_PMCSR_STATE_D3; +#endif +} |