Subversion Repositories HelenOS

Rev

Rev 4220 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4220 Rev 4490
Line 52... Line 52...
52
bool
52
bool
53
ofw_pci_apply_ranges(ofw_tree_node_t *node, ofw_pci_reg_t *reg, uintptr_t *pa)
53
ofw_pci_apply_ranges(ofw_tree_node_t *node, ofw_pci_reg_t *reg, uintptr_t *pa)
54
{
54
{
55
    ofw_tree_property_t *prop;
55
    ofw_tree_property_t *prop;
56
    ofw_pci_range_t *range;
56
    ofw_pci_range_t *range;
57
    count_t ranges;
57
    size_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 (str_cmp(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);
Line 95... Line 95...
95
        return true;
95
        return true;
96
    }
96
    }
97
   
97
   
98
    ofw_tree_property_t *prop;
98
    ofw_tree_property_t *prop;
99
    ofw_pci_reg_t *assigned_address;
99
    ofw_pci_reg_t *assigned_address;
100
    count_t assigned_addresses;
100
    size_t assigned_addresses;
101
   
101
   
102
    prop = ofw_tree_getprop(node, "assigned-addresses");
102
    prop = ofw_tree_getprop(node, "assigned-addresses");
103
    if (!prop)
103
    if (!prop)
104
        panic("Cannot find 'assigned-addresses' property.");
104
        panic("Cannot find 'assigned-addresses' property.");
105
   
105