genode/repos/os/src/drivers/framebuffer/pl11x/vea9x4/video_memory.cc

28 lines
679 B
C++
Raw Normal View History

2011-12-22 16:19:25 +01:00
/*
* \brief PL11x video memory function for versatile express A9x4.
* \author Stefan Kalkowski
* \date 2011-11-15
*/
/*
2013-01-10 21:44:47 +01:00
* Copyright (C) 2011-2013 Genode Labs GmbH
2011-12-22 16:19:25 +01:00
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <base/env.h>
#include <io_mem_session/connection.h>
#include <pl11x_defs.h>
#include <video_memory.h>
Genode::Dataspace_capability Framebuffer::alloc_video_memory(Genode::size_t sz) {
using namespace Genode;
Io_mem_connection *fb_mem =
new (env()->heap()) Io_mem_connection(PL11X_VIDEO_RAM, sz);
return fb_mem->dataspace();
}