From patchwork Tue Jan 31 08:07:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 92948 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1815579qgi; Tue, 31 Jan 2017 00:09:49 -0800 (PST) X-Received: by 10.36.52.197 with SMTP id z188mr19750321itz.71.1485850189917; Tue, 31 Jan 2017 00:09:49 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h76si12492378ioi.174.2017.01.31.00.09.49; Tue, 31 Jan 2017 00:09:49 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1BC6D60C4E; Tue, 31 Jan 2017 08:09:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 2A79260C5E; Tue, 31 Jan 2017 08:08:07 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E7B3560C53; Tue, 31 Jan 2017 08:07:54 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0126.outbound.protection.outlook.com [104.47.2.126]) by lists.linaro.org (Postfix) with ESMTPS id 3B05F608AE for ; Tue, 31 Jan 2017 08:07:49 +0000 (UTC) Received: from AMXPR07CA0032.eurprd07.prod.outlook.com (10.242.64.32) by VI1PR07MB0816.eurprd07.prod.outlook.com (10.161.107.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5; Tue, 31 Jan 2017 08:07:47 +0000 Received: from DB3FFO11FD022.protection.gbl (2a01:111:f400:7e04::162) by AMXPR07CA0032.outlook.office365.com (2a01:111:e400:1000::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5 via Frontend Transport; Tue, 31 Jan 2017 08:07:46 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.36 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.36) by DB3FFO11FD022.mail.protection.outlook.com (10.47.217.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Tue, 31 Jan 2017 08:07:46 +0000 Received: from fihe3nok1346.nsn-intra.net (10.158.36.134) by fihe3nok1347.nsn-intra.net (10.158.36.135) with Microsoft SMTP Server (TLS) id 15.1.466.34; Tue, 31 Jan 2017 10:07:45 +0200 Received: from mailrelay.int.nokia.com (10.130.128.21) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Tue, 31 Jan 2017 10:07:45 +0200 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v0V87Qqs032669 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 31 Jan 2017 10:07:26 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v0V87Qar032638 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Tue, 31 Jan 2017 10:07:26 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Tue, 31 Jan 2017 10:07:24 +0200 Message-ID: <1485850046-28457-7-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1485850046-28457-1-git-send-email-petri.savolainen@linaro.org> References: <1485850046-28457-1-git-send-email-petri.savolainen@linaro.org> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.36; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39410400002)(39840400002)(39860400002)(39850400002)(39450400003)(2980300002)(189002)(199003)(8936002)(8676002)(626004)(33646002)(450100001)(81166006)(81156014)(22756006)(50226002)(189998001)(5660300001)(305945005)(107886002)(2906002)(68736007)(356003)(2950100002)(97736004)(6916009)(110136003)(38730400001)(76176999)(47776003)(50986999)(77096006)(53936002)(86362001)(50466002)(48376002)(92566002)(2351001)(36756003)(105596002)(106466001)(5003940100001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB0816; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD022; 1:p/29Maudz4n2DPN3O5yasoGE+xJD84ThpWJZCTWd55t7sVv4Px0AURjN2Zgap46UJ904ZMA/jv53Xx1ARvQfPgAZ0fipCC5syqYurKoEfWidkBwOC0qtDIFY445nhOaa9K4qFjszVhE+JUVtS3UgBhfcoi+z6CWzj1VDM9BJsprfKAhb0Eojk400Dx21M2T1vL5gb+VRuR1DDhxcEZgEq72FZ6N/KftTZOl0+viZVlZ4nmtLBDpbMR+/hQ81vNYZpjy9dgyB5Q83NbzDhnc7q1ybST0DdUN69rRhk//044V3Bt6ijAupxXdKVafHSgtjVUq0LtcNk9UXvDCNNBexkQf0CDOf9KM6lAaj6XgNeCpipvb3SKdC+guZk9jX7ewXGrZ+j7Puh4qsr1JfQcyh2RXlbti5VxOK2EuCUt9+BYiT1vBYJ22L0ormnlOQcwbo/4IVKegm5bReM9aa+hCn5Q== X-MS-Office365-Filtering-Correlation-Id: aeb0ffd5-d349-4299-9c49-08d449b03da4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:VI1PR07MB0816; X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0816; 3:GClu1eNdxxt/WSZG4Ug7Db15zPMq+H0sKpStXU0pNJsLmHbn+Ss8HKBVaWRWZwjh1TPabP1bnc85dNXLoPUd/2XFMeCjeOamcibuu27LAnJL9Q7xr8c7P0ZuD53Im6X3B9fsEtgxzRQmqhXSUJWdQ5tE2lHHAY9ZgpThtvQ50g6jpjjR2wmRNvXNrznkS+jzsFNxUrxiX5T1eZJcasavwg7PbaxxflNOHKR34Uv3K+XNRx4iJQBIljjj7V7DmeMd+kuB3A/8w/5/UegnBPQhdtVxJtWBpTVcMF0p7w37CX0vEiVdbhsB+XOe+JIHx9J1Qwi6bsNbZSwYVoXuoupEdZvzWU6TWidMZNvUomLiLG8= X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0816; 25:1HoH/b4969CDIrMS7HnbE5r4IUEXGZIPsasMXzVbYWZuxTgQDECURz2ZU23dpI8XmE7KC2ZonVgcl0cGvcixe5H9FzVUrvY125eyz677DwpOUCqpucHLLUEXSpEiYdJvRAMK/CTz6MEgRVT3m/BPhEeiXXirARx4bUxIsbgyUF1yvbik4ybNtTB/QF7ymw3YOX+GsAgf0TafZwsFBd7o552CO6559CXYwLt/gGTt/RYcRG+HRQoyzoOhp+D7S9oqrxmYqc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vKD3IWtco++xoIlBp9MdNSyVkEJRMRNa5YjfxnI+GEZp3vig5vfHRTJNHaLqhjmPgqCWS2Wvx6tXn2CovFuuEQUH3it5+WS//8QJo7N+SPyXnAHeGRyanYHjAG7Hy2ArMqR1RXpVE5MZeyQGCHePE3bipbPj8A6cDCHq+dRZkvLRMluvN4o2T5QTfrj4tWDZCOwJ6KwXzo4c9I6ks4rqa0PjpBUoG5DKJNa6hP2d9gSwqwKT8m5lm+1dHnOEqCDG7lioxRcgbADI+mnCjkN66EsIrm+SKDTZGtUH1Xekmjc25RLfEMIt9PqMk7bXM6WIP+3LFEl2cBXFvst0RsXVx89XuIayk8oL6lc4dn9gt2DMtg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123558021)(20161123562025)(20161123564025)(6072148); SRVR:VI1PR07MB0816; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB0816; X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0816; 4:AqAVMxGfKWOMspsKldpSKkNlgH8siWW5X3IiODCuxn1zY3XKGWOiV/L0MBQevhY+HZe/l5dh1MnAO5ZFnanOMS+Qh6rn8IatOzS1PTLh4w5Vqup9tdqUhgwdgu/TIzEfO0qW//3Zd0CtzLW5stPZzdwStYl8oKFL7HeilakhP3nyDYF2ichD7lOI69PvCgphZk/WyEa29ZvYiEmsKaoDcrVaMZKNzw3uiq88itnTOSeJjdOP85Lg/APDk5g0DMzCYcA3X/eSmi+P85wBDS3RPEf0hTb73uPNsXfH1mQ+Q2G/lnfDEt+U3DpDJQj9+YrBGYwWByPmDacTxumAVwWRUwjVv+WJCWu088LS+n1RhO+sXU1gvoj4fAkK+U0jgq8tvvn4zPDfpk8AeQhds1jo8XV2Olo1aR1OyXGSvZA/tcEG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1JPNOqxb3XbHCICc+c0CAoRNvpHVqAlTIcmkOgo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0816; 7:06EdcQaa1MOBXc6XTsA/Acq4a/jyGo5av+k413zF5pq47ESLkHYp0cqdjmYqPUYH6XmEJoSmAKqfmfa2pxsIGgk4NxNKzSawdUbGVDmNDfDpOAJ4MlPz23BaIJEMsOO6YL65KMdObS/aUAmvIzUzdoLZIQW78JgdKOfmZfwMncmDE25JEmsIE6xMfVhifGS/HEoaq8/F88CbfBRMnPLjTPxg0OltmDF/5U8YxjlmKUYTSPeoYBTsjASRo4qIA7UugHQaJoXMnmcHC5ZbuFkoNIMfHl2dZyt98gcV1sIJfbqXjXWCcVY6p4ipcXaV7DE2Ys+tt3JkhvAOMUCOvP5xCAMvX9GXim+vucpixhXd/Uz5p2oU0On/hZEYiedn+eR/8azSO24fiW5xn8zIbfS3br7xCcVs2EveN1UIGMy1+Mh/p+xbHyihDdvZ2HEOgvdRDc9K0mGk88r9JDNUZ5KLjpw9tyBvnqEv1EQ0YlBwOkI8ZadhDvf+OSEg3dRm648BmMGfEl2brb4p4+PFdzNPU1ZMPHYdNZcuKl77PH3pm0ZS6DM5RLakQVI/4yZnw5Wc X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2017 08:07:46.2260 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.36]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB0816 Subject: [lng-odp] [PATCH v4 6/8] abi: pool: added initial definitions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Initially, use the same default ABI file for all architectures. Default values match those defined in odp-linux implementation to minimize changes in this phase. Signed-off-by: Petri Savolainen --- example/timer/odp_timer_test.c | 2 +- include/odp/arch/arm32-linux/odp/api/abi/pool.h | 7 ++++ include/odp/arch/arm64-linux/odp/api/abi/pool.h | 7 ++++ include/odp/arch/default/api/abi/pool.h | 43 ++++++++++++++++++++++ include/odp/arch/mips64-linux/odp/api/abi/pool.h | 7 ++++ include/odp/arch/power64-linux/odp/api/abi/pool.h | 7 ++++ include/odp/arch/x86_32-linux/odp/api/abi/pool.h | 7 ++++ include/odp/arch/x86_64-linux/odp/api/abi/pool.h | 7 ++++ platform/Makefile.inc | 6 ++- .../include/odp/api/plat/pool_types.h | 21 ++++++----- 10 files changed, 102 insertions(+), 12 deletions(-) create mode 100644 include/odp/arch/arm32-linux/odp/api/abi/pool.h create mode 100644 include/odp/arch/arm64-linux/odp/api/abi/pool.h create mode 100644 include/odp/arch/default/api/abi/pool.h create mode 100644 include/odp/arch/mips64-linux/odp/api/abi/pool.h create mode 100644 include/odp/arch/power64-linux/odp/api/abi/pool.h create mode 100644 include/odp/arch/x86_32-linux/odp/api/abi/pool.h create mode 100644 include/odp/arch/x86_64-linux/odp/api/abi/pool.h -- 2.8.1 diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index 1088a74..2196b8c 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -520,7 +520,7 @@ err: if (gbls != NULL && gbls->tp != ODP_TIMER_POOL_INVALID) odp_timer_pool_destroy(gbls->tp); - if (gbls != NULL && gbls->pool != ODP_TIMER_POOL_INVALID) + if (gbls != NULL && gbls->pool != ODP_POOL_INVALID) if (odp_pool_destroy(gbls->pool)) err = 1; diff --git a/include/odp/arch/arm32-linux/odp/api/abi/pool.h b/include/odp/arch/arm32-linux/odp/api/abi/pool.h new file mode 100644 index 0000000..b354afb --- /dev/null +++ b/include/odp/arch/arm32-linux/odp/api/abi/pool.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include diff --git a/include/odp/arch/arm64-linux/odp/api/abi/pool.h b/include/odp/arch/arm64-linux/odp/api/abi/pool.h new file mode 100644 index 0000000..b354afb --- /dev/null +++ b/include/odp/arch/arm64-linux/odp/api/abi/pool.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include diff --git a/include/odp/arch/default/api/abi/pool.h b/include/odp/arch/default/api/abi/pool.h new file mode 100644 index 0000000..4637d19 --- /dev/null +++ b/include/odp/arch/default/api/abi/pool.h @@ -0,0 +1,43 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_ABI_POOL_H_ +#define ODP_ABI_POOL_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +/** @internal Dummy type for strong typing */ +typedef struct { char dummy; /**< @internal Dummy */ } _odp_abi_pool_t; + +/** @ingroup odp_pool + * @{ + */ + +typedef _odp_abi_pool_t *odp_pool_t; + +#define ODP_POOL_INVALID ((odp_pool_t)0xffffffff) + +#define ODP_POOL_NAME_LEN 32 + +typedef enum odp_pool_type_t { + ODP_POOL_BUFFER = ODP_EVENT_BUFFER, + ODP_POOL_PACKET = ODP_EVENT_PACKET, + ODP_POOL_TIMEOUT = ODP_EVENT_TIMEOUT +} odp_pool_type_t; + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/include/odp/arch/mips64-linux/odp/api/abi/pool.h b/include/odp/arch/mips64-linux/odp/api/abi/pool.h new file mode 100644 index 0000000..b354afb --- /dev/null +++ b/include/odp/arch/mips64-linux/odp/api/abi/pool.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include diff --git a/include/odp/arch/power64-linux/odp/api/abi/pool.h b/include/odp/arch/power64-linux/odp/api/abi/pool.h new file mode 100644 index 0000000..b354afb --- /dev/null +++ b/include/odp/arch/power64-linux/odp/api/abi/pool.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include diff --git a/include/odp/arch/x86_32-linux/odp/api/abi/pool.h b/include/odp/arch/x86_32-linux/odp/api/abi/pool.h new file mode 100644 index 0000000..b354afb --- /dev/null +++ b/include/odp/arch/x86_32-linux/odp/api/abi/pool.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include diff --git a/include/odp/arch/x86_64-linux/odp/api/abi/pool.h b/include/odp/arch/x86_64-linux/odp/api/abi/pool.h new file mode 100644 index 0000000..b354afb --- /dev/null +++ b/include/odp/arch/x86_64-linux/odp/api/abi/pool.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 03d9376..deeebff 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -66,7 +66,8 @@ odpapiabidefaultinclude_HEADERS = \ $(top_srcdir)/include/odp/arch/default/api/abi/classification.h \ $(top_srcdir)/include/odp/arch/default/api/abi/crypto.h \ $(top_srcdir)/include/odp/arch/default/api/abi/event.h \ - $(top_srcdir)/include/odp/arch/default/api/abi/packet.h + $(top_srcdir)/include/odp/arch/default/api/abi/packet.h \ + $(top_srcdir)/include/odp/arch/default/api/abi/pool.h odpapiabiarchincludedir= $(includedir)/odp/arch/@ARCH_ABI@/odp/api/abi odpapiabiarchinclude_HEADERS = \ @@ -74,7 +75,8 @@ odpapiabiarchinclude_HEADERS = \ $(top_srcdir)/include/odp/arch/@ARCH_ABI@/odp/api/abi/classification.h \ $(top_srcdir)/include/odp/arch/@ARCH_ABI@/odp/api/abi/crypto.h \ $(top_srcdir)/include/odp/arch/@ARCH_ABI@/odp/api/abi/event.h \ - $(top_srcdir)/include/odp/arch/@ARCH_ABI@/odp/api/abi/packet.h + $(top_srcdir)/include/odp/arch/@ARCH_ABI@/odp/api/abi/packet.h \ + $(top_srcdir)/include/odp/arch/@ARCH_ABI@/odp/api/abi/pool.h EXTRA_DIST = \ arch/arm/odp/api/cpu_arch.h \ diff --git a/platform/linux-generic/include/odp/api/plat/pool_types.h b/platform/linux-generic/include/odp/api/plat/pool_types.h index 6baff09..8bc816d 100644 --- a/platform/linux-generic/include/odp/api/plat/pool_types.h +++ b/platform/linux-generic/include/odp/api/plat/pool_types.h @@ -13,16 +13,20 @@ #ifndef ODP_POOL_TYPES_H_ #define ODP_POOL_TYPES_H_ -#include -#include -#include - #ifdef __cplusplus extern "C" { #endif -/** @addtogroup odp_buffer - * Operations on a pool. +#include +#if ODP_ABI_COMPAT == 1 +#include +#else + +#include +#include +#include + +/** @ingroup odp_pool * @{ */ @@ -32,9 +36,6 @@ typedef ODP_HANDLE_T(odp_pool_t); #define ODP_POOL_NAME_LEN 32 -/** - * Pool type - */ typedef enum odp_pool_type_t { ODP_POOL_BUFFER = ODP_EVENT_BUFFER, ODP_POOL_PACKET = ODP_EVENT_PACKET, @@ -45,6 +46,8 @@ typedef enum odp_pool_type_t { * @} */ +#endif + #ifdef __cplusplus } #endif