From patchwork Mon Oct 24 19:56:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 79069 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2759430qge; Mon, 24 Oct 2016 12:57:25 -0700 (PDT) X-Received: by 10.176.84.3 with SMTP id n3mr10879276uaa.30.1477339045801; Mon, 24 Oct 2016 12:57:25 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v139si3424017vkd.22.2016.10.24.12.57.25; Mon, 24 Oct 2016 12:57:25 -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 78AD361DF7; Mon, 24 Oct 2016 19:57:25 +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_H2 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 A946661DFC; Mon, 24 Oct 2016 19:56:32 +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 CD1AF6171E; Mon, 24 Oct 2016 19:56:18 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by lists.linaro.org (Postfix) with ESMTPS id 53E6D616E4 for ; Mon, 24 Oct 2016 19:56:17 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id m72so56416824oik.3 for ; Mon, 24 Oct 2016 12:56:17 -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=bmPXBiwGAMR9ugo5bRsbU4bhKvnj85TH9LNIC+xCf5Jy8VK6pgJJu1n+zqvkxssv1N kBrScJ8Hi6mGyp2ZLUbU6af1aMmEAGaukDS/aG7RC6Peuga85xGHklM7MKXIG2+AitA6 9ra6F1CzF0QjpRBt1v4C3ClLKhNcD+mm0/EVE43bh4gfQpacPI9fZDO2Z4AtQgPLecJc lnltaClevhhe0QQ4LOH6QmUs21YiKQugZxXrWEWAvTHXo8PfmrM04ovjHPupBiTy8CsL ZoEzTpy/EKjxZtcq3mXD9Q4Oj0rrfubr/O2buug6mA8F0Ik2j44DKn4rYeej1MXTJFSK bX+g== X-Gm-Message-State: AA6/9Rky0p2ILxSjFsrQ9lkqDefxX8zLa/V5UIxtHpKEKMGl2s0aAWmlGrZoNlhwR56q8359gw0= X-Received: by 10.202.182.87 with SMTP id g84mr19582323oif.107.1477338976801; Mon, 24 Oct 2016 12:56:16 -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 e192sm5722144oic.22.2016.10.24.12.56.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 12:56:16 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 24 Oct 2016 14:56:12 -0500 Message-Id: <1477338972-17132-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477338972-17132-1-git-send-email-bill.fischofer@linaro.org> References: <1477338972-17132-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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