Changeset 6ac14a70 in mainline for uspace/srv


Ignore:
Timestamp:
2009-07-28T12:47:31Z (16 years ago)
Author:
Vineeth Pillai <vineethrp@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5e73815
Parents:
7038f55
Message:

ARM port for development board integratorcp(ARM926EJ core module).

Location:
uspace/srv
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/fb.c

    r7038f55 r6ac14a70  
    251251}
    252252
     253static void rgb_8880(void *dst, uint32_t rgb)
     254{
     255        *((uint32_t *) dst)
     256            = (RED(rgb, 8) << 24) | (GREEN(rgb, 8) << 16) | BLUE(rgb, 8) << 8;
     257}
     258
     259static void mask_8880(void *dst, bool mask)
     260{
     261        *((uint32_t *) dst) = (mask ? 0xffffff00 : 0);
     262}
    253263
    254264/** RGB 8:8:8 conversion
     
    651661                break;
    652662        case VISUAL_RGB_8_8_8_0:
    653                 screen.rgb_conv = rgb_888;
    654                 screen.mask_conv = mask_888;
     663                screen.rgb_conv = rgb_8880;
     664                screen.mask_conv = mask_8880;
    655665                screen.pixelbytes = 4;
    656666                break;
     
    17451755        unsigned int fb_scanline = sysinfo_value("fb.scanline");
    17461756        unsigned int fb_visual = sysinfo_value("fb.visual");
    1747        
     1757
    17481758        unsigned int fbsize = fb_scanline * fb_height;
    17491759        void *fb_addr = as_get_mappable_page(fbsize);
    1750        
     1760
    17511761        if (physmem_map(fb_ph_addr + fb_offset, fb_addr,
    17521762            ALIGN_UP(fbsize, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE) != 0)
    17531763                return -1;
    1754        
     1764
    17551765        if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual))
    17561766                return 0;
    1757        
     1767
    17581768        return -1;
    17591769}
  • uspace/srv/kbd/Makefile

    r7038f55 r6ac14a70  
    6262
    6363ifeq ($(UARCH), arm32)
     64ifeq ($(MACHINE), testarm)
    6465        GENARCH_SOURCES += \
    6566                port/gxemul.c
     
    7273                        ctl/stty.c
    7374        endif
     75endif
     76ifeq ($(MACHINE), integratorcp)
     77         GENARCH_SOURCES += \
     78                port/pl050.c \
     79                ctl/pl050.c
     80endif
    7481endif
    7582
Note: See TracChangeset for help on using the changeset viewer.