From patchwork Mon Oct 24 21:29:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 79086 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2794964qge; Mon, 24 Oct 2016 14:30:11 -0700 (PDT) X-Received: by 10.31.4.207 with SMTP id 198mr12281100vke.82.1477344611480; Mon, 24 Oct 2016 14:30:11 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 61si6263805uaw.221.2016.10.24.14.30.11; Mon, 24 Oct 2016 14:30:11 -0700 (PDT) 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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 12E0561723; Mon, 24 Oct 2016 21:30:11 +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=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 77F8261724; Mon, 24 Oct 2016 21:29:36 +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 7D3F5616E8; Mon, 24 Oct 2016 21:29:33 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id 69DCF616E6 for ; Mon, 24 Oct 2016 21:29:32 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id i127so6716087oia.2 for ; Mon, 24 Oct 2016 14:29:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wew5Jw0kyNf5xaVH0NHLWtp7PSprYsUQww9lFLKHOWI=; b=FunTNw5DECbNL/auHbdV4YaY4xeREpEUhGtrTSunPn/nJYS9fuhVSpkYY982CFhhYq vqsnJNVqHtRRZbAUgX4RsOs8KwhLS0eXOKlUfwYPBfqQaCfAcbNdts+offxV0tzNUYk1 j0HsosBlwc73MnYiV4RfC6ABv5/KnalyBpLhydtu2LKHGIYOR5aZwoqHMHM5c7YegGIZ hIiSwsUwFBXUfU8BeLa6aooLli1VxEZJSbgIx/WEKJKMupHqyLqK+I5UCkB3vXA8jTh5 JBaAbMoyd4mEitO4DaKXNERmXjcUfuf6UpX5C9Gv9ooc51L2UvOS70MoFssdFh3ZfMyI X+QQ== X-Gm-Message-State: AA6/9RmCshbyIXwtdQJ9xoLhe1m/1Ef8QHt1NQDj//2UR/OZipMU32Igr7UbgnzX8jBhVa1ZmOo= X-Received: by 10.202.221.215 with SMTP id u206mr21484628oig.33.1477344571888; Mon, 24 Oct 2016 14:29:31 -0700 (PDT) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id l37sm5868103otd.33.2016.10.24.14.29.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 14:29:30 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 24 Oct 2016 16:29:27 -0500 Message-Id: <1477344567-2561-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477344567-2561-1-git-send-email-bill.fischofer@linaro.org> References: <1477344567-2561-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 3/3] api: dev: activate device id support 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" Make device id support active and add relevant device id extensions to crypto, pool, and timer parameter structs. Signed-off-by: Bill Fischofer --- Changes for v2: - Split out into separate API patch include/odp/api/spec/crypto.h | 3 +++ include/odp/api/spec/pool.h | 7 +++++++ include/odp/api/spec/timer.h | 3 +++ include/odp_api.h | 1 + 4 files changed, 14 insertions(+) -- 2.7.4 diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 0cb8814..67d723b 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -19,6 +19,8 @@ extern "C" { #endif +#include + /** @defgroup odp_crypto ODP CRYPTO * Macros, enums, types and operations to utilise crypto. * @{ @@ -182,6 +184,7 @@ typedef struct odp_crypto_session_params { odp_crypto_key_t auth_key; /**< Authentication key */ odp_queue_t compl_queue; /**< Async mode completion event queue */ odp_pool_t output_pool; /**< Output buffer pool */ + odp_dev_t dev_id; /**< Device id of this crypto dev */ } odp_crypto_session_params_t; /** diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h index c80c98a..a1cc65d 100644 --- a/include/odp/api/spec/pool.h +++ b/include/odp/api/spec/pool.h @@ -20,6 +20,7 @@ extern "C" { #endif #include +#include /** @defgroup odp_pool ODP POOL * Operations on a pool. @@ -164,6 +165,12 @@ typedef struct odp_pool_param_t { /** Pool type */ int type; + /** Device id for this pool */ + odp_dev_t pool_id; + + /** Device id for memory used for this pool */ + odp_dev_t mem_id; + union { struct { /** Number of buffers in the pool */ diff --git a/include/odp/api/spec/timer.h b/include/odp/api/spec/timer.h index df37189..8913755 100644 --- a/include/odp/api/spec/timer.h +++ b/include/odp/api/spec/timer.h @@ -19,6 +19,8 @@ extern "C" { #endif +#include + /** @defgroup odp_timer ODP TIMER * @{ */ @@ -103,6 +105,7 @@ typedef struct { uint32_t num_timers; /**< (Minimum) number of supported timers */ int priv; /**< Shared (false) or private (true) timer pool */ odp_timer_clk_src_t clk_src; /**< Clock source for timers */ + odp_dev_t dev_id; /**< Device id of this timer resource */ } odp_timer_pool_param_t; /** diff --git a/include/odp_api.h b/include/odp_api.h index ec7fcd2..89a99ae 100644 --- a/include/odp_api.h +++ b/include/odp_api.h @@ -25,6 +25,7 @@ extern "C" { #include #include #include +#include #include #include #include