Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/scr.c

    r9a5abb78 r9d58539  
    4646#include <align.h>
    4747#include <print.h>
    48 #include <log.h>
    4948
    5049#define FFB_REG_24BPP   7
     
    8281       
    8382        if (scr_type == SCR_UNKNOWN) {
    84                 log(LF_ARCH, LVL_ERROR, "Unknown screen device.");
     83                printf("Unknown screen device.\n");
    8584                return;
    8685        }
     
    118117        case SCR_ATYFB:
    119118                if (prop->size / sizeof(ofw_pci_reg_t) < 2) {
    120                         log(LF_ARCH, LVL_ERROR, "Too few screen registers.");
     119                        printf("Too few screen registers.\n");
    121120                        return;
    122121                }
     
    125124               
    126125                if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
    127                         log(LF_ARCH, LVL_ERROR,
    128                             "Failed to absolutize fb register.");
     126                        printf("Failed to absolutize fb register.\n");
    129127                        return;
    130128                }
     
    132130                if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
    133131                    &fb_addr)) {
    134                         log(LF_ARCH, LVL_ERROR,
    135                             "Failed to determine screen address.");
     132                        printf("Failed to determine screen address.\n");
    136133                        return;
    137134                }
     
    155152                        break;
    156153                default:
    157                         log(LF_ARCH, LVL_ERROR,
    158                             "Unsupported bits per pixel.");
     154                        printf("Unsupported bits per pixel.\n");
    159155                        return;
    160156                }
     
    163159        case SCR_XVR:
    164160                if (prop->size / sizeof(ofw_pci_reg_t) < 2) {
    165                         log(LF_ARCH, LVL_ERROR,
    166                             "Too few screen registers.");
     161                        printf("Too few screen registers.\n");
    167162                        return;
    168163                }
     
    171166               
    172167                if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
    173                         log(LF_ARCH, LVL_ERROR,
    174                             "Failed to absolutize fb register.");
     168                        printf("Failed to absolutize fb register.\n");
    175169                        return;
    176170                }
     
    178172                if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
    179173                    &fb_addr)) {
    180                         log(LF_ARCH, LVL_ERROR,
    181                             "Failed to determine screen address.");
     174                        printf("Failed to determine screen address.\n");
    182175                        return;
    183176                }
     
    203196                        break;
    204197                default:
    205                         log(LF_ARCH, LVL_ERROR,
    206                             "Unsupported bits per pixel.");
     198                        printf("Unsupported bits per pixel.\n");
    207199                        return;
    208200                }
     
    215207                upa_reg = &((ofw_upa_reg_t *) prop->value)[FFB_REG_24BPP];
    216208                if (!ofw_upa_apply_ranges(node->parent, upa_reg, &fb_addr)) {
    217                         log(LF_ARCH, LVL_ERROR,
    218                             "Failed to determine screen address.");
     209                        printf("Failed to determine screen address.\n");
    219210                        return;
    220211                }
     
    228219                        break;
    229220                default:
    230                         log(LF_ARCH, LVL_WARN, "Not implemented.");
     221                        printf("Not implemented.\n");
    231222                        return;
    232223                }
     
    234225                sbus_reg = &((ofw_sbus_reg_t *) prop->value)[0];
    235226                if (!ofw_sbus_apply_ranges(node->parent, sbus_reg, &fb_addr)) {
    236                         log(LF_ARCH, LVL_ERROR,
    237                             "Failed to determine screen address.");
     227                        printf("Failed to determine screen address.\n");
    238228                        return;
    239229                }
     
    243233        case SCR_QEMU_VGA:
    244234                if (prop->size / sizeof(ofw_pci_reg_t) < 2) {
    245                         log(LF_ARCH, LVL_ERROR, "Too few screen registers.");
     235                        printf("Too few screen registers.\n");
    246236                        return;
    247237                }
     
    250240
    251241                if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
    252                         log(LF_ARCH, LVL_ERROR,
    253                             "Failed to absolutize fb register.");
     242                        printf("Failed to absolutize fb register.\n");
    254243                        return;
    255244                }
     
    257246                if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
    258247                    &fb_addr)) {
    259                         log(LF_ARCH, LVL_ERROR,
    260                             "Failed to determine screen address.");
     248                        printf("Failed to determine screen address.\n");
    261249                        return;
    262250                }
     
    280268                        break;
    281269                default:
    282                         log(LF_ARCH, LVL_ERROR, "Unsupported bits per pixel.");
     270                        printf("Unsupported bits per pixel.\n");
    283271                        return;
    284272                }
Note: See TracChangeset for help on using the changeset viewer.