mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
The official way to obtain DMA addresses for RAM dataspaces is the RPC function 'Pd_session::dma_addr' now. User-level device drivers should not call this function directly but use the 'Platform_session' interface of the platform driver instead. Fixes #2243
49 lines
932 B
C++
49 lines
932 B
C++
/*
|
|
* \brief Dataspace interface
|
|
* \author Norman Feske
|
|
* \date 2006-07-05
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2006-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 _INCLUDE__DATASPACE__DATASPACE_H_
|
|
#define _INCLUDE__DATASPACE__DATASPACE_H_
|
|
|
|
#include <base/stdint.h>
|
|
#include <base/rpc.h>
|
|
|
|
namespace Genode { struct Dataspace; }
|
|
|
|
|
|
struct Genode::Dataspace : Interface
|
|
{
|
|
virtual ~Dataspace() { }
|
|
|
|
/**
|
|
* Request size of dataspace
|
|
*/
|
|
virtual size_t size() = 0;
|
|
|
|
/**
|
|
* Return true if dataspace is writable
|
|
*/
|
|
virtual bool writable() = 0;
|
|
|
|
|
|
/*********************
|
|
** RPC declaration **
|
|
*********************/
|
|
|
|
GENODE_RPC(Rpc_size, size_t, size);
|
|
GENODE_RPC(Rpc_writable, bool, writable);
|
|
|
|
GENODE_RPC_INTERFACE(Rpc_size, Rpc_writable);
|
|
};
|
|
|
|
#endif /* _INCLUDE__DATASPACE__DATASPACE_H_ */
|