Changeset a71c158 in mainline for kernel/arch/ia32/src/drivers/vesa.c
- Timestamp:
- 2009-08-21T14:12:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e6dce8, b50b5af2, e5792d1
- Parents:
- 90c8b8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/drivers/vesa.c
r90c8b8d ra71c158 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> 42 44 #include <putchar.h> 43 45 #include <mm/page.h> … … 66 68 uint8_t vesa_blue_pos; 67 69 68 int vesa_present(void)70 bool vesa_init(void) 69 71 { 70 if ((vesa_width != 0xffff) && (vesa_height != 0xffff))71 return true;72 if ((vesa_width == 0xffff) || (vesa_height == 0xffff)) 73 return false; 72 74 73 return false; 74 } 75 76 void vesa_init(void) 77 { 78 unsigned int visual; 75 visual_t visual; 79 76 80 77 switch (vesa_bpp) { … … 97 94 break; 98 95 default: 99 panic("Unsupported bits per pixel."); 96 LOG("Unsupported bits per pixel."); 97 return false; 100 98 } 101 99 … … 108 106 .visual = visual, 109 107 }; 110 fb_init(&vesa_props); 111 } 112 113 void vesa_redraw(void) 114 { 115 fb_redraw(); 108 109 outdev_t *fbdev = fb_init(&vesa_props); 110 if (!fbdev) 111 return false; 112 113 stdout_wire(fbdev); 114 return true; 116 115 } 117 116
Note:
See TracChangeset
for help on using the changeset viewer.