diff options
author | John Zhao <john.zhao@intel.com> | 2020-05-04 15:58:48 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-08 06:39:01 +0000 |
commit | 95b4ece0fe4a0855f20bfb7bdf868c56f6b41ae6 (patch) | |
tree | ad67c6693272ec9495a5c98e44d79e67dd49c3e1 /src/include/device | |
parent | aaebfa800c002b778ccac8d15d4054778e85b5f0 (diff) | |
download | coreboot-95b4ece0fe4a0855f20bfb7bdf868c56f6b41ae6.tar.xz |
device: Add a disabling PCIe device bus master function
A function pci_dev_disable_bus_master() is created. This function
can be used to disable Thunderbolt PCIe root ports, bridges and
devices for Vt-d based security platform at end of boot service.
BUG=None
TEST=Verified PCIe device bus master enable bit is cleared.
Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: Ie92a15bf2c66fdc311098acb81019d4fb7f68313
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41042
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h index f091105438..4529074e9b 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -127,6 +127,7 @@ static inline int pci_base_address_is_memory_space(unsigned int attr) return (attr & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_MEMORY; } +void pci_dev_disable_bus_master(const struct device *dev); #endif /* CONFIG_PCI */ void pci_early_bridge_init(void); |