From: stsp Date: Sun, 27 Apr 2014 14:55:09 +0000 (+0000) Subject: Add PME_STATUS and PME_EN bitmasks for the PCI PMCSR register. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dd9a436354b8fa65541230b5fe3dc6b2fcd53b56;p=openbsd Add PME_STATUS and PME_EN bitmasks for the PCI PMCSR register. ok kettenis@ --- diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index 756f96016b7..26c6b799677 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcireg.h,v 1.46 2014/04/09 06:36:33 dlg Exp $ */ +/* $OpenBSD: pcireg.h,v 1.47 2014/04/27 14:55:09 stsp Exp $ */ /* $NetBSD: pcireg.h,v 1.26 2000/05/10 16:58:42 thorpej Exp $ */ /* @@ -518,11 +518,13 @@ typedef u_int8_t pci_revision_t; * Power Management Control Status Register; access via capability pointer. */ #define PCI_PMCSR 0x04 -#define PCI_PMCSR_STATE_MASK 0x03 -#define PCI_PMCSR_STATE_D0 0x00 -#define PCI_PMCSR_STATE_D1 0x01 -#define PCI_PMCSR_STATE_D2 0x02 -#define PCI_PMCSR_STATE_D3 0x03 +#define PCI_PMCSR_STATE_MASK 0x0003 +#define PCI_PMCSR_STATE_D0 0x0000 +#define PCI_PMCSR_STATE_D1 0x0001 +#define PCI_PMCSR_STATE_D2 0x0002 +#define PCI_PMCSR_STATE_D3 0x0003 +#define PCI_PMCSR_PME_STATUS 0x8000 +#define PCI_PMCSR_PME_EN 0x0100 /* * HyperTransport; access via capability pointer.