2017-06-13 12:54:08 +00:00
|
|
|
/*
|
|
|
|
* \brief Client-side HW specific PD session interface
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2017-06-12
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__HW_NATIVE_PD__CLIENT_H_
|
|
|
|
#define _INCLUDE__HW_NATIVE_PD__CLIENT_H_
|
|
|
|
|
|
|
|
#include <hw_native_pd/hw_native_pd.h>
|
|
|
|
#include <base/rpc_client.h>
|
|
|
|
|
|
|
|
namespace Genode { struct Hw_native_pd_client; }
|
|
|
|
|
|
|
|
|
2021-01-08 12:31:24 +00:00
|
|
|
struct Genode::Hw_native_pd_client : Rpc_client<Pd_session::Native_pd>
|
2017-06-13 12:54:08 +00:00
|
|
|
{
|
2021-01-08 12:31:24 +00:00
|
|
|
explicit Hw_native_pd_client(Capability<Pd_session::Native_pd> cap)
|
|
|
|
: Rpc_client<Pd_session::Native_pd>(cap) { }
|
2017-06-13 12:54:08 +00:00
|
|
|
|
|
|
|
void upgrade_cap_slab() override {
|
|
|
|
call<Rpc_upgrade_cap_slab>(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__HW_NATIVE_PD__CLIENT_H_ */
|