Changeset 6ac14a70 in mainline for uspace/srv
- Timestamp:
- 2009-07-28T12:47:31Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e73815
- Parents:
- 7038f55
- Location:
- uspace/srv
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/fb.c
r7038f55 r6ac14a70 251 251 } 252 252 253 static 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 259 static void mask_8880(void *dst, bool mask) 260 { 261 *((uint32_t *) dst) = (mask ? 0xffffff00 : 0); 262 } 253 263 254 264 /** RGB 8:8:8 conversion … … 651 661 break; 652 662 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; 655 665 screen.pixelbytes = 4; 656 666 break; … … 1745 1755 unsigned int fb_scanline = sysinfo_value("fb.scanline"); 1746 1756 unsigned int fb_visual = sysinfo_value("fb.visual"); 1747 1757 1748 1758 unsigned int fbsize = fb_scanline * fb_height; 1749 1759 void *fb_addr = as_get_mappable_page(fbsize); 1750 1760 1751 1761 if (physmem_map(fb_ph_addr + fb_offset, fb_addr, 1752 1762 ALIGN_UP(fbsize, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE) != 0) 1753 1763 return -1; 1754 1764 1755 1765 if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual)) 1756 1766 return 0; 1757 1767 1758 1768 return -1; 1759 1769 } -
uspace/srv/kbd/Makefile
r7038f55 r6ac14a70 62 62 63 63 ifeq ($(UARCH), arm32) 64 ifeq ($(MACHINE), testarm) 64 65 GENARCH_SOURCES += \ 65 66 port/gxemul.c … … 72 73 ctl/stty.c 73 74 endif 75 endif 76 ifeq ($(MACHINE), integratorcp) 77 GENARCH_SOURCES += \ 78 port/pl050.c \ 79 ctl/pl050.c 80 endif 74 81 endif 75 82
Note:
See TracChangeset
for help on using the changeset viewer.