Subversion Repositories HelenOS

Rev

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

Rev 3740 Rev 3790
Line 75... Line 75...
75
    ofw_tree_node_t *screen;
75
    ofw_tree_node_t *screen;
76
    ofw_tree_node_t *keyboard;
76
    ofw_tree_node_t *keyboard;
77
   
77
   
78
    prop = ofw_tree_getprop(aliases, "screen");
78
    prop = ofw_tree_getprop(aliases, "screen");
79
    if (!prop)
79
    if (!prop)
80
        panic("Can't find property \"screen\".\n");
80
        panic("Cannot find property 'screen'.");
81
    if (!prop->value)
81
    if (!prop->value)
82
        panic("Can't find screen alias.\n");
82
        panic("Cannot find screen alias.");
83
    screen = ofw_tree_lookup(prop->value);
83
    screen = ofw_tree_lookup(prop->value);
84
    if (!screen)
84
    if (!screen)
85
        panic("Can't find %s\n", prop->value);
85
        panic("Cannot find %s.", prop->value);
86
 
86
 
87
    scr_init(screen);
87
    scr_init(screen);
88
 
88
 
89
    prop = ofw_tree_getprop(aliases, "keyboard");
89
    prop = ofw_tree_getprop(aliases, "keyboard");
90
    if (!prop)
90
    if (!prop)
91
        panic("Can't find property \"keyboard\".\n");
91
        panic("Cannot find property 'keyboard'.");
92
    if (!prop->value)
92
    if (!prop->value)
93
        panic("Can't find keyboard alias.\n");
93
        panic("Cannot find keyboard alias.");
94
    keyboard = ofw_tree_lookup(prop->value);
94
    keyboard = ofw_tree_lookup(prop->value);
95
    if (!keyboard)
95
    if (!keyboard)
96
        panic("Can't find %s\n", prop->value);
96
        panic("Cannot find %s.", prop->value);
97
 
97
 
98
    kbd_init(keyboard);
98
    kbd_init(keyboard);
99
}
99
}
100
 
100
 
101
/** Initilize I/O on the Serengeti machine. */
101
/** Initilize I/O on the Serengeti machine. */
Line 113... Line 113...
113
    ofw_tree_node_t *aliases;
113
    ofw_tree_node_t *aliases;
114
    ofw_tree_property_t *prop;
114
    ofw_tree_property_t *prop;
115
   
115
   
116
    aliases = ofw_tree_lookup("/aliases");
116
    aliases = ofw_tree_lookup("/aliases");
117
    if (!aliases)
117
    if (!aliases)
118
        panic("Can't find /aliases.\n");
118
        panic("Cannot find '/aliases'.");
119
   
119
   
120
    /* "def-cn" = "default console" */
120
    /* "def-cn" = "default console" */
121
    prop = ofw_tree_getprop(aliases, "def-cn");
121
    prop = ofw_tree_getprop(aliases, "def-cn");
122
   
122
   
123
    if ((!prop) || (!prop->value) || (strcmp(prop->value, "/sgcn") != 0)) {
123
    if ((!prop) || (!prop->value) || (strcmp(prop->value, "/sgcn") != 0)) {