/* * \brief Client-side Fiasco.OC specific CPU session interface * \author Stefan Kalkowski * \author Norman Feske * \date 2011-04-14 */ /* * Copyright (C) 2011-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__FOC_NATIVE_CPU__CLIENT_H_ #define _INCLUDE__FOC_NATIVE_CPU__CLIENT_H_ #include #include namespace Genode { struct Foc_native_cpu_client; } struct Genode::Foc_native_cpu_client : Rpc_client { explicit Foc_native_cpu_client(Capability cap) : Rpc_client(static_cap_cast(cap)) { } void enable_vcpu(Thread_capability cap, addr_t vcpu_state) { call(cap, vcpu_state); } Native_capability native_cap(Thread_capability cap) { return call(cap); } Native_capability alloc_irq() { return call(); } }; #endif /* _INCLUDE__FOC_NATIVE_CPU__CLIENT_H_ */