Subversion Repositories HelenOS

Rev

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

Rev 4337 Rev 4339
Line 85... Line 85...
85
     * Read 'interrupts' property.
85
     * Read 'interrupts' property.
86
     */
86
     */
87
    uint32_t interrupts;
87
    uint32_t interrupts;
88
    prop = ofw_tree_getprop(node, "interrupts");
88
    prop = ofw_tree_getprop(node, "interrupts");
89
    if ((!prop) || (!prop->value))
89
    if ((!prop) || (!prop->value))
90
        panic("Can't find \"interrupts\" property.\n");
90
        panic("Cannot find 'interrupt' property.");
91
    interrupts = *((uint32_t *) prop->value);
91
    interrupts = *((uint32_t *) prop->value);
92
   
92
   
93
    /*
93
    /*
94
     * Read 'reg' property.
94
     * Read 'reg' property.
95
     */
95
     */
96
    prop = ofw_tree_getprop(node, "reg");
96
    prop = ofw_tree_getprop(node, "reg");
97
    if ((!prop) || (!prop->value))
97
    if ((!prop) || (!prop->value))
98
        panic("Can't find \"reg\" property.\n");
98
        panic("Cannot find 'reg' property.");
99
   
99
   
100
    uintptr_t pa;
100
    uintptr_t pa;
101
    size_t size;
101
    size_t size;
102
    inr_t inr;
102
    inr_t inr;
103
   
103
   
Line 131... Line 131...
131
            return;
131
            return;
132
        };
132
        };
133
        break;
133
        break;
134
       
134
       
135
    default:
135
    default:
136
        panic("Unexpected keyboard type.\n");
136
        panic("Unexpected keyboard type.");
137
    }
137
    }
138
   
138
   
139
    /*
139
    /*
140
     * We need to pass aligned address to hw_map().
140
     * We need to pass aligned address to hw_map().
141
     * However, the physical keyboard address can
141
     * However, the physical keyboard address can