Rev 4011 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4011 | Rev 4220 | ||
---|---|---|---|
Line 56... | Line 56... | ||
56 | ofw_pci_range_t *range; |
56 | ofw_pci_range_t *range; |
57 | count_t ranges; |
57 | count_t ranges; |
58 | 58 | ||
59 | prop = ofw_tree_getprop(node, "ranges"); |
59 | prop = ofw_tree_getprop(node, "ranges"); |
60 | if (!prop) { |
60 | if (!prop) { |
61 | if (strcmp(ofw_tree_node_name(node->parent), "pci") == 0) |
61 | if (str_cmp(ofw_tree_node_name(node->parent), "pci") == 0) |
62 | return ofw_pci_apply_ranges(node->parent, reg, pa); |
62 | return ofw_pci_apply_ranges(node->parent, reg, pa); |
63 | return false; |
63 | return false; |
64 | } |
64 | } |
65 | 65 | ||
66 | ranges = prop->size / sizeof(ofw_pci_range_t); |
66 | ranges = prop->size / sizeof(ofw_pci_range_t); |