Subversion Repositories HelenOS-historic

Rev

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

Rev 1146 Rev 1620
Line 243... Line 243...
243
    if (ofw_get_property(device, "linebytes", &screen->scanline, sizeof(screen->scanline)) <= 0)
243
    if (ofw_get_property(device, "linebytes", &screen->scanline, sizeof(screen->scanline)) <= 0)
244
        return false;
244
        return false;
245
   
245
   
246
    return true;
246
    return true;
247
}
247
}
-
 
248
 
-
 
249
 
-
 
250
int ofw_keyboard(keyboard_t *keyboard)
-
 
251
{
-
 
252
    char device_name[BUF_SIZE];
-
 
253
   
-
 
254
    if (ofw_get_property(ofw_aliases, "macio", device_name, sizeof(char) * BUF_SIZE) <= 0)
-
 
255
        return false;
-
 
256
   
-
 
257
    phandle device = ofw_find_device(device_name);
-
 
258
    if (device == -1)
-
 
259
        return false;
-
 
260
   
-
 
261
    // FIXME
-
 
262
    keyboard->addr = (void *) 0x80816000;
-
 
263
    keyboard->size = 7680;
-
 
264
   
-
 
265
    return true;
-
 
266
}