- Timestamp:
- 2006-05-28T10:05:03Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b99e40
- Parents:
- 01ff41c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fb/fb.c
r01ff41c r7f5b37a 29 29 30 30 #include <stdio.h> 31 #include <stdlib.h> 32 #include <unistd.h> 33 #include <string.h> 31 34 #include <ddi.h> 32 35 #include <task.h> 33 #include <stdlib.h>34 #include <ddi.h>35 36 #include <sysinfo.h> 36 37 #include <align.h> 37 38 #include <as.h> 38 39 #include <ipc/fb.h> 39 40 41 40 #include <ipc/ipc.h> 41 #include <ipc/ns.h> 42 42 #include <ipc/services.h> 43 #include <unistd.h>44 #include <stdlib.h>45 #include <ipc/ns.h>46 47 43 #include <kernel/errno.h> 48 44 #include <async.h> 49 50 51 45 #include "font-8x16.h" 52 #include <string.h>53 54 46 #include "helenos.xbm" 55 47 #include "fb.h" … … 69 61 #define H_NO_VFBS 3 70 62 #define V_NO_VFBS 3 71 72 63 73 64 static void fb_putchar(int item,char ch); … … 77 68 unsigned int BGCOLOR,unsigned int FGCOLOR,unsigned int LOGOCOLOR); 78 69 79 80 70 unsigned int mod_col(unsigned int col,int mod); 81 82 83 71 84 72 static int init_fb(void) … … 102 90 103 91 fb_addr=ALIGN_UP(((__address)set_maxheapsize(USER_ADDRESS_SPACE_SIZE_ARCH>>1)),PAGE_SIZE); 104 105 106 92 107 93 map_physmem(task_get_id(),(void *)((__address)fb_ph_addr),(void *)fb_addr, 108 (fb_scanline*fb_height+PAGE_SIZE-1)>>PAGE_WIDTH,1); 94 (fb_scanline*fb_height+PAGE_SIZE-1)>>PAGE_WIDTH, 95 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE); 109 96 110 97 fb_init(0,fb_addr, fb_width, fb_height, fb_bpp, fb_scanline,
Note:
See TracChangeset
for help on using the changeset viewer.