00001 /* $Id: gmode.h 27999 2007-03-12 16:53:09Z adam $ */ 00002 /** 00003 * \file con/server/src/gmode.h 00004 * \brief Graphics mode initialization 00005 * 00006 * \date 2005 00007 * \author Frank Mehnert <fm3@os.inf.tu-dresden.de> */ 00008 00009 /* (c) 2003 'Technische Universitaet Dresden' 00010 * This file is part of the con package, which is distributed under 00011 * the terms of the GNU General Public License 2. Please see the 00012 * COPYING file for details. */ 00013 00014 #ifndef _GMODE_H 00015 #define _GMODE_H 00016 00017 #include <l4/sys/l4int.h> 00018 00019 /** initialize graphics mode. */ 00020 void init_gmode(void); 00021 00022 extern l4_uint8_t* gr_vmem; 00023 extern l4_uint8_t* gr_vmem_maxmap; 00024 extern l4_size_t gr_vmem_size; 00025 extern l4_uint8_t* vis_vmem; /**< vsbl. mem (>gr_vmem if panned) */ 00026 extern l4_offs_t vis_offs; /**< vis_vmem - gr_vmem */ 00027 00028 extern l4_uint16_t VESA_XRES; /**< pixels per line */ 00029 extern l4_uint16_t VESA_YRES; /**< pixels per row */ 00030 extern l4_uint16_t VESA_YRES_CLIENT; /**< pixels per row for clients */ 00031 extern l4_uint16_t VESA_BPL; /**< bytes per line */ 00032 extern l4_uint8_t VESA_BITS; /**< bits per pixel */ 00033 extern l4_uint8_t VESA_RES; /**< reserved bits */ 00034 extern l4_uint8_t VESA_RED_OFFS; /**< red bits offset in pixel */ 00035 extern l4_uint8_t VESA_GREEN_OFFS; /**< green bits offset in pixel */ 00036 extern l4_uint8_t VESA_BLUE_OFFS; /**< blue bits offset in pixel */ 00037 extern l4_uint8_t VESA_RED_SIZE; /**< number of red bits per pixel */ 00038 extern l4_uint8_t VESA_GREEN_SIZE; /**< number of green bits per pixel */ 00039 extern l4_uint8_t VESA_BLUE_SIZE; /**< number of blue bits per pixel */ 00040 extern l4_uint8_t FONT_XRES; /**< x-pixels per font character */ 00041 extern l4_uint8_t FONT_YRES; /**< y-pixels per font character */ 00042 extern l4_uint32_t FONT_CHRS; /**< number of characters in font */ 00043 extern int panned; /**< display is panned */ 00044 extern l4_umword_t accel_caps; 00045 extern l4_uint32_t pan_offs_x; /**< panned to position x */ 00046 extern l4_uint32_t pan_offs_y; /**< panned to position y */ 00047 00048 #endif /* !_GMODE_H */