coreboot-kgpe-d16/src/device
Furquan Shaikh 494f319be7 pci_device: Add a helper function for determining if PCI device is wake source
This change adds a helper function `pci_dev_is_wake_source()` that
checks PME_STATUS and PME_ENABLE bits in PM control and status
register to determine if the given device is the source of wake.

BUG=b:169802515
BRANCH=zork

Change-Id: I06e9530b568543ab2f05a4f38dc5c3a527ff391e
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46030
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2020-10-11 02:13:17 +00:00
..
dram src/device: Drop unneeded empty lines 2020-09-21 15:56:17 +00:00
oprom src/device: Drop unneeded empty lines 2020-09-21 15:56:17 +00:00
Kconfig lint: check for misuse of Kconfig SUBSYSTEM_*_ID 2020-09-20 17:03:32 +00:00
Makefile.inc device/xhci: Add xHCI utility to enumerate capabilities 2020-06-10 18:50:36 +00:00
azalia_device.c {sb/intel/*/azalia.c,device/azalia_device.c}: Reduce differences 2020-08-17 06:58:45 +00:00
cardbus_device.c src: Never set ISA Enable on PCI bridges 2020-07-28 10:54:02 +00:00
cpu_device.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
device.c treewide: Replace CONFIG(ARCH_xx) tests 2020-06-17 21:13:09 +00:00
device_const.c Change all assert(0) to BUG() 2020-08-03 05:15:15 +00:00
device_util.c superio/common: Fix NULL pointer dereferences 2020-09-28 09:31:28 +00:00
hypertransport.c src/device: Drop unneeded empty lines 2020-09-21 15:56:17 +00:00
i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c_bus.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mmio.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_class.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_device.c pci_device: Add a helper function for determining if PCI device is wake source 2020-10-11 02:13:17 +00:00
pci_early.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_ops.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_rom.c device/pci_rom.c: Treat BASE_DISPLAY class as GPU 2020-08-15 05:59:49 +00:00
pciexp_device.c Revert "Revert "pciexp_device: Add option to allocate prefetch memory above 4G boundary"" 2020-05-28 09:42:46 +00:00
pcix_device.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pnp_device.c src: Remove redundant <device/pnp_def.h> 2020-09-17 13:21:48 +00:00
resource_allocator_common.c device: Move resource allocation into a separate compilation unit 2020-05-26 15:15:21 +00:00
resource_allocator_v3.c device/resource_allocator_v3: Do not set IORESOURCE_ASSIGNED for size 0 resource 2020-05-26 15:15:54 +00:00
resource_allocator_v4.c device/resource_allocator_v4: Improve the logging in resource allocator 2020-05-28 09:43:44 +00:00
root_device.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smbus_ops.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
software_i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
xhci.c device/xhci: Add helper method to iterate over xhci_supported_protocl 2020-07-12 17:01:24 +00:00