4fe158a320
Move clock and reset controller functionality out of framebuffer driver into platform driver.
36 lines
940 B
C++
36 lines
940 B
C++
/*
|
|
* \brief i.MX53 specific platform session client side
|
|
* \author Stefan Kalkowski <stefan.kalkowski@genode-labs.com
|
|
* \date 2013-04-29
|
|
*/
|
|
|
|
/*
|
|
* 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 : Genode::Rpc_client<Session>
|
|
{
|
|
explicit Client(Capability<Session> session)
|
|
: Genode::Rpc_client<Session>(session) { }
|
|
|
|
void enable(Device dev) { call<Rpc_enable>(dev); }
|
|
void disable(Device dev) { call<Rpc_disable>(dev); }
|
|
void clock_rate(Device dev, unsigned long rate) {
|
|
call<Rpc_clock_rate>(dev, rate); }
|
|
};
|
|
}
|
|
|
|
#endif /* _INCLUDE__PLATFORM_SESSION__CLIENT_H_ */
|