Commit dcda2256 authored by Jens Korinth's avatar Jens Korinth
Browse files

Implement basic flags and errors for PE-local memories

parent 9c3c788f
......@@ -42,6 +42,8 @@
//! License along with Tapasco. If not, see
//! <http://www.gnu.org/licenses/>.
//! @details ### Change Log ###
//! - Version 1.4 (jk)
//! + added support for pe-local memories
//! - Version 1.3 (jk)
//! + added device capabilities
//! - Version 1.2.1 (jk)
......@@ -115,7 +117,9 @@ typedef enum {
/** Flags for memory allocation (implementation defined). **/
typedef enum {
/** no flags **/
TAPASCO_DEVICE_ALLOC_FLAGS_NONE = 0
TAPASCO_DEVICE_ALLOC_FLAGS_NONE = 0,
/** PE-local, i.e., only accessible from scheduled PE **/
TAPASCO_DEVICE_ALLOC_FLAGS_PE_LOCAL = 1,
} tapasco_device_alloc_flag_t;
/** Flags for bitstream loading (implementation defined). **/
......@@ -170,7 +174,7 @@ typedef enum {
* @{
**/
#define TAPASCO_API_VERSION "1.3"
#define TAPASCO_API_VERSION "1.4"
/**
* Returns the version string of the library.
......
......@@ -44,7 +44,8 @@ namespace rpr { namespace tapasco { extern "C" {
_X(TAPASCO_ERR_PLATFORM_FAILURE , -12 , "platform failure, check log") \
_X(TAPASCO_ERR_STATUS_CORE_NOT_FOUND , -13 , "TPC status core not found in bitstream") \
_X(TAPASCO_ERR_VERSION_MISMATCH , -14 , "TPC API library version mismatch") \
_X(TAPASCO_ERR_SENTINEL , -15 , "--- no error just end of list ---")
_X(TAPASCO_ERR_NO_PE_LOCAL_MEMORY_AVAILABLE , -15 , "PE-local memory was selected, but none available") \
_X(TAPASCO_ERR_SENTINEL , -16 , "--- no error just end of list ---")
#ifdef _X
#undef _X
......
......@@ -45,6 +45,8 @@
* License along with Tapasco. If not, see
* <http://www.gnu.org/licenses/>.
* @details ### Change Log ###
* - **12/2017: Version 1.4 (jk)**
* + added support for PE-local memories
* - **06/2016: Version 1.3 (jk)**
* + added 'raw' mode for read/write to bypass address filters
* + added special address for the ATS/PRI checker
......@@ -125,7 +127,9 @@ typedef enum {
typedef enum {
/** no flags **/
PLATFORM_ALLOC_FLAGS_NONE = 0
PLATFORM_ALLOC_FLAGS_NONE = 0,
/** PE-local memory **/
PLATFORM_ALLOC_FLAGS_PE_LOCAL = 1,
} platform_alloc_flags_t;
typedef enum {
......@@ -146,7 +150,7 @@ typedef enum {
* @{
**/
#define PLATFORM_API_VERSION "1.3"
#define PLATFORM_API_VERSION "1.4"
/**
* Returns the version string of the library.
......
......@@ -48,7 +48,8 @@ namespace tapasco { namespace platform { extern "C" {
_X(PERR_DMA_INVALID_SIZE , -18 , "invalid read/write dma size") \
_X(PERR_VERSION_MISMATCH , -19 , "Platform API version mismatch") \
_X(PERR_NOT_IMPLEMENTED , -20 , "not implemented") \
_X(PERR_SENTINEL , -21 , "--- no error, just end of list ---")
_X(PERR_NO_PE_LOCAL_MEMORY , -21 , "PE-local memory not available") \
_X(PERR_SENTINEL , -22 , "--- no error, just end of list ---")
#ifdef _X
#undef _X
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment