mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-28 01:28:53 +00:00
1f40d9de6a
Fixes #1542
33 lines
715 B
C++
33 lines
715 B
C++
/*
|
|
* \brief Abstract platform device interface
|
|
* \author Alexander Boettcher
|
|
* \date 2015-03-15
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2015 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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <irq_session/capability.h>
|
|
#include <io_mem_session/capability.h>
|
|
|
|
namespace Platform { class Abstract_device; }
|
|
|
|
struct Platform::Abstract_device
|
|
{
|
|
/**
|
|
* Get IRQ session capability
|
|
*/
|
|
virtual Genode::Irq_session_capability irq(Genode::uint8_t) = 0;
|
|
|
|
/**
|
|
* Get IO mem session capability of specified resource id
|
|
*/
|
|
virtual Genode::Io_mem_session_capability io_mem(Genode::uint8_t) = 0;
|
|
};
|