From patchwork Thu Jun 25 12:09:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50318 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 74507228FC for ; Thu, 25 Jun 2015 12:11:22 +0000 (UTC) Received: by wguu7 with SMTP id u7sf18756276wgu.0 for ; Thu, 25 Jun 2015 05:11:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=4kwUDSJuepOJDzz0K3idWct+nwWEpoVaXMbsx5L7YAY=; b=hZ5Xzwb0GgH0NQGVc8v4HDd3wayYv9mRzkMl80GXcbtrQokIVXaJ8543aEqhy7T1tb BeScNs/NnlQiizcWmC6BPqS5uSh5pgD+Ex6CS8OoP4m3hAQgRaOpJNi506uIDo4jrbPO QwbQWMQTkJLQuiXLHmwmNuXFOUxt9wT9J2NPAWj4+N5mMVqYXqUpiMe+WSelmGbDBoNN 47Pc7sbZJX+GH63y1MI0JYy5SnumsZHzVCHfsIegCSmV293vFjHEWKnzSp34lCp8y/dz jtftQqQiOjoOeY+Zt8fd5TwqGTvVWxaNpSpqav/OiHb+2TPJ0hk62hGE4wjVZFFwvLNt xSoQ== X-Gm-Message-State: ALoCoQmzXIaV8uXAENamaSsHPSJ+Q0ZYDhmQCFqCiNrR7aYGrvFo5WxlnY+tnMazzI4qlQgfoBCJ X-Received: by 10.180.87.201 with SMTP id ba9mr2183219wib.3.1435234281820; Thu, 25 Jun 2015 05:11:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.164.195 with SMTP id ys3ls18496lab.13.gmail; Thu, 25 Jun 2015 05:11:21 -0700 (PDT) X-Received: by 10.152.205.102 with SMTP id lf6mr44518870lac.1.1435234281650; Thu, 25 Jun 2015 05:11:21 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id jc6si24527102lac.71.2015.06.25.05.11.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 05:11:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lagx9 with SMTP id x9so43700557lag.1 for ; Thu, 25 Jun 2015 05:11:20 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr43997946lbc.112.1435234280900; Thu, 25 Jun 2015 05:11:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp559972lbb; Thu, 25 Jun 2015 05:11:20 -0700 (PDT) X-Received: by 10.140.237.147 with SMTP id i141mr62376995qhc.25.1435234279712; Thu, 25 Jun 2015 05:11:19 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o7si853747qko.19.2015.06.25.05.11.19; Thu, 25 Jun 2015 05:11:19 -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; Received: by lists.linaro.org (Postfix, from userid 109) id F156861B77; Thu, 25 Jun 2015 12:11:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 466A761E27; Thu, 25 Jun 2015 12:10:14 +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 92AD961DD7; Thu, 25 Jun 2015 12:10:09 +0000 (UTC) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by lists.linaro.org (Postfix) with ESMTPS id C0F5F61DA6 for ; Thu, 25 Jun 2015 12:09:44 +0000 (UTC) Received: by obbkm3 with SMTP id km3so45674965obb.1 for ; Thu, 25 Jun 2015 05:09:44 -0700 (PDT) X-Received: by 10.202.239.138 with SMTP id n132mr36173436oih.99.1435234184388; Thu, 25 Jun 2015 05:09:44 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id yw8sm15754454obb.29.2015.06.25.05.09.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 05:09:43 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 25 Jun 2015 07:09:30 -0500 Message-Id: <1435234172-2015-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435234172-2015-1-git-send-email-bill.fischofer@linaro.org> References: <1435234172-2015-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 4/6] linux-generic: pool: add odp_pool_param_init implementation X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp/plat/pool_types.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/linux-generic/include/odp/plat/pool_types.h b/platform/linux-generic/include/odp/plat/pool_types.h index 568556f..8e12914 100644 --- a/platform/linux-generic/include/odp/plat/pool_types.h +++ b/platform/linux-generic/include/odp/plat/pool_types.h @@ -15,6 +15,9 @@ #include #include +#include +#include "odp/api/pool_param.h" +#include "string.h" #ifdef __cplusplus extern "C" { @@ -29,6 +32,12 @@ typedef ODP_HANDLE_T(odp_pool_t); #define ODP_POOL_INVALID _odp_cast_scalar(odp_pool_t, 0xffffffff) +/** Initialize the odp_pool_param struct */ +static inline void odp_pool_param_init(odp_pool_param_t *param) +{ + memset((void *)param, 0, sizeof(odp_pool_param_t)); +} + /** Get printable format of odp_pool_t */ static inline uint64_t odp_pool_to_u64(odp_pool_t hdl) {