diff options
Diffstat (limited to 'include/odp/api/abi-default/shared_memory.h')
-rw-r--r-- | include/odp/api/abi-default/shared_memory.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/odp/api/abi-default/shared_memory.h b/include/odp/api/abi-default/shared_memory.h new file mode 100644 index 000000000..70d6e906f --- /dev/null +++ b/include/odp/api/abi-default/shared_memory.h @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright (c) 2017-2018 Linaro Limited + */ + +#ifndef ODP_ABI_SHM_H_ +#define ODP_ABI_SHM_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/** @internal Dummy type for strong typing */ +typedef struct { char dummy; /**< @internal Dummy */ } _odp_abi_shm_t; + +/** @addtogroup odp_shared_memory + * @{ + */ + +typedef _odp_abi_shm_t *odp_shm_t; + +#define ODP_SHM_INVALID ((odp_shm_t)0) +#define ODP_SHM_NAME_LEN 32 + +#define ODP_SHM_IOVA_INVALID ((uint64_t)-1) +#define ODP_SHM_PA_INVALID ODP_SHM_IOVA_INVALID + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif |