2012-07-30 09:32:06 +00:00
|
|
|
/*
|
|
|
|
* \brief Client-side pd session interface
|
|
|
|
* \author Christian Helmuth
|
|
|
|
* \date 2006-07-12
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2006-2013 Genode Labs GmbH
|
2012-07-30 09:32:06 +00:00
|
|
|
*
|
|
|
|
* 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__PD_SESSION__CLIENT_H_
|
|
|
|
#define _INCLUDE__PD_SESSION__CLIENT_H_
|
|
|
|
|
|
|
|
#include <pd_session/capability.h>
|
|
|
|
#include <base/rpc_client.h>
|
|
|
|
|
|
|
|
namespace Genode {
|
|
|
|
|
|
|
|
struct Pd_session_client : Rpc_client<Pd_session>
|
|
|
|
{
|
|
|
|
explicit Pd_session_client(Pd_session_capability session)
|
|
|
|
: Rpc_client<Pd_session>(session) { }
|
|
|
|
|
|
|
|
int bind_thread(Thread_capability thread) {
|
|
|
|
return call<Rpc_bind_thread>(thread); }
|
|
|
|
|
2013-02-11 10:44:04 +00:00
|
|
|
int assign_parent(Parent_capability parent)
|
|
|
|
{
|
2012-07-30 09:32:06 +00:00
|
|
|
parent.solely_map();
|
2013-02-11 10:44:04 +00:00
|
|
|
return call<Rpc_assign_parent>(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool assign_pci(addr_t pci_config_memory_address) {
|
|
|
|
return call<Rpc_assign_pci>(pci_config_memory_address); }
|
2012-07-30 09:32:06 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__PD_SESSION__CLIENT_H_ */
|