Rev 4342 | Rev 4346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4342 | Rev 4343 | ||
|---|---|---|---|
| Line 50... | Line 50... | ||
| 50 | #include <ddi/ddi.h> |
50 | #include <ddi/ddi.h> |
| 51 | #include <arch/types.h> |
51 | #include <arch/types.h> |
| 52 | 52 | ||
| 53 | SPINLOCK_INITIALIZE(fb_lock); |
53 | SPINLOCK_INITIALIZE(fb_lock); |
| 54 | 54 | ||
| 55 | /**< Physical memory area for fb. */ |
- | |
| 56 | static parea_t fb_parea; |
- | |
| 57 | - | ||
| 58 | static uint8_t *fb_addr; |
55 | static uint8_t *fb_addr; |
| 59 | static uint8_t *backbuf; |
56 | static uint8_t *backbuf; |
| 60 | static uint8_t *glyphs; |
57 | static uint8_t *glyphs; |
| 61 | static uint8_t *bgscan; |
58 | static uint8_t *bgscan; |
| 62 | 59 | ||
| Line 517... | Line 514... | ||
| 517 | 514 | ||
| 518 | glyphs_render(); |
515 | glyphs_render(); |
| 519 | 516 | ||
| 520 | fb_addr = (uint8_t *) hw_map((uintptr_t) props->addr, fbsize); |
517 | fb_addr = (uint8_t *) hw_map((uintptr_t) props->addr, fbsize); |
| 521 | 518 | ||
| 522 | fb_parea.pbase = (uintptr_t) props->addr + props->offset; |
- | |
| 523 | fb_parea.vbase = (uintptr_t) fb_addr; |
- | |
| 524 | fb_parea.frames = SIZE2FRAMES(fbsize); |
- | |
| 525 | fb_parea.cacheable = false; |
- | |
| 526 | ddi_parea_register(&fb_parea); |
- | |
| 527 | - | ||
| 528 | sysinfo_set_item_val("fb", NULL, true); |
519 | sysinfo_set_item_val("fb", NULL, true); |
| 529 | sysinfo_set_item_val("fb.kind", NULL, 1); |
520 | sysinfo_set_item_val("fb.kind", NULL, 1); |
| 530 | sysinfo_set_item_val("fb.width", NULL, xres); |
521 | sysinfo_set_item_val("fb.width", NULL, xres); |
| 531 | sysinfo_set_item_val("fb.height", NULL, yres); |
522 | sysinfo_set_item_val("fb.height", NULL, yres); |
| 532 | sysinfo_set_item_val("fb.scanline", NULL, scanline); |
523 | sysinfo_set_item_val("fb.scanline", NULL, scanline); |