2 * \file con/server/src/ARCH-x86/gmode-arch.c
3 * \brief graphics mode initialization, x86 specific
6 * \author Frank Mehnert <fm3@os.inf.tu-dresden.de> */
8 * (c) 2005-2009 Author(s)
9 * economic rights: Technische Universität Dresden (Germany)
11 * This file is part of TUD:OS and distributed under the terms of the
12 * GNU General Public License 2.
13 * Please see the COPYING-GPL-2 file for details.
19 #include <l4/sys/l4int.h>
20 #include <l4/arm_drivers/lcd.h>
21 #include <l4/util/macros.h>
29 struct arm_lcd_ops *lcd;
31 if (!(lcd = arm_lcd_probe(NULL)))
33 printf("Could not find LCD.\n");
37 printf("Using LCD driver: %s\n", lcd->get_info());
39 if (lcd->get_fbinfo(&fb_info))
41 printf("Could not get framebuffer info\n");
45 YRES_CLIENT = fb_info.height - status_area;
46 fb_info.buffer_offset = 0;
48 gr_vmem = lcd->get_fb();
49 gr_vmem_size = lcd->get_video_mem_size();
50 gr_vmem_maxmap = gr_vmem + gr_vmem_size;
54 printf("Could not setup video memory\n");