Subversion Repositories HelenOS-historic

Rev

Rev 1313 | Rev 1327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1313 Rev 1318
Line 39... Line 39...
39
#include <arch/asm.h>
39
#include <arch/asm.h>
40
#include <arch/types.h>
40
#include <arch/types.h>
41
#include <typedefs.h>
41
#include <typedefs.h>
42
#include <memstr.h>
42
#include <memstr.h>
43
#include <bitops.h>
43
#include <bitops.h>
-
 
44
#include <sysinfo/sysinfo.h>
44
 
45
 
45
__u32 vesa_ph_addr;
46
__u32 vesa_ph_addr;
46
__u16 vesa_width;
47
__u16 vesa_width;
47
__u16 vesa_height;
48
__u16 vesa_height;
48
__u16 vesa_bpp;
49
__u16 vesa_bpp;
Line 76... Line 77...
76
    for (a = 0; a < ((vesa_scanline * vesa_height + PAGE_SIZE - 1) >> PAGE_WIDTH); a++)
77
    for (a = 0; a < ((vesa_scanline * vesa_height + PAGE_SIZE - 1) >> PAGE_WIDTH); a++)
77
        page_mapping_insert(AS_KERNEL, vram_lin_addr + a*PAGE_SIZE, vesa_ph_addr + a*FRAME_SIZE,
78
        page_mapping_insert(AS_KERNEL, vram_lin_addr + a*PAGE_SIZE, vesa_ph_addr + a*FRAME_SIZE,
78
            PAGE_NOT_CACHEABLE);
79
            PAGE_NOT_CACHEABLE);
79
 
80
 
80
    fb_init(vram_lin_addr, vesa_width, vesa_height, vesa_bpp, vesa_scanline);
81
    fb_init(vram_lin_addr, vesa_width, vesa_height, vesa_bpp, vesa_scanline);
-
 
82
   
-
 
83
    sysinfo_set_item_val("Framebuffer.address.physical",NULL,vesa_ph_addr);
81
}
84
}
82
 
85
 
83
#endif
86
#endif