yenta_socket.c (b7e56edba4b02f2079042c326a8cd72a44635817) yenta_socket.c (89a74ecccd1f78e51faf6287e5c0e93a92ac096e)
1/*
2 * Regular cardbus driver ("yenta_socket")
3 *
4 * (C) Copyright 1999, 2000 Linus Torvalds
5 *
6 * Changelog:
7 * Aug 2002: Manfred Spraul <manfred@colorfullife.com>
8 * Dynamically adjust the size of the bridge resource

--- 635 unchanged lines hidden (view full) ---

644
645 return 0;
646}
647
648
649static int yenta_search_res(struct yenta_socket *socket, struct resource *res,
650 u32 min)
651{
1/*
2 * Regular cardbus driver ("yenta_socket")
3 *
4 * (C) Copyright 1999, 2000 Linus Torvalds
5 *
6 * Changelog:
7 * Aug 2002: Manfred Spraul <manfred@colorfullife.com>
8 * Dynamically adjust the size of the bridge resource

--- 635 unchanged lines hidden (view full) ---

644
645 return 0;
646}
647
648
649static int yenta_search_res(struct yenta_socket *socket, struct resource *res,
650 u32 min)
651{
652 struct resource *root;
652 int i;
653 int i;
653 for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
654 struct resource *root = socket->dev->bus->resource[i];
654
655 pci_bus_for_each_resource(socket->dev->bus, root, i) {
655 if (!root)
656 continue;
657
658 if ((res->flags ^ root->flags) &
659 (IORESOURCE_IO | IORESOURCE_MEM | IORESOURCE_PREFETCH))
660 continue; /* Wrong type */
661
662 if (yenta_search_one_res(root, res, min))

--- 802 unchanged lines hidden ---
656 if (!root)
657 continue;
658
659 if ((res->flags ^ root->flags) &
660 (IORESOURCE_IO | IORESOURCE_MEM | IORESOURCE_PREFETCH))
661 continue; /* Wrong type */
662
663 if (yenta_search_one_res(root, res, min))

--- 802 unchanged lines hidden ---