Lines Matching +full:motherboard +full:- +full:bus
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * PCI bios-type initialisation for PCI machines
7 * Copyright (C) 2001-2005 Tensilica Inc.
24 #include <asm/pci-bridge.h>
30 * addresses to be allocated in the 0x000-0x0ff region
34 * the low 10 bits of the IO address. The 0x00-0xff region
35 * is reserved for motherboard devices that decode all 16
36 * bits, so it's ok to allocate at, say, 0x2800-0x28ff,
37 * but we want to try to avoid allocating at 0x2900-0x2bff
38 * which might have be mirrored at 0x0100-0x03ff..
45 resource_size_t start = res->start; in pcibios_align_resource()
47 if (res->flags & IORESOURCE_IO) { in pcibios_align_resource()
50 pci_name(dev), dev->resource - res, in pcibios_align_resource()
61 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus() argument
63 if (bus->parent) { in pcibios_fixup_bus()
65 pci_read_bridge_bases(bus); in pcibios_fixup_bus()
70 * Platform support for /proc/bus/pci/X/Y mmap()s.
71 * -- paulus.
76 struct pci_controller *pci_ctrl = (struct pci_controller*) pdev->sysdata; in pci_iobar_pfn()
80 return -EINVAL; /* should never happen */ in pci_iobar_pfn()
83 ioaddr -= (unsigned long)pci_ctrl->io_space.base; in pci_iobar_pfn()
85 vma->vm_pgoff += (ioaddr + pci_ctrl->io_space.start) >> PAGE_SHIFT; in pci_iobar_pfn()