mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 08:21:08 +00:00
ed52d5a211
Instead of holding SPEC-variable dependent files and directories inline within the repository structure, move them into 'spec' subdirectories at the corresponding levels, e.g.: repos/base/include/spec repos/base/mk/spec repos/base/lib/mk/spec repos/base/src/core/spec ... Moreover, this commit removes the 'platform' directories. That term was used in an overloaded sense. All SPEC-relative 'platform' directories are now named 'spec'. Other files, like for instance those related to the kernel/architecture specific startup library, where moved from 'platform' directories to explicit, more meaningful places like e.g.: 'src/lib/startup'. Fix #1673
36 lines
843 B
C++
36 lines
843 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.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__PLATFORM_DEVICE__DEVICE_H_
|
|
#define _INCLUDE__PLATFORM_DEVICE__DEVICE_H_
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif /* _INCLUDE__PLATFORM_DEVICE__DEVICE_H_ */
|