Lines Matching +full:motherboard +full:- +full:bus
1 // SPDX-License-Identifier: GPL-2.0-or-later
14 * addresses to be allocated in the 0x000-0x0ff region
18 * the low 10 bits of the IO address. The 0x00-0xff region
19 * is reserved for motherboard devices that decode all 16
20 * bits, so it's ok to allocate at, say, 0x2800-0x28ff,
21 * but we want to try to avoid allocating at 0x2900-0x2bff
22 * which might have be mirrored at 0x0100-0x03ff..
28 resource_size_t start = res->start; in pcibios_align_resource()
31 if (res->flags & IORESOURCE_IO && start & 0x300) in pcibios_align_resource()
34 start = (start + align - 1) & ~(align - 1); in pcibios_align_resource()
36 host_bridge = pci_find_host_bridge(dev->bus); in pcibios_align_resource()
38 if (host_bridge->align_resource) in pcibios_align_resource()
39 return host_bridge->align_resource(dev, res, in pcibios_align_resource()
45 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus() argument
47 pci_read_bridge_bases(bus); in pcibios_fixup_bus()
55 if (res->start != 0) { in pci_remap_iospace()
57 return -ENODEV; in pci_remap_iospace()