1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Daniel Engström, Omicron Ceti AB, daniel@omicron.se
12 /* bus mapping constants (used for PCI core initialization) */
13 #define PCI_REG_ADDR 0xcf8
14 #define PCI_REG_DATA 0xcfc
16 #define PCI_CFG_EN 0x80000000
20 int pci_x86_read_config(struct udevice *bus, pci_dev_t bdf, uint offset,
21 ulong *valuep, enum pci_size_t size);
23 int pci_x86_write_config(struct udevice *bus, pci_dev_t bdf, uint offset,
24 ulong value, enum pci_size_t size);
27 * Assign IRQ number to a PCI device
29 * This function assigns IRQ for a PCI device. If the device does not exist
30 * or does not require interrupts then this function has no effect.
32 * @bus: PCI bus number
33 * @device: PCI device number
34 * @irq: An array of IRQ numbers that are assigned to INTA through
35 * INTD of this PCI device.
37 void pci_assign_irqs(int bus, int device, u8 irq[4]);
39 #endif /* __ASSEMBLY__ */
41 #endif /* _PCI_I386_H_ */