diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-08-29 09:17:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-08-29 09:17:56 +0000 |
commit | 48c7213316b73ff2e4f8b90d46f9f676ca752e2a (patch) | |
tree | aa1ecff3b7075ca92400a2af3f04b094b5e79409 /sys/arch | |
parent | 35e5985d099287130e26618293fbfd7109548e8d (diff) |
Implement pci_min_powerstate().
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/include/pci_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/loongson/include/pci_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/octeon/include/pci_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/sgi/pci/pci_machdep.h | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/sys/arch/arm/include/pci_machdep.h b/sys/arch/arm/include/pci_machdep.h index 3be97188dca..c45b1eae93d 100644 --- a/sys/arch/arm/include/pci_machdep.h +++ b/sys/arch/arm/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.11 2011/10/10 19:42:36 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.12 2012/08/29 09:17:09 kettenis Exp $ */ /* $NetBSD: pci_machdep.h,v 1.2 2002/05/15 19:23:52 thorpej Exp $ */ /* @@ -101,4 +101,6 @@ struct arm32_pci_chipset { (*(c)->pc_intr_disestablish)((c)->pc_intr_v, (iv)) #define pci_probe_device_hook(c, a) (0) +#define pci_min_powerstate(c, t) (PCI_PMCSR_STATE_D3) + #define pci_dev_postattach(a, b) diff --git a/sys/arch/loongson/include/pci_machdep.h b/sys/arch/loongson/include/pci_machdep.h index 7ee2396b940..8381922ed4e 100644 --- a/sys/arch/loongson/include/pci_machdep.h +++ b/sys/arch/loongson/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.6 2011/10/10 19:42:36 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.7 2012/08/29 09:17:55 kettenis Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -84,6 +84,8 @@ struct mips_pci_chipset { (*(c)->pc_intr_disestablish)((c)->pc_intr_v, (iv)) #define pci_probe_device_hook(c, a) (0) +#define pci_min_powerstate(c, t) (PCI_PMCSR_STATE_D3) + /* PCI view of CPU memory */ extern paddr_t loongson_dma_base; diff --git a/sys/arch/octeon/include/pci_machdep.h b/sys/arch/octeon/include/pci_machdep.h index 806164aae28..e06746028f2 100644 --- a/sys/arch/octeon/include/pci_machdep.h +++ b/sys/arch/octeon/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.4 2011/10/10 19:42:36 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.5 2012/08/29 09:17:55 kettenis Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -112,6 +112,8 @@ static inline void pci_conf_write_db(void * c, pcitag_t t, int r, pcireg_t v, (*(c)->pc_intr_disestablish)((c)->pc_intr_v, (iv)) #define pci_probe_device_hook(c, a) (0) +#define pci_min_powerstate(c, t) (PCI_PMCSR_STATE_D3) + /* PCI view of CPU memory */ extern paddr_t loongson_dma_base; diff --git a/sys/arch/sgi/pci/pci_machdep.h b/sys/arch/sgi/pci/pci_machdep.h index 9bd17e04569..db3982a8378 100644 --- a/sys/arch/sgi/pci/pci_machdep.h +++ b/sys/arch/sgi/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.14 2011/10/10 19:42:36 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.15 2012/08/29 09:17:55 kettenis Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -99,6 +99,8 @@ struct mips_pci_chipset { (*(c)->pc_probe_device_hook)((c)->pc_conf_v, (a)) #define pci_dev_postattach(a, b) do { } while (0) +#define pci_min_powerstate(c, t) (PCI_PMCSR_STATE_D3) + /* * Functions provided to machine-dependent PCI code. */ |