Changeset a2c4445 in mainline for arch


Ignore:
Timestamp:
2006-03-25T22:48:51Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc27ae48
Parents:
c715e9b
Message:

framebuffer code cleanup, support for non-standard scanline sizes
ppc32: get framebuffer parameters from boot loader

Location:
arch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/console.c

    rc715e9b ra2c4445  
    4343                msim_console();
    4444#ifdef CONFIG_FB
    45                 fb_init(0xb2000000, 640, 480, 3); // gxemul framebuffer
     45                fb_init(0xb2000000, 640, 480, 24, 1920); // gxemul framebuffer
    4646#endif
    4747        }
  • arch/ppc32/src/console.c

    rc715e9b ra2c4445  
    2727 */
    2828
     29#include <arch/boot/boot.h>
    2930#include <arch/console.h>
    3031#include <console/chardev.h>
     
    3637void ppc32_console_init(void)
    3738{
    38         /* TODO: PCI detection etc. etc. - this is fine in PearPC for now */
    39         fb_init(0xf0000000, 800, 600, 4);
     39        /* TODO: Framebuffer mapping */
     40        fb_init(0xf0000000, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline);
    4041}
  • arch/sparc64/src/console.c

    rc715e9b ra2c4445  
    8181        dtlb_insert_mapping(KBD_VIRT_ADDRESS, KBD_PHYS_ADDRESS, PAGESIZE_8K, true, false);
    8282
    83         fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH/8);
     83        fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH, FB_X_RES * FB_COLOR_DEPTH / 8);
    8484        i8042_init();
    8585}
Note: See TracChangeset for help on using the changeset viewer.