mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 15:02:25 +00:00
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/*
|
|
* \brief I/O-memory session interface
|
|
* \author Christian Helmuth
|
|
* \date 2006-08-01
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2006-2012 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__IO_MEM_SESSION__IO_MEM_SESSION_H_
|
|
#define _INCLUDE__IO_MEM_SESSION__IO_MEM_SESSION_H_
|
|
|
|
#include <dataspace/capability.h>
|
|
#include <session/session.h>
|
|
|
|
namespace Genode {
|
|
|
|
struct Io_mem_dataspace : Dataspace { };
|
|
|
|
typedef Capability<Io_mem_dataspace> Io_mem_dataspace_capability;
|
|
|
|
struct Io_mem_session : Session
|
|
{
|
|
static const char *service_name() { return "IO_MEM"; }
|
|
|
|
virtual ~Io_mem_session() { }
|
|
|
|
/**
|
|
* Request dataspace containing the IO_MEM session data
|
|
*
|
|
* \return capability to IO_MEM dataspace
|
|
* (may be invalid)
|
|
*/
|
|
virtual Io_mem_dataspace_capability dataspace() = 0;
|
|
|
|
|
|
/*********************
|
|
** RPC declaration **
|
|
*********************/
|
|
|
|
GENODE_RPC(Rpc_dataspace, Io_mem_dataspace_capability, dataspace);
|
|
|
|
GENODE_RPC_INTERFACE(Rpc_dataspace);
|
|
};
|
|
}
|
|
|
|
#endif /* _INCLUDE__IO_MEM_SESSION__IO_MEM_SESSION_H_ */
|