59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
/*
|
|
* \brief Core-specific instance of the IRQ session interface for Linux
|
|
* \author Christian Helmuth
|
|
* \date 2007-09-13
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2007-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 _CORE__INCLUDE__IRQ_SESSION_COMPONENT_H_
|
|
#define _CORE__INCLUDE__IRQ_SESSION_COMPONENT_H_
|
|
|
|
#include <util/list.h>
|
|
#include <base/rpc_server.h>
|
|
#include <base/allocator.h>
|
|
#include <irq_session/irq_session.h>
|
|
#include <irq_object.h>
|
|
|
|
namespace Genode {
|
|
class Irq_session_component;
|
|
}
|
|
|
|
class Genode::Irq_session_component : public Rpc_object<Irq_session>,
|
|
private List<Irq_session_component>::Element
|
|
{
|
|
private:
|
|
|
|
friend class List<Irq_session_component>;
|
|
unsigned _irq_number;
|
|
Genode::Irq_object _irq_object;
|
|
|
|
public:
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
Irq_session_component(Range_allocator &, const char *);
|
|
|
|
/**
|
|
* Destructor
|
|
*/
|
|
~Irq_session_component();
|
|
|
|
|
|
/***************************
|
|
** Irq session interface **
|
|
***************************/
|
|
|
|
void ack_irq() override;
|
|
void sigh(Signal_context_capability) override;
|
|
Info info() override;
|
|
};
|
|
|
|
#endif /* _CORE__INCLUDE__IRQ_SESSION_COMPONENT_H_ */
|