diff options
author | 2012-09-04 19:35:54 +0000 | |
---|---|---|
committer | 2012-09-04 19:35:54 +0000 | |
commit | 7aa8bad671612c6f4dde64122b80ebce4210a863 (patch) | |
tree | f808520414e5797d460cd7fb546cad13f2b5e321 | |
parent | Add support for -fPIC (diff) | |
download | wireguard-openbsd-7aa8bad671612c6f4dde64122b80ebce4210a863.tar.xz wireguard-openbsd-7aa8bad671612c6f4dde64122b80ebce4210a863.zip |
Implement pci_min_powerstate().
-rw-r--r-- | sys/arch/alpha/pci/pci_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/hppa64/include/pci_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/landisk/include/pci_machdep.h | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/alpha/pci/pci_machdep.h b/sys/arch/alpha/pci/pci_machdep.h index 97e29450d16..6aa33abb62b 100644 --- a/sys/arch/alpha/pci/pci_machdep.h +++ b/sys/arch/alpha/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.26 2011/10/10 19:42:34 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.27 2012/09/04 19:37:40 kettenis Exp $ */ /* $NetBSD: pci_machdep.h,v 1.6 1996/11/19 04:49:21 cgd Exp $ */ /* @@ -116,6 +116,8 @@ int alpha_sysctl_chipset(int *, u_int, char *, size_t *); (*(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) + /* * alpha-specific PCI functions. * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE. diff --git a/sys/arch/hppa64/include/pci_machdep.h b/sys/arch/hppa64/include/pci_machdep.h index 122e508add2..5275051e3a5 100644 --- a/sys/arch/hppa64/include/pci_machdep.h +++ b/sys/arch/hppa64/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.9 2011/10/10 19:42:36 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.10 2012/09/04 19:35:54 kettenis Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -81,6 +81,8 @@ struct hppa64_pci_chipset_tag { (*(c)->pc_intr_disestablish)((c)->_cookie, (iv)) #define pci_probe_device_hook(c, a) (0) +#define pci_min_powerstate(c, t) (PCI_PMCSR_STATE_D3) + #define pciide_machdep_compat_intr_establish(a, b, c, d, e) (NULL) #define pciide_machdep_compat_intr_disestablish(a, b) ((void)(a), (void)(b)) diff --git a/sys/arch/landisk/include/pci_machdep.h b/sys/arch/landisk/include/pci_machdep.h index 10da37b602b..f11d0d866c4 100644 --- a/sys/arch/landisk/include/pci_machdep.h +++ b/sys/arch/landisk/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.7 2011/10/10 19:42:36 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.8 2012/09/04 19:39:08 kettenis Exp $ */ /* $NetBSD: pci_machdep.h,v 1.1 2006/09/01 21:26:18 uwe Exp $ */ /* @@ -84,4 +84,6 @@ void landisk_pci_conf_interrupt(void *v, int bus, int dev, int pin, landisk_pci_intr_disestablish(v, cookie) #define pci_probe_device_hook(c, a) (0) +#define pci_min_powerstate(c, t) (PCI_PMCSR_STATE_D3) + #define pci_dev_postattach(a, b) |