mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-22 13:02:56 +01:00
The platform driver is used to access the features provided by the Videocore mboxes, i.e., power configuration and framebuffer setup. The framebuffer driver uses the platform interface to setup a screen mode of 1024x768.
39 lines
1004 B
C++
39 lines
1004 B
C++
/*
|
|
* \brief Raspberry Pi specific platform session client side
|
|
* \author Norman Feske
|
|
* \date 2013-09-16
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2013 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 _INCLUDE__PLATFORM_SESSION__CLIENT_H_
|
|
#define _INCLUDE__PLATFORM_SESSION__CLIENT_H_
|
|
|
|
#include <base/capability.h>
|
|
#include <base/rpc.h>
|
|
#include <platform_session/platform_session.h>
|
|
|
|
namespace Platform { struct Client; }
|
|
|
|
struct Platform::Client : Genode::Rpc_client<Platform::Session>
|
|
{
|
|
explicit Client(Capability<Session> session)
|
|
: Genode::Rpc_client<Session>(session) { }
|
|
|
|
void setup_framebuffer(Framebuffer_info &info) {
|
|
call<Rpc_setup_framebuffer>(info); }
|
|
|
|
bool power_state(Power power) {
|
|
return call<Rpc_get_power_state>(power); }
|
|
|
|
void power_state(Power power, bool enable) {
|
|
call<Rpc_set_power_state>(power, enable); }
|
|
};
|
|
|
|
#endif /* _INCLUDE__PLATFORM_SESSION__CLIENT_H_ */
|