aboutsummaryrefslogtreecommitdiff
path: root/src/device/pci_device.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-12-31 13:33:50 +0100
committerFelix Singer <felixsinger@posteo.net>2022-01-01 19:17:08 +0000
commitb6519812d423f553c727d97bb004fbb5c55b60ae (patch)
tree0851cdbbe59ec960401f18058e34e7ef5b29d63d /src/device/pci_device.c
parent434fd4cbc1f8822de872a4e7c1a088e6c8b11668 (diff)
pci_device.c: Don't guard `pci_dev_disable_bus_master()`
The `pci_dev_disable_bus_master()` function doesn't need to be guarded with `CONFIG(PC80_SYSTEM)`, so move it out of the guard. Change-Id: I813e0f72c3c624c73ab9ecbe7512359608ace927 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60599 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/device/pci_device.c')
-rw-r--r--src/device/pci_device.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 1075ef7e0e..a61fbd6c49 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -1472,6 +1472,11 @@ void pci_domain_scan_bus(struct device *dev)
pci_scan_bus(link, PCI_DEVFN(0, 0), 0xff);
}
+void pci_dev_disable_bus_master(const struct device *dev)
+{
+ pci_update_config16(dev, PCI_COMMAND, ~PCI_COMMAND_MASTER, 0x0);
+}
+
/**
* Take an INT_PIN number (0, 1 - 4) and convert
* it to a string ("NO PIN", "PIN A" - "PIN D")
@@ -1665,9 +1670,4 @@ void pci_assign_irqs(struct device *dev, const unsigned char pIntAtoD[4])
i8259_configure_irq_trigger(irq, IRQ_LEVEL_TRIGGERED);
}
}
-
-void pci_dev_disable_bus_master(const struct device *dev)
-{
- pci_update_config16(dev, PCI_COMMAND, ~PCI_COMMAND_MASTER, 0x0);
-}
#endif