mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 23:53:55 +00:00
Imported Genode release 11.11
This commit is contained in:
committed by
Christian Helmuth
parent
6bcc9aef0e
commit
da4e1feaa5
53
os/src/drivers/framebuffer/vesa/include/framebuffer.h
Normal file
53
os/src/drivers/framebuffer/vesa/include/framebuffer.h
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* \brief Framebuffer driver interface, X86emu interface
|
||||
* \author Christian Helmuth
|
||||
* \author Sebastian Sumpf
|
||||
* \date 2006-09-11
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2006-2011 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#ifndef _FRAMEBUFFER_H_
|
||||
#define _FRAMEBUFFER_H_
|
||||
|
||||
#include <base/capability.h>
|
||||
#include <base/stdint.h>
|
||||
|
||||
#include "vbe.h"
|
||||
|
||||
namespace Framebuffer_drv {
|
||||
|
||||
/**
|
||||
* Return capability for h/w framebuffer dataspace
|
||||
*/
|
||||
Genode::Dataspace_capability hw_framebuffer();
|
||||
|
||||
/**
|
||||
* Initialize driver, x86emu lib, set up memory
|
||||
*/
|
||||
int init();
|
||||
|
||||
/**
|
||||
* Set video, initialize framebuffer dataspace
|
||||
*
|
||||
* \return 0 on success,
|
||||
* non-zero otherwise
|
||||
*/
|
||||
int set_mode(unsigned long width, unsigned long height, unsigned long mode);
|
||||
|
||||
int use_current_mode();
|
||||
|
||||
/**
|
||||
* Map given device memory, return out_addr (map address)
|
||||
*/
|
||||
int map_io_mem(Genode::addr_t base, Genode::size_t size, bool write_combined,
|
||||
void **out_addr, Genode::addr_t addr = 0,
|
||||
Genode::Dataspace_capability *out_io = 0);
|
||||
}
|
||||
|
||||
#endif /* _FRAMEBUFFER_H_ */
|
Reference in New Issue
Block a user