00001 /*! \file include/kernel/video.h 00002 * \brief Low level video controller 6845 driver header. 00003 * \author Andrea Righi <drizzt@inwind.it> 00004 * \date Last update: 2003-11-08 00005 * \note Copyright (©) 2003 Andrea Righi 00006 */ 00007 00008 #ifndef VIDEO_H 00009 #define VIDEO_H 00010 00011 #include <const.h> 00012 #include <kernel/console.h> 00013 00014 //! The blank character. 00015 #define BLANK (0x20 | (DEFAULT_COLOR << 8)) 00016 00017 //! The physical address of the video memory buffer. 00018 #define VIDEO_MEM_ADDRESS PHYSICAL(0xB8000) 00019 00020 // --- Prototypes ----------------------------------------------------- // 00021 00022 bool move_cur(console_t *console); 00023 void k_clrscr(console_t *console); 00024 word k_get_cur_pos(console_t *console); 00025 bool k_set_cur_pos(console_t *console, word pos); 00026 byte k_get_color(console_t *console); 00027 void k_set_color(console_t *console, byte attrib); 00028 void k_scroll_up(console_t *console); 00029 void k_gotoxy(console_t *console, int x, int y); 00030 void _kputchar(console_t *console, byte c); 00031 void _kprintf(const byte *message, ...); 00032 void init_video(); 00033 // *************** Giovacchini Luca ********************* 00034 byte k_get_crt_height(); 00035 byte k_get_crt_width(); 00036 // ****************************************************** 00037 00038 #endif