summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3afeeff)
raw | patch | inline | side by side (parent: 3afeeff)
author | Tinku Mannan <tmannan@ti.com> | |
Tue, 22 Apr 2014 15:29:14 +0000 (11:29 -0400) | ||
committer | Tinku Mannan <tmannan@ti.com> | |
Tue, 22 Apr 2014 15:29:14 +0000 (11:29 -0400) |
index db5692fdd3024aa91836832a3d5b32d8239a6055..5bb57cada5daa297546778791f2d2234a30f13dc 100755 (executable)
--- a/ti/runtime/hplib/hplib.h
+++ b/ti/runtime/hplib/hplib.h
@ingroup HPLIB_API
*/
+#ifdef __cplusplus
+}
+#endif
#endif
index 1012824e90befeae7bf787fad67f90627100185d..ddd1a0694543ccb2b3d7f190071c0dfca9924759 100755 (executable)
#ifndef __HPLIB_CACHE_H__
#define __HPLIB_CACHE_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <unistd.h>
@ingroup HPLIB_API
*/
- /**
-@}
-*/
/** @addtogroup HPLIB_CACHE_API
@{ */
/**
@}
*/
+
+#ifdef __cplusplus
+}
+#endif
#endif
index 0d3940ad37b056230c44929f51172fbc1094e116..845e2c19f85add187fcf16c0b06c775f78216812 100755 (executable)
#ifndef __HPLIB_ERR__H
#define __HPLIB_ERR__H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @defgroup hplib_RetValue HPLIB API Return Values
* @ingroup @ingroup HPLIB_API
/* @} */ /* ingroup */
+#ifdef __cplusplus
+}
+#endif
+
#endif
index 2bf34164827644fc15b6555b0c05f2ad15b6b0f0..b5a9aed7ab5a692a510fb0284a64dc6d074c96f4 100755 (executable)
#ifndef __HPLIB_SHM_H__
#define __HPLIB_SHM_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <stdint.h>
#include "src/hplib_loc.h"
#include "hplib_sync.h"
@@ -163,5 +166,9 @@ hplib_RetValue hplib_shmAddEntry(void* base, int size, hplib_shmEntryId_E entryI
*/
void* hplib_shmGetEntry(void* base, hplib_shmEntryId_E entryId);
+#ifdef __cplusplus
+}
+#endif
+
#endif
index 04782c45e169b08b389770e34c6cd3ace5485181..6bc5608f345adae28deee53e848df31029758118 100755 (executable)
#ifndef HPLIB_SYNCH_H
#define HPLIB_SYNCH_H
-
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* @brief
* HPLIB spinlock type
* 1 if 32-bit integer was not set, and has been set (operation succeeded)
*/
static inline int hplib_mAtomic32TestSetReturn(hplib_atomic32_T *p)
-{return (! _sync_lock_test_and_set(p, 1));}
+{return (! __sync_lock_test_and_set(&p->val, 1));}
/**
* @brief Atomically set to zero a 32-bit integer.
*/
static inline long long hplib_mAtomic64Read(hplib_atomic64_T *p)
{
- return _sync_fetch_and_add( &p->val,0);
+ return __sync_fetch_and_add( &p->val,0);
}
/**
@}
*/
+#ifdef __cplusplus
+}
+#endif
#endif
index cde18639f4e44f073ec7131494be7dbcfd64129c..7d2b30597a89d73592f75cda1892801d65fbd5e2 100755 (executable)
#ifndef __HPLIB_UTIL__H
#define __HPLIB_UTIL__H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <pthread.h>
/* This is called 1 Time per system boot by the global master process */
hplib_RetValue hplib_utilOsalCreate(void);
+#ifdef __cplusplus
+}
+#endif
#endif
index 90a59a62b8eaa9f5611c92d5b8e0258fb264a9b0..ccc9fce54c1bbb9cafa1e383154092483424448f 100755 (executable)
#ifndef __HPLIB_VER__
#define __HPLIB_VER__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/**
* @def HPLIB_VERSION_ID
* This is the HPLIB Version. Versions numbers are encoded in the following
* format:
* 0xAABBCCDD -> Arch (AA); API Changes (BB); Major (CC); Minor (DD)
*/
-#define HPLIB_VERSION_ID (0x01000005)
+#define HPLIB_VERSION_ID (0x01000007)
/**
* @def HPLIB_VERSION_STR
* This is the version string which describes the HPLIB along with the
* date and build information.
*/
-#define HPLIB_VERSION_STR "HPLIB Revision: 01.00.00.05"
+#define HPLIB_VERSION_STR "HPLIB Revision: 01.00.00.07"
/**
* @ingroup hplib_gen_functions
* @retval char version string of hplib
*/
static inline char * hplib_getVersionString(void) { return HPLIB_VERSION_STR;}
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif
index 9ecfa56821ec2e9ae08f4938159415b0280aa607..943a8f9e365699d3881e789311a6700bc6ad3bc8 100755 (executable)
#ifndef __HPLIB_VM_H__
#define __HPLIB_VM_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include "src/hplib_loc.h"
#include "hplib_cache.h"
*/
int hplib_vmGetMemPoolRemainder(int pool_id);
-/**
-
/**
* @b Description
* @n
if (!(nextBDPtr->nextBDPtr)) return (void *) hplib_OK;
}
- nextBDPtr = (void *)QMSS_DESC_PTR((nextBDPtr->nextBDPtr));
+ nextBDPtr = (Cppi_HostDesc *)QMSS_DESC_PTR((nextBDPtr->nextBDPtr));
}
}
#ifdef ASSUME_ALL_DESCRIPTOR
hplib_RetValue hplib_checkMallocArea(int pool_id);
+#ifdef __cplusplus
+}
+#endif
#endif
index bd004189303330212a3b2e16dcac8458e536d9ba..3984bc8d985d44222c0deec96fe9596a7ea8a958 100755 (executable)
#ifndef __TI_HPLIBMOD_H__
#define __TI_HPLIBMOD_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
//#include "ti/csl/cslr_device.h"
#define HPLIBMOD_IOCMAGIC 0x0000fe00
size_t size;
};
+#ifdef __cplusplus
+}
+#endif
+
#endif /*__TI_HPLIBMOD_H__ */
index 401474ba205f3bea12603c361a7bb9625d1a7587..915642864a134a3c304e6a905703b7a72217d018 100755 (executable)
#ifndef __HPLIB_LOC__H
#define __HPLIB_LOC__H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include "ti/csl/cslr_device.h"
//#define HPLIB_DEBUG
******************************************************************************/
unsigned long hplib_utilGetVaOfBufferArea(unsigned int offset, unsigned int size);
+#ifdef __cplusplus
+}
+#endif
#endif
index 78dca96ed0b30430a44f140ed6f565603776606d..5956bb02904de0ec78d2e058e06d1800d08c5e5e 100755 (executable)
#ifndef __TIMER_LOC__H
#define __TIMER_LOC__H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
#include <stdint.h>
#ifndef NULL
//start the timer
int t64_start(void);
+#ifdef __cplusplus
+}
+#endif
#endif