Changes in kernel/arch/ia32/src/drivers/vesa.c [a71c158:19490ce] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/drivers/vesa.c
ra71c158 r19490ce 27 27 */ 28 28 29 /** @addtogroup ia32 29 /** @addtogroup ia32 30 30 * @{ 31 31 */ … … 40 40 #include <genarch/fb/visuals.h> 41 41 #include <arch/drivers/vesa.h> 42 #include <console/chardev.h>43 #include <console/console.h>44 42 #include <putchar.h> 45 43 #include <mm/page.h> … … 68 66 uint8_t vesa_blue_pos; 69 67 70 bool vesa_init(void)68 int vesa_present(void) 71 69 { 72 if ((vesa_width == 0xffff) || (vesa_height == 0xffff))73 return false;70 if ((vesa_width != 0xffff) && (vesa_height != 0xffff)) 71 return true; 74 72 75 visual_t visual; 73 return false; 74 } 75 76 void vesa_init(void) 77 { 78 unsigned int visual; 76 79 77 80 switch (vesa_bpp) { … … 94 97 break; 95 98 default: 96 LOG("Unsupported bits per pixel."); 97 return false; 99 panic("Unsupported bits per pixel."); 98 100 } 99 101 … … 106 108 .visual = visual, 107 109 }; 108 109 outdev_t *fbdev = fb_init(&vesa_props); 110 if (!fbdev) 111 return false; 112 113 stdout_wire(fbdev); 114 return true; 110 fb_init(&vesa_props); 111 } 112 113 void vesa_redraw(void) 114 { 115 fb_redraw(); 115 116 } 116 117
Note:
See TracChangeset
for help on using the changeset viewer.