Ignore:
Timestamp:
2006-09-25T20:46:50Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45b26dad
Parents:
5d684e4
Message:

Support for FFB (Creator 3D) framebuffer detection on sparc64.
(Not tested as the Ultra 60, which I have for testing, and which
only has this type of framebuffer doesn't boot for some unknown reason.)

File:
1 edited

Legend:

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

    r5d684e4 r6ff1f1e  
    4141#include <align.h>
    4242#include <print.h>
     43
     44#define FFB_REG_24BPP   7
    4345
    4446scr_type_t scr_type = SCR_UNKNOWN;
     
    121123               
    122124                break;
    123         case SCR_FFB:
     125        case SCR_FFB:   
     126                fb_depth = 24;
     127                fb_scanline = 8192;
     128
     129                ofw_upa_reg_t *reg = &((ofw_upa_reg_t *) prop->value)[FFB_REG_24BPP];
     130                if (!ofw_upa_apply_ranges(node->parent, reg, &fb_addr)) {
     131                        printf("Failed to determine screen address.\n");
     132                        return;
     133                }
     134
     135                break;
    124136        default:
    125137                panic("Unexpected type.\n");
Note: See TracChangeset for help on using the changeset viewer.