Lines Matching +full:motherboard +full:- +full:bus
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pci.c -- basic PCI support code
15 * From arch/i386/kernel/pci-i386.c:
19 * addresses to be allocated in the 0x000-0x0ff region
23 * the low 10 bits of the IO address. The 0x00-0xff region
24 * is reserved for motherboard devices that decode all 16
25 * bits, so it's ok to allocate at, say, 0x2800-0x28ff,
26 * but we want to try to avoid allocating at 0x2900-0x2bff
27 * which might be mirrored at 0x0100-0x03ff..
32 resource_size_t start = res->start; in pcibios_align_resource()
34 if ((res->flags & IORESOURCE_IO) && (start & 0x300)) in pcibios_align_resource()
37 start = (start + align - 1) & ~(align - 1); in pcibios_align_resource()
59 r = dev->resource + idx; in pcibios_enable_device()
60 if (!r->start && r->end) { in pcibios_enable_device()
63 return -EINVAL; in pcibios_enable_device()
65 if (r->flags & IORESOURCE_IO) in pcibios_enable_device()
67 if (r->flags & IORESOURCE_MEM) in pcibios_enable_device()
74 if ((dev->class >> 16) == PCI_BASE_CLASS_BRIDGE) in pcibios_enable_device()
79 pr_info("PCI: enabling device %s (0x%04x -> 0x%04x)\n", in pcibios_enable_device()
86 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus() argument
90 list_for_each_entry(dev, &bus->devices, bus_list) { in pcibios_fixup_bus()