summaryrefslogtreecommitdiff
path: root/src/device/pci_device.c
diff options
context:
space:
mode:
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