This source file includes following definitions.
- pcibios_align_resource
- pcibios_fixup_bus
1
2
3
4
5
6
7
8
9 #include <linux/pci.h>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 resource_size_t pcibios_align_resource(void *data, const struct resource *res,
25 resource_size_t size, resource_size_t align)
26 {
27 struct pci_dev *dev = data;
28 resource_size_t start = res->start;
29 struct pci_host_bridge *host_bridge;
30
31 if (res->flags & IORESOURCE_IO && start & 0x300)
32 start = (start + 0x3ff) & ~0x3ff;
33
34 start = (start + align - 1) & ~(align - 1);
35
36 host_bridge = pci_find_host_bridge(dev->bus);
37
38 if (host_bridge->align_resource)
39 return host_bridge->align_resource(dev, res,
40 start, size, align);
41
42 return start;
43 }
44
45 void pcibios_fixup_bus(struct pci_bus *bus)
46 {
47 pci_read_bridge_bases(bus);
48 }