2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief Client-side IRQ session interface
|
|
|
|
* \author Christian Helmuth
|
2015-03-17 12:28:20 +00:00
|
|
|
* \author Martin Stein
|
2011-12-22 15:19:25 +00:00
|
|
|
* \date 2007-09-13
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2007-2017 Genode Labs GmbH
|
2011-12-22 15:19:25 +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.
|
2011-12-22 15:19:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__IRQ_SESSION__CLIENT_H_
|
|
|
|
#define _INCLUDE__IRQ_SESSION__CLIENT_H_
|
|
|
|
|
2015-03-17 12:28:20 +00:00
|
|
|
/* Genode includes */
|
2011-12-22 15:19:25 +00:00
|
|
|
#include <irq_session/capability.h>
|
|
|
|
#include <base/rpc_client.h>
|
|
|
|
|
2015-03-04 20:12:14 +00:00
|
|
|
namespace Genode { struct Irq_session_client; }
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2015-03-17 12:28:20 +00:00
|
|
|
/**
|
|
|
|
* Client-side IRQ session interface
|
|
|
|
*/
|
2015-03-04 20:12:14 +00:00
|
|
|
struct Genode::Irq_session_client : Rpc_client<Irq_session>
|
|
|
|
{
|
2015-03-17 12:28:20 +00:00
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
|
|
|
* \param session pointer to the session backend
|
|
|
|
*/
|
|
|
|
explicit Irq_session_client(Irq_session_capability const & session)
|
|
|
|
:
|
2015-03-17 14:41:47 +00:00
|
|
|
Rpc_client<Irq_session>(session)
|
2015-03-17 12:28:20 +00:00
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
|
/*****************
|
|
|
|
** Irq_session **
|
|
|
|
*****************/
|
|
|
|
|
2016-04-29 11:23:19 +00:00
|
|
|
void ack_irq() override { call<Rpc_ack_irq>(); }
|
2015-03-17 12:28:20 +00:00
|
|
|
|
2015-03-17 14:41:47 +00:00
|
|
|
void sigh(Signal_context_capability sigh) override { call<Rpc_sigh>(sigh); }
|
2015-04-27 10:17:20 +00:00
|
|
|
|
|
|
|
Info info() override { return call<Rpc_info>(); }
|
2015-03-04 20:12:14 +00:00
|
|
|
};
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
#endif /* _INCLUDE__IRQ_SESSION__CLIENT_H_ */
|