setup-bus.c (b592443d9045f0880eb4d8cc9125075744db4b9e) | setup-bus.c (67cc7e26a5c46508ee00b9fe169aad833b798025) |
---|---|
1/* 2 * drivers/pci/setup-bus.c 3 * 4 * Extruded from code written by 5 * Dave Rusling (david.rusling@reo.mts.dec.com) 6 * David Mosberger (davidm@cs.arizona.edu) 7 * David Miller (davem@redhat.com) 8 * --- 75 unchanged lines hidden (view full) --- 84 tmp->add_size = add_size; 85 tmp->min_align = min_align; 86 87 list_add(&tmp->list, head); 88 89 return 0; 90} 91 | 1/* 2 * drivers/pci/setup-bus.c 3 * 4 * Extruded from code written by 5 * Dave Rusling (david.rusling@reo.mts.dec.com) 6 * David Mosberger (davidm@cs.arizona.edu) 7 * David Miller (davem@redhat.com) 8 * --- 75 unchanged lines hidden (view full) --- 84 tmp->add_size = add_size; 85 tmp->min_align = min_align; 86 87 list_add(&tmp->list, head); 88 89 return 0; 90} 91 |
92static void add_to_failed_list(struct list_head *head, 93 struct pci_dev *dev, struct resource *res) 94{ 95 add_to_list(head, dev, res, 96 0 /* dont care */, 97 0 /* dont care */); 98} 99 | |
100static void remove_from_list(struct list_head *head, 101 struct resource *res) 102{ 103 struct pci_dev_resource *dev_res, *tmp; 104 105 list_for_each_entry_safe(dev_res, tmp, head, list) { 106 if (dev_res->res == res) { 107 list_del(&dev_res->list); --- 189 unchanged lines hidden (view full) --- 297 pci_assign_resource(dev_res->dev, idx)) { 298 if (fail_head && !pci_is_root_bus(dev_res->dev->bus)) { 299 /* 300 * if the failed res is for ROM BAR, and it will 301 * be enabled later, don't add it to the list 302 */ 303 if (!((idx == PCI_ROM_RESOURCE) && 304 (!(res->flags & IORESOURCE_ROM_ENABLE)))) | 92static void remove_from_list(struct list_head *head, 93 struct resource *res) 94{ 95 struct pci_dev_resource *dev_res, *tmp; 96 97 list_for_each_entry_safe(dev_res, tmp, head, list) { 98 if (dev_res->res == res) { 99 list_del(&dev_res->list); --- 189 unchanged lines hidden (view full) --- 289 pci_assign_resource(dev_res->dev, idx)) { 290 if (fail_head && !pci_is_root_bus(dev_res->dev->bus)) { 291 /* 292 * if the failed res is for ROM BAR, and it will 293 * be enabled later, don't add it to the list 294 */ 295 if (!((idx == PCI_ROM_RESOURCE) && 296 (!(res->flags & IORESOURCE_ROM_ENABLE)))) |
305 add_to_failed_list(fail_head, 306 dev_res->dev, res); | 297 add_to_list(fail_head, 298 dev_res->dev, res, 299 0 /* dont care */, 300 0 /* dont care */); |
307 } 308 reset_resource(res); 309 } 310 } 311} 312 313static void __assign_resources_sorted(struct list_head *head, 314 struct list_head *realloc_head, --- 1144 unchanged lines hidden --- | 301 } 302 reset_resource(res); 303 } 304 } 305} 306 307static void __assign_resources_sorted(struct list_head *head, 308 struct list_head *realloc_head, --- 1144 unchanged lines hidden --- |