Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 2745
Line 55... Line 55...
55
        return false;
55
        return false;
56
       
56
       
57
    ranges = prop->size / sizeof(ofw_ebus_range_t);
57
    ranges = prop->size / sizeof(ofw_ebus_range_t);
58
    range = prop->value;
58
    range = prop->value;
59
   
59
   
60
    int i;
60
    unsigned int i;
61
   
61
   
62
    for (i = 0; i < ranges; i++) {
62
    for (i = 0; i < ranges; i++) {
63
        if (reg->space != range[i].child_space)
63
        if (reg->space != range[i].child_space)
64
            continue;
64
            continue;
65
        if (overlaps(reg->addr, reg->size, range[i].child_base, range[i].size)) {
65
        if (overlaps(reg->addr, reg->size, range[i].child_base, range[i].size)) {
Line 100... Line 100...
100
   
100
   
101
    uint32_t space = reg->space & intr_mask->space_mask;
101
    uint32_t space = reg->space & intr_mask->space_mask;
102
    uint32_t addr = reg->addr & intr_mask->addr_mask;
102
    uint32_t addr = reg->addr & intr_mask->addr_mask;
103
    uint32_t intr = interrupt & intr_mask->intr_mask;
103
    uint32_t intr = interrupt & intr_mask->intr_mask;
104
   
104
   
105
    int i;
105
    unsigned int i;
106
    for (i = 0; i < count; i++) {
106
    for (i = 0; i < count; i++) {
107
        if ((intr_map[i].space == space) && (intr_map[i].addr == addr)
107
        if ((intr_map[i].space == space) && (intr_map[i].addr == addr)
108
            && (intr_map[i].intr == intr))
108
            && (intr_map[i].intr == intr))
109
            goto found;
109
            goto found;
110
    }
110
    }