37,7 → 37,7 |
#include <genarch/fb/fb.h> |
#include <genarch/fb/visuals.h> |
#include <arch/types.h> |
#include <func.h> |
#include <string.h> |
#include <align.h> |
#include <print.h> |
|
63,13 → 63,13 |
|
name = ofw_tree_node_name(node); |
|
if (strcmp(name, "SUNW,m64B") == 0) |
if (str_cmp(name, "SUNW,m64B") == 0) |
scr_type = SCR_ATYFB; |
else if (strcmp(name, "SUNW,XVR-100") == 0) |
else if (str_cmp(name, "SUNW,XVR-100") == 0) |
scr_type = SCR_XVR; |
else if (strcmp(name, "SUNW,ffb") == 0) |
else if (str_cmp(name, "SUNW,ffb") == 0) |
scr_type = SCR_FFB; |
else if (strcmp(name, "cgsix") == 0) |
else if (str_cmp(name, "cgsix") == 0) |
scr_type = SCR_CGSIX; |
|
if (scr_type == SCR_UNKNOWN) { |
104,7 → 104,7 |
|
prop = ofw_tree_getprop(node, "reg"); |
if (!prop) |
panic("Can't find \"reg\" property.\n"); |
panic("Cannot find 'reg' property."); |
|
switch (scr_type) { |
case SCR_ATYFB: |
223,7 → 223,7 |
|
break; |
default: |
panic("Unexpected type.\n"); |
panic("Unexpected type."); |
} |
|
fb_properties_t props = { |
237,5 → 237,10 |
fb_init(&props); |
} |
|
void scr_redraw(void) |
{ |
fb_redraw(); |
} |
|
/** @} |
*/ |