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>
This commit is contained in:
parent
434fd4cbc1
commit
b6519812d4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue