Changeset b4fa652 in mainline for kernel/arch


Ignore:
Timestamp:
2006-08-04T08:21:30Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b006a2c8
Parents:
d7e3fa66
Message:

Support 24bpp framebuffers with 4 pixelbytes (each pixel aligned on 32-bits).

At least on sparc64, the OpenFirmware linebytes property specifies the number
of pixels between consecutive scan lines of the display. Fix scanilne calculation,
including possible alignment.

Add note to 8bpp pixel functions pointing out drawbacks of that mode.

Location:
kernel/arch
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/drivers/vesa.c

    rd7e3fa66 rb4fa652  
    6868void vesa_init(void)
    6969{
    70         fb_init(vesa_ph_addr, vesa_width, vesa_height, vesa_bpp, vesa_scanline);
     70        fb_init(vesa_ph_addr, vesa_width, vesa_height, vesa_bpp, vesa_scanline, false);
    7171}
    7272
  • kernel/arch/mips32/src/mips32.c

    rd7e3fa66 rb4fa652  
    128128{
    129129#ifdef CONFIG_FB
    130         fb_init(0x12000000, 640, 480, 24, 1920); // gxemul framebuffer
     130        fb_init(0x12000000, 640, 480, 24, 1920, false); // gxemul framebuffer
    131131#endif
    132132        sysinfo_set_item_val("machine." STRING(MACHINE),NULL,1);
  • kernel/arch/ppc32/src/ppc32.c

    rd7e3fa66 rb4fa652  
    7171{
    7272        if (config.cpu_active == 1) {
    73                 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline);
     73                fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline, false);
    7474       
    7575                /* Initialize PIC */
  • kernel/arch/ppc64/src/ppc64.c

    rd7e3fa66 rb4fa652  
    2727 */
    2828
    29  /** @addtogroup ppc64
     29/** @addtogroup ppc64
    3030 * @{
    3131 */
     
    6969{
    7070        if (config.cpu_active == 1) {
    71                 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline);   
     71                fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline, false);
    7272       
    7373                /* Merge all zones to 1 big zone */
     
    111111}
    112112
    113  /** @}
     113/** @}
    114114 */
    115 
  • kernel/arch/sparc64/src/console.c

    rd7e3fa66 rb4fa652  
    5959               
    6060        fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height,
    61                 bootinfo.screen.bpp, bootinfo.screen.scanline);
     61                bootinfo.screen.bpp, bootinfo.screen.scanline, true);
    6262}
    6363
Note: See TracChangeset for help on using the changeset viewer.