aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/setup-bus.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 0282fde43951..75d43eb37842 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -99,6 +99,21 @@ static void add_to_failed_list(struct resource_list_x *head,
99 0 /* dont care */); 99 0 /* dont care */);
100} 100}
101 101
102static resource_size_t get_res_add_size(struct resource_list_x *realloc_head,
103 struct resource *res)
104{
105 struct resource_list_x *list;
106
107 /* check if it is in realloc_head list */
108 for (list = realloc_head->next; list && list->res != res;
109 list = list->next)
110 ;
111 if (list)
112 return list->add_size;
113
114 return 0;
115}
116
102static void __dev_sort_resources(struct pci_dev *dev, 117static void __dev_sort_resources(struct pci_dev *dev,
103 struct resource_list *head) 118 struct resource_list *head)
104{ 119{
@@ -550,20 +565,6 @@ static resource_size_t calculate_memsize(resource_size_t size,
550 return size; 565 return size;
551} 566}
552 567
553static resource_size_t get_res_add_size(struct resource_list_x *realloc_head,
554 struct resource *res)
555{
556 struct resource_list_x *list;
557
558 /* check if it is in realloc_head list */
559 for (list = realloc_head->next; list && list->res != res;
560 list = list->next);
561 if (list)
562 return list->add_size;
563
564 return 0;
565}
566
567/** 568/**
568 * pbus_size_io() - size the io window of a given bus 569 * pbus_size_io() - size the io window of a given bus
569 * 570 *