2016-03-30 13:34:37 +00:00
|
|
|
/*
|
|
|
|
* \brief Client-side Fiasco.OC specific CPU session interface
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2011-04-14
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2011-2017 Genode Labs GmbH
|
2016-03-30 13:34:37 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 12:23:52 +00:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2016-03-30 13:34:37 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__FOC_NATIVE_CPU__CLIENT_H_
|
|
|
|
#define _INCLUDE__FOC_NATIVE_CPU__CLIENT_H_
|
|
|
|
|
|
|
|
#include <foc_native_cpu/foc_native_cpu.h>
|
|
|
|
#include <base/rpc_client.h>
|
|
|
|
|
|
|
|
namespace Genode { struct Foc_native_cpu_client; }
|
|
|
|
|
|
|
|
|
2021-01-13 15:23:25 +00:00
|
|
|
struct Genode::Foc_native_cpu_client : Rpc_client<Cpu_session::Native_cpu>
|
2016-03-30 13:34:37 +00:00
|
|
|
{
|
|
|
|
explicit Foc_native_cpu_client(Capability<Native_cpu> cap)
|
2021-01-13 15:23:25 +00:00
|
|
|
: Rpc_client<Cpu_session::Native_cpu>(cap) { }
|
2016-03-30 13:34:37 +00:00
|
|
|
|
2016-12-13 18:19:44 +00:00
|
|
|
Native_capability native_cap(Thread_capability cap) override {
|
2016-03-30 13:34:37 +00:00
|
|
|
return call<Rpc_native_cap>(cap); }
|
|
|
|
|
2016-12-13 18:19:44 +00:00
|
|
|
Foc_thread_state thread_state(Thread_capability cap) override {
|
|
|
|
return call<Rpc_thread_state>(cap); }
|
2016-03-30 13:34:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__FOC_NATIVE_CPU__CLIENT_H_ */
|