13 #include <linux/types.h>
14 #include <linux/kernel.h>
15 #include <linux/pci.h>
18 #include <linux/errno.h>
42 start = (start + 0x3ff) & ~0x3ff;
81 static void __init pcibios_allocate_bus_resources(
struct list_head *bus_list)
90 for (ln=bus_list->
next; ln != bus_list; ln=ln->
next) {
92 if ((dev = bus->
self)) {
100 pcibios_allocate_bus_resources(&bus->
children);
104 static void __init pcibios_allocate_resources(
int pass)
113 for(idx = 0; idx < 6; idx++) {
123 if (pass == disabled) {
124 DBG(
"PCI: Resource %08lx-%08lx (f=%lx, d=%d, p=%d)\n",
138 DBG(
"PCI: Switching off ROM of %s\n", pci_name(dev));
147 static void __init pcibios_assign_resources(
void)
154 int class = dev->
class >> 8;
160 for(idx=0; idx<6; idx++) {
191 DBG(
"PCI: Allocating resources\n");
192 pcibios_allocate_bus_resources(&pci_root_buses);
193 pcibios_allocate_resources(0);
194 pcibios_allocate_resources(1);
195 pcibios_assign_resources();