Subversion Repositories HelenOS

Rev

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

Rev 1318 Rev 1327
Line 45... Line 45...
45
static __u8 *blankline = NULL;
45
static __u8 *blankline = NULL;
46
 
46
 
47
static unsigned int xres = 0;
47
static unsigned int xres = 0;
48
static unsigned int yres = 0;
48
static unsigned int yres = 0;
49
static unsigned int scanline = 0;
49
static unsigned int scanline = 0;
-
 
50
static unsigned int bitspp = 0;
50
static unsigned int pixelbytes = 0;
51
static unsigned int pixelbytes = 0;
51
 
52
 
52
static unsigned int position = 0;
53
static unsigned int position = 0;
53
static unsigned int columns = 0;
54
static unsigned int columns = 0;
54
static unsigned int rows = 0;
55
static unsigned int rows = 0;
Line 346... Line 347...
346
    }
347
    }
347
       
348
       
348
    fbaddress = (unsigned char *) addr;
349
    fbaddress = (unsigned char *) addr;
349
    xres = x;
350
    xres = x;
350
    yres = y;
351
    yres = y;
-
 
352
    bitspp = bpp;
351
    scanline = scan;
353
    scanline = scan;
352
   
354
   
353
    rows = y / FONT_SCANLINES;
355
    rows = y / FONT_SCANLINES;
354
    columns = x / COL_WIDTH;
356
    columns = x / COL_WIDTH;
355
 
357
 
Line 357... Line 359...
357
    draw_logo(xres - helenos_width, 0);
359
    draw_logo(xres - helenos_width, 0);
358
    invert_cursor();
360
    invert_cursor();
359
 
361
 
360
    chardev_initialize("fb", &framebuffer, &fb_ops);
362
    chardev_initialize("fb", &framebuffer, &fb_ops);
361
    stdout = &framebuffer;
363
    stdout = &framebuffer;
362
   
364
}
363
    sysinfo_set_item_val("Framebuffer",NULL,true);
-
 
364
    sysinfo_set_item_val("Framebuffer.width",NULL,x);
-
 
365
    sysinfo_set_item_val("Framebuffer.height",NULL,y);
-
 
366
    sysinfo_set_item_val("Framebuffer.scanline",NULL,scan);
-
 
367
    sysinfo_set_item_val("Framebuffer.bpp",NULL,bpp);
-
 
368
    sysinfo_set_item_val("Framebuffer.address.virtual",NULL,addr);
-
 
369
   
-
 
370
 
365
 
371
 
366
 
-
 
367
/** Register framebuffer in sysinfo
-
 
368
 *
-
 
369
 */
-
 
370
void fb_register(void)
-
 
371
{
-
 
372
    sysinfo_set_item_val("fb", NULL, true);
-
 
373
    sysinfo_set_item_val("fb.width", NULL, xres);
-
 
374
    sysinfo_set_item_val("fb.height", NULL, yres);
-
 
375
    sysinfo_set_item_val("fb.scanline", NULL, scanline);
-
 
376
    sysinfo_set_item_val("fb.bpp", NULL, bitspp);
-
 
377
    sysinfo_set_item_val("fb.address.virtual", NULL, (__address) fbaddress);
372
}
378
}