Subversion Repositories HelenOS

Rev

Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4377 Rev 4692
Line 47... Line 47...
47
bool
47
bool
48
ofw_ebus_apply_ranges(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uintptr_t *pa)
48
ofw_ebus_apply_ranges(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uintptr_t *pa)
49
{
49
{
50
    ofw_tree_property_t *prop;
50
    ofw_tree_property_t *prop;
51
    ofw_ebus_range_t *range;
51
    ofw_ebus_range_t *range;
52
    count_t ranges;
52
    size_t ranges;
53
 
53
 
54
    prop = ofw_tree_getprop(node, "ranges");
54
    prop = ofw_tree_getprop(node, "ranges");
55
    if (!prop)
55
    if (!prop)
56
        return false;
56
        return false;
57
       
57
       
Line 89... Line 89...
89
    prop = ofw_tree_getprop(node, "interrupt-map");
89
    prop = ofw_tree_getprop(node, "interrupt-map");
90
    if (!prop || !prop->value)
90
    if (!prop || !prop->value)
91
        return false;
91
        return false;
92
 
92
 
93
    ofw_ebus_intr_map_t *intr_map = prop->value;
93
    ofw_ebus_intr_map_t *intr_map = prop->value;
94
    count_t count = prop->size / sizeof(ofw_ebus_intr_map_t);
94
    size_t count = prop->size / sizeof(ofw_ebus_intr_map_t);
95
   
95
   
96
    ASSERT(count);
96
    ASSERT(count);
97
   
97
   
98
    prop = ofw_tree_getprop(node, "interrupt-map-mask");
98
    prop = ofw_tree_getprop(node, "interrupt-map-mask");
99
    if (!prop || !prop->value)
99
    if (!prop || !prop->value)