genode/base/include/io_mem_session/io_mem_session.h
2013-01-10 21:44:47 +01:00

52 lines
1.1 KiB
C++

/*
* \brief I/O-memory session interface
* \author Christian Helmuth
* \date 2006-08-01
*/
/*
* Copyright (C) 2006-2013 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_ */