Changeset 9b35499 in mainline for kernel/arch


Ignore:
Timestamp:
2007-09-05T20:01:36Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c785296
Parents:
267ab56
Message:

Experimental support for the cgsix framebuffer, which is found on old Ultra 1
worksations, and the SBUS bus and devices. Not tested.

Location:
kernel/arch/sparc64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/drivers/scr.h

    r267ab56 r9b35499  
    4242        SCR_UNKNOWN,
    4343        SCR_ATYFB,
    44         SCR_FFB
     44        SCR_FFB,
     45        SCR_CGSIX
    4546} scr_type_t;
    4647
  • kernel/arch/sparc64/src/drivers/scr.c

    r267ab56 r9b35499  
    6464        else if (strcmp(name, "SUNW,ffb") == 0)
    6565                scr_type = SCR_FFB;
     66        else if (strcmp(name, "cgsix") == 0)
     67                scr_type = SCR_CGSIX;
    6668       
    6769        if (scr_type == SCR_UNKNOWN) {
     
    152154
    153155                break;
     156        case SCR_CGSIX:
     157                switch (fb_depth) {
     158                case 8:
     159                        fb_scanline = fb_linebytes;
     160                        visual = VISUAL_INDIRECT_8;
     161                        break;
     162                default:
     163                        printf("Not implemented.\n");
     164                        return;
     165                }
     166               
     167                ofw_sbus_reg_t *cg6_reg = &((ofw_sbus_reg_t *) prop->value)[0];
     168                if (!ofw_sbus_apply_ranges(node->parent, cg6_reg, &fb_addr)) {
     169                        printf("Failed to determine screen address.\n");
     170                        return;
     171                }
     172       
     173                break;
    154174        default:
    155175                panic("Unexpected type.\n");
Note: See TracChangeset for help on using the changeset viewer.